@font-face {
  font-family: "Satoshi";
  src: local("Satoshi"), local("Avenir Next");
  font-display: swap;
}

:root {
  --paper: #f7f3ec;
  --paper-2: #eee6d8;
  --ink: #171514;
  --muted: #685f55;
  --line: rgba(23, 21, 20, 0.14);
  --panel: rgba(255, 252, 246, 0.78);
  --accent: #276c62;
  --accent-2: #c45f3c;
  --charcoal: #24201d;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(61, 48, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(196, 95, 60, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(39, 108, 98, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--paper), #fbfaf7 48%, var(--paper-2));
  font-family: "Satoshi", "Avenir Next", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only,
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0%;
  height: 3px;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1180px);
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(247, 243, 236, 0.76);
  box-shadow: 0 14px 40px rgba(61, 48, 35, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf2;
  background: var(--charcoal);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.site-nav {
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(23, 21, 20, 0.06);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 6vw, 82px);
  width: min(100% - 40px, 1180px);
  min-height: calc(100dvh - 74px);
  margin: 0 auto;
  padding: clamp(66px, 9vw, 116px) 0 72px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11.2ch;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 7.4vw, 6.25rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.04;
}

.lead {
  max-width: 62ch;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

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

.primary:hover {
  background: var(--accent);
}

.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 252, 246, 0.52);
}

.secondary:hover {
  border-color: rgba(39, 108, 98, 0.36);
}

.hero-system {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-system::after {
  position: absolute;
  right: 16%;
  bottom: -42px;
  width: 38%;
  height: 84px;
  border-radius: 50%;
  content: "";
  background: rgba(39, 108, 98, 0.22);
  filter: blur(28px);
}

.system-topline,
.ops-card {
  position: relative;
  z-index: 1;
}

.system-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.ops-card {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.ops-card.wide {
  grid-column: span 2;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 230, 216, 0.46)),
    url("https://picsum.photos/seed/magic-alliance-ops/900/560") center/cover;
  background-blend-mode: screen;
}

.portfolio-hero-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 230, 216, 0.48)),
    url("https://picsum.photos/seed/magic-alliance-brand-studio/900/560") center/cover;
  background-blend-mode: screen;
}

.card-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ops-card h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.05rem, 3.2vw, 3.1rem);
  overflow-wrap: normal;
}

.ops-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.ops-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.6rem;
  line-height: 1;
}

.ops-card.dark {
  color: #fffaf2;
  background: var(--charcoal);
}

.ops-card.dark .card-kicker,
.ops-card.dark p {
  color: rgba(255, 250, 242, 0.68);
}

.ops-card.accent {
  background: #dce8de;
}

.signal-row {
  display: flex;
  gap: 8px;
  align-items: end;
  height: 58px;
}

.signal-row span {
  flex: 1;
  border-radius: 999px;
  background: var(--accent);
  animation: barPulse 2.8s ease-in-out infinite;
}

.signal-row span:nth-child(1) {
  height: 24%;
}

.signal-row span:nth-child(2) {
  height: 62%;
  animation-delay: 180ms;
}

.signal-row span:nth-child(3) {
  height: 42%;
  animation-delay: 320ms;
}

.signal-row span:nth-child(4) {
  height: 86%;
  animation-delay: 480ms;
}

.timeline ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding-left: 18px;
  color: var(--muted);
  position: relative;
}

.timeline li::before {
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--accent-2);
}

.logo-band {
  display: flex;
  width: min(100% - 40px, 1180px);
  margin: 0 auto 70px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  gap: 28px;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 760;
  white-space: nowrap;
}

.logo-band span {
  animation: drift 14s linear infinite;
}

.section,
.services,
.process,
.results,
.contact-section {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 7vw, 90px);
  padding: 72px 0 76px;
  align-items: end;
}

.intro p:last-child {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.services {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 14px;
  padding: 40px 0 96px;
}

.brand-portfolio {
  display: grid;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 40px 0 104px;
  gap: 16px;
}

.brand-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 18px 70px rgba(61, 48, 35, 0.08);
  backdrop-filter: blur(18px);
}

.brand-card:nth-child(even) {
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.92fr);
}

.brand-card:nth-child(even) .brand-card-media {
  order: 2;
}

.brand-card-media {
  display: flex;
  min-height: 320px;
  align-items: end;
  padding: clamp(24px, 4vw, 38px);
  color: #fffaf2;
  background: linear-gradient(135deg, rgba(36, 32, 29, 0.34), rgba(36, 32, 29, 0.76)), var(--brand-image);
  background-position: center;
  background-size: cover;
}

.brand-card-media span {
  max-width: 8ch;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-weight: 900;
  line-height: 0.88;
}

.brand-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
}

.brand-card-copy p {
  max-width: 58ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.brand-man {
  --brand-image: url("https://picsum.photos/seed/magic-man-grooming/900/720");
}

.brand-salon {
  --brand-image: url("https://picsum.photos/seed/magic-salon-beauty/900/720");
}

.brand-magazin {
  --brand-image: url("https://picsum.photos/seed/magic-magazin-care/900/720");
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 820;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
  transform-origin: left;
}

.text-link:hover::after {
  transform: scaleX(1.3);
}

.service-panel {
  display: flex;
  min-height: 268px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(61, 48, 35, 0.08);
  backdrop-filter: blur(18px);
}

.service-panel.tall {
  grid-row: span 2;
}

.service-panel.dark-panel {
  grid-column: span 2;
  min-height: 230px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(36, 32, 29, 0.94), rgba(36, 32, 29, 0.72)),
    url("https://picsum.photos/seed/magic-alliance-team/1200/650") center/cover;
}

.service-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dark-panel p {
  color: rgba(255, 250, 242, 0.74);
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(39, 108, 98, 0.12);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dark-panel .icon {
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.12);
}

.process {
  padding: 86px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(20px, 8vw, 96px);
  margin-bottom: 42px;
}

.section-heading h2 {
  grid-column: 2;
}

.process-list {
  display: grid;
  gap: 1px;
  border-block: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 120px minmax(200px, 0.42fr) minmax(220px, 0.58fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step span {
  color: var(--accent-2);
  font-weight: 850;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.results {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 8vw, 92px);
  padding: 86px clamp(0px, 4vw, 48px);
  border-radius: 34px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(36, 32, 29, 0.95), rgba(39, 108, 98, 0.74)),
    url("https://picsum.photos/seed/magic-alliance-dashboard/1400/800") center/cover;
}

.results .eyebrow,
.result-copy p {
  color: rgba(255, 250, 242, 0.72);
}

.metrics {
  display: grid;
  gap: 12px;
}

.metrics div {
  display: flex;
  min-height: 118px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.metrics strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.92;
}

.metrics span {
  max-width: 170px;
  color: rgba(255, 250, 242, 0.74);
  text-align: right;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 8vw, 86px);
  padding: 110px 0 90px;
}

.contact-copy p:last-child {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 21, 20, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(39, 108, 98, 0.58);
  box-shadow: 0 0 0 4px rgba(39, 108, 98, 0.12);
}

.contact-form button {
  width: fit-content;
}

.site-footer {
  display: flex;
  width: min(100% - 40px, 1180px);
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.72);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-130px);
  }
}

@media (max-width: 880px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 21, 20, 0.07);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: -5px 0;
    border-radius: 999px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(270px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero,
  .intro,
  .section-heading,
  .results,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    width: calc(100% - 28px);
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    max-width: 9.8ch;
    font-size: clamp(3rem, 15vw, 4.4rem);
    line-height: 0.92;
  }

  .section-heading h2 {
    grid-column: auto;
  }

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

  .brand-card,
  .brand-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .brand-card:nth-child(even) .brand-card-media {
    order: 0;
  }

  .service-panel.tall,
  .service-panel.dark-panel {
    grid-row: auto;
    grid-column: auto;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metrics div {
    align-items: start;
    flex-direction: column;
  }

  .metrics span {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    margin-top: 10px;
  }

  .brand span:last-child {
    max-width: 122px;
    line-height: 1;
  }

  .hero,
  .section,
  .services,
  .brand-portfolio,
  .process,
  .results,
  .contact-section,
  .site-footer,
  .logo-band {
    width: calc(100% - 24px);
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-card.wide {
    grid-column: auto;
    min-height: 196px;
  }

  .ops-card h2 {
    max-width: none;
    font-size: clamp(2rem, 9.5vw, 2.55rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button,
  .contact-form button {
    width: 100%;
  }

  .results {
    padding: 44px 18px;
    border-radius: 22px;
  }
}

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