:root {
  --ink: #071014;
  --paper: #f3f6f4;
  --soft: #ffffff;
  --muted: #647174;
  --line: rgba(7, 16, 20, 0.12);
  --blue: #155e75;
  --mint: #94d2bd;
  --clay: #c17d52;
  --shadow: 0 24px 80px rgba(7, 16, 20, 0.16);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 16, 20, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

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

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: 4px;
  height: 100svh;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--mint), var(--clay));
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 16, 20, 0.42);
  box-shadow: 0 18px 60px rgba(7, 16, 20, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav,
.top-mail {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.nav {
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.top-mail {
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.nav a,
.top-mail {
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav a:hover,
.top-mail:hover {
  color: #fff;
  transform: translateY(-1px);
}

.top-mail:hover {
  color: var(--ink);
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 78px) 54px;
  color: #fff;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: -0.05em;
  bottom: -0.16em;
  z-index: 1;
  color: rgba(255, 255, 255, 0.08);
  content: "LEONARDS";
  font-size: clamp(84px, 17vw, 238px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  animation: heroFloat 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 11, 15, 0.86), rgba(5, 11, 15, 0.48) 48%, rgba(5, 11, 15, 0.12)),
    linear-gradient(0deg, rgba(7, 16, 20, 0.72), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.42;
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-note {
  position: absolute;
  right: clamp(20px, 6vw, 78px);
  bottom: 54px;
  z-index: 2;
  width: min(330px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-note span {
  display: block;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  text-wrap: balance;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(7, 16, 20, 0.12);
  background: #0d1519;
  color: #fff;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 20px 14px;
  animation: ticker 34s linear infinite;
}

.ticker span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: 26px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5.7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

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

.service-card {
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 60px rgba(7, 16, 20, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service-card span {
  display: block;
  margin-bottom: 90px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.service-card p {
  max-width: 330px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.service-card.accent {
  background:
    linear-gradient(135deg, rgba(148, 210, 189, 0.42), rgba(255, 255, 255, 0.82)),
    #fff;
}

.service-card.dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(193, 125, 82, 0.28), rgba(21, 94, 117, 0.34)),
    #0d1519;
}

.service-card.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.service-card.dark span {
  color: var(--mint);
}

.approach {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  padding-top: 0;
}

.approach-copy {
  position: sticky;
  top: 112px;
}

.steps {
  border-top: 1px solid var(--line);
}

.steps div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  min-height: 124px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.steps p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.18;
  text-wrap: balance;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 44px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 16, 20, 0.97), rgba(21, 94, 117, 0.9)),
    #071014;
  box-shadow: var(--shadow);
}

.contact h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5.4vw, 70px);
}

.contact-mail {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-mail:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.contact-mail span {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 800;
}

.contact-mail strong {
  font-size: 15px;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes heroFloat {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 900px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 32px;
  }

  .section-head,
  .approach,
  .contact {
    grid-template-columns: 1fr;
  }

  .approach-copy {
    position: static;
  }

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

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

  .service-card span {
    margin-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .topbar {
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    width: auto;
    min-height: 58px;
    padding: 8px;
    transform: none;
  }

  .brand span:last-child {
    display: none;
  }

  .top-mail {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding: 116px 20px 34px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 0.98;
  }

  .button {
    width: 100%;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 17px;
  }

  .hero-note {
    width: 100%;
  }

  .section {
    width: min(calc(100% - 28px), 1120px);
    padding-block: 62px;
  }

  .steps div {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .contact {
    width: min(calc(100% - 28px), 1120px);
    padding: 28px;
  }
}

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