:root {
  color-scheme: light only;
  --bg: #f6f7f2;
  --paper: #ffffff;
  --paper-warm: #fff2ec;
  --ink: #111111;
  --text: #151515;
  --muted: rgba(17, 17, 17, 0.66);
  --line: rgba(17, 17, 17, 0.1);
  --orange: #ff4c19;
  --yellow: #ffb31a;
  --blue: #1977e6;
  --navy: #24346f;
  --mint: #d6f45d;
  --soft: rgba(255, 76, 25, 0.1);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
  --max: 1120px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light only;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  z-index: 100;
  width: 100%;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 9px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(20px) saturate(1.08);
  pointer-events: auto;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 6px 16px 6px 7px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: background 0.28s ease, transform 0.28s var(--ease);
}

.brand:hover {
  background: rgba(255, 76, 25, 0.08);
  transform: translateY(-1px);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.46), transparent 34%),
    var(--orange);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(255, 76, 25, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 999px;
  background: rgba(246, 247, 242, 0.58);
}

.desktop-nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 42px;
  min-width: 106px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(17, 17, 17, 0.66);
  font-size: 0.94rem;
  font-weight: 760;
  transition: color 0.22s ease, background 0.3s ease, border-color 0.3s ease, transform 0.28s var(--ease);
}

.desktop-nav a::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 4px;
  background: rgba(255, 76, 25, 0.12);
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: center;
  transition:
    opacity 0.18s ease,
    transform 0.46s var(--ease),
    border-radius 0.56s var(--ease);
}

.desktop-nav a::after {
  content: none;
}

.desktop-nav a:hover {
  border-color: rgba(255, 76, 25, 0.16);
  color: var(--orange);
  transform: translateY(-1px);
}

.desktop-nav a:hover::before {
  opacity: 1;
  border-radius: 999px;
  transform: scaleX(1);
}

.nav-cta {
  position: relative;
  margin-left: 4px;
  min-width: 116px !important;
  padding: 11px 19px !important;
  background: transparent;
  color: var(--ink) !important;
  font-weight: 900;
  box-shadow: none;
}

.nav-cta:hover {
  color: var(--orange) !important;
  transform: translateY(-1px);
}

.menu-btn {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 50%;
  background:
    linear-gradient(180deg, var(--paper), rgba(246, 247, 242, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: 0.22s ease;
}

.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }

.menu-btn.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  top: 78px;
  left: 20px;
  right: 20px;
  z-index: 99;
  display: none;
  min-height: 50vh;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(42, 23, 19, 0.98));
  color: var(--paper);
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.26);
  backdrop-filter: blur(18px);
}

.mobile-panel.is-open {
  display: block;
  animation: panelIn 0.22s ease both;
}

.mobile-panel a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  font-size: 1.28rem;
  font-weight: 850;
}

.mobile-small {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

.btn-primary {
  background: var(--orange);
  color: var(--paper);
  box-shadow: 0 18px 40px rgba(255, 76, 25, 0.26);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.26);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 76, 25, 0.15);
  border-radius: 999px;
  background: #fff0ea;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 850;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.pill-inverted {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 122px 0 34px;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background: var(--bg);
  clip-path: polygon(0 54%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 156px);
  grid-template-columns: minmax(390px, 0.98fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 50px);
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.hero-title {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(3.55rem, 5.3vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

.hero-title span:nth-child(2) {
  color: var(--orange);
}

.hero-title span:nth-child(3) {
  color: var(--ink);
}

.hero-text {
  max-width: 540px;
  margin: 22px 0 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  min-width: 0;
}

.avatar-stage {
  position: relative;
  display: grid;
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: end center;
  isolation: isolate;
  padding: 0 clamp(12px, 2vw, 18px);
}

.avatar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 30px;
  background: url("../assets/hintergrund.png") center / contain no-repeat;
  box-shadow: 0 26px 64px rgba(17, 17, 17, 0.08);
}

.avatar-stage::after {
  display: none;
}

.avatar-card {
  position: relative;
  width: clamp(355px, 76%, 408px);
  margin-bottom: clamp(12px, 2vw, 18px);
  animation: avatarFloat 9.5s ease-in-out infinite;
  transform-origin: 48% 92%;
}

.avatar-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 26px rgba(17, 17, 17, 0.16));
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  border: 1px solid rgba(255, 76, 25, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.08);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.chip-top {
  top: 96px;
  right: 4px;
  animation: chipDrift 12s ease-in-out infinite;
}

.chip-bottom {
  left: 2px;
  bottom: 106px;
  animation: chipDrift 13s ease-in-out infinite reverse;
}

.brand-rail {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: 18px 0 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-rail-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: brandRailMove 34s linear infinite;
  will-change: transform;
}

.brand-rail-group {
  display: flex;
  flex: 0 0 auto;
  min-width: 100vw;
  align-items: center;
  justify-content: space-around;
  gap: clamp(32px, 8vw, 150px);
  padding: 0 28px;
}

.brand-rail span {
  color: rgba(17, 17, 17, 0.28);
  font-size: 1.05rem;
  font-weight: 950;
  white-space: nowrap;
}

.section {
  padding: 76px 0;
  scroll-margin-top: 110px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(2.65rem, 5.4vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.section-copy {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.02rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 348px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.service-card:nth-child(1) {
  background: var(--yellow);
}

.service-card:nth-child(2) {
  background: var(--orange);
  color: var(--paper);
}

.service-card:nth-child(3) {
  background: var(--navy);
  color: var(--paper);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(17, 17, 17, 0.12);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-size: 1rem;
  font-weight: 950;
}

.service-card h3 {
  max-width: 420px;
  margin-bottom: 12px;
  color: currentColor;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.service-card p {
  max-width: 540px;
  color: currentColor;
  opacity: 0.78;
}

.service-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: currentColor;
  font-weight: 800;
  opacity: 0.78;
}

.service-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: 46px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.feature h2 {
  margin: 16px 0 20px;
  color: var(--paper);
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.91;
  letter-spacing: 0;
}

.feature p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.feature-item:nth-child(2) {
  background: var(--orange);
}

.feature-item:nth-child(3) {
  background: var(--blue);
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
}

.feature-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 1.18rem;
}

.feature-item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.work-card {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(17, 17, 17, 0.12);
}

.work-image {
  position: relative;
  height: 270px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 13%, transparent 13% 48%, rgba(255, 255, 255, 0.2) 48% 50%, transparent 50%),
    var(--yellow);
}

.work-image::before,
.work-image::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(17, 17, 17, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}

.work-image::before {
  left: 42px;
  top: 52px;
  width: 230px;
  height: 132px;
  transform: rotate(-5deg);
  animation: workPlate 6s ease-in-out infinite;
}

.work-image::after {
  right: 46px;
  bottom: 48px;
  width: 250px;
  height: 150px;
  transform: rotate(7deg);
  animation: workPlateAlt 7s ease-in-out infinite;
}

.work-image-alt {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.17) 0 17%, transparent 17% 58%, rgba(255, 255, 255, 0.2) 58% 61%, transparent 61%),
    var(--blue);
}

.work-body {
  padding: 22px;
}

.work-body h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.work-body p {
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.process-item:hover {
  transform: translateX(8px);
  border-color: rgba(255, 76, 25, 0.34);
}

.process-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  font-weight: 950;
}

.process-item h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.48rem;
  letter-spacing: 0;
}

.process-item p {
  color: var(--muted);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  padding: 40px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-weight: 850;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.contact-link:hover {
  transform: translateX(6px);
  border-color: rgba(255, 76, 25, 0.3);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(255, 76, 25, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 76, 25, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer a {
  color: var(--orange);
  font-weight: 850;
}

.legal-main {
  padding: 140px 0 70px;
  background: var(--bg);
}

.legal-shell {
  max-width: 880px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.legal-shell h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.05;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 20px;
}

.legal-note {
  padding: 16px;
  border: 1px solid rgba(255, 76, 25, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 76, 25, 0.08);
  color: var(--ink) !important;
  font-weight: 750;
}

.legal-placeholder {
  color: var(--orange);
  font-weight: 900;
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-0.7deg);
  }

  45% {
    transform: translate3d(0, -6px, 0) rotate(0.8deg);
  }

  62% {
    transform: translate3d(0, -4px, 0) rotate(-1deg);
  }
}

@keyframes chipDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -5px, 0) rotate(0.6deg); }
}

@keyframes brandRailMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes workPlate {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(14px, -10px, 0) rotate(-2deg); }
}

@keyframes workPlateAlt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(7deg); }
  50% { transform: translate3d(-12px, 12px, 0) rotate(4deg); }
}

@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding-top: 126px;
    background: var(--paper);
  }

  .hero-grid,
  .section-head,
  .feature,
  .work-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 30px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .avatar-stage {
    width: min(100%, 520px);
    min-height: 0;
  }

  .brand-rail {
    padding-top: 28px;
  }

  .feature,
  .contact-box {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 26px, var(--max));
  }

  .nav-shell {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 0.98rem;
  }

  .hero-title {
    font-size: clamp(3.08rem, 16vw, 4.5rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .avatar-stage {
    width: min(100%, 430px);
    min-height: 0;
    padding-inline: 12px;
  }

  .avatar-card {
    width: clamp(300px, 78%, 350px);
    margin-bottom: 12px;
  }

  .avatar-stage::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 24px;
    background-size: contain;
  }

  .floating-chip {
    font-size: 0.78rem;
    padding: 9px 11px;
  }

  .chip-top {
    top: 76px;
  }

  .chip-bottom {
    bottom: 76px;
  }

  .brand-rail-group {
    gap: 42px;
    min-width: 190vw;
  }

  .brand-rail span {
    font-size: 0.94rem;
  }

  .section {
    padding: 58px 0;
  }

  .services-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 340px;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 24px;
  }

  .contact-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
