:root {
  --background: #f6f4ef;
  --foreground: #181a1d;
  --muted: #5f6871;
  --line: #d9d3c8;
  --panel: #fffdf8;
  --accent: #f5b61f;
  --accent-dark: #9f6b00;
  --ink: #10243a;
  --blue: #176b87;
  --green: #567568;
  --header-bg: rgb(232, 232, 229);
  --header-text: #181a1d;
  --header-muted: #5f6871;
  --header-line: rgba(16, 36, 58, 0.1);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

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

main {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 14px clamp(18px, 4vw, 58px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(5, 7, 10, 0.07);
  color: var(--header-text);
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}

.brand-logo-img {
  display: block;
  height: 108px;
  object-fit: contain;
  width: auto;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  justify-content: center;
}

nav a {
  color: var(--header-text);
  font-size: 0.94rem;
  font-weight: 650;
}

.header-call {
  align-items: center;
  color: var(--header-text);
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  justify-self: end;
  pointer-events: none;
  white-space: nowrap;
}

.phone-icon-img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
  min-height: auto;
  padding: clamp(36px, 4vw, 58px) clamp(18px, 4vw, 58px) clamp(34px, 4vw, 54px);
}

.hero-copy {
  align-self: center;
  max-width: 720px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  color: var(--ink);
  font-size: clamp(2.45rem, 5.6vw, 5.7rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 18px;
}

.animated-name {
  display: inline-block;
  overflow: visible;
}

.animated-name-char {
  display: inline-block;
  opacity: 1;
  transform: none;
}

.animated-name-char.is-first {
  animation: none;
  opacity: 1;
  transform: translateX(0);
}

.hero-subtitle {
  color: var(--accent-dark);
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 680px;
}

@keyframes name-letter-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h2 {
  color: var(--ink);
  font-size: clamp(1.85rem, 3.6vw, 3.45rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 790;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.lead {
  color: #3f4850;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 640px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 820;
  justify-content: center;
  min-height: 48px;
  padding: 14px 19px;
}

.button.primary {
  background: var(--blue);
  color: white;
}

.button.primary:hover {
  background: #0f5973;
}

.button.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.trust-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}

.trust-row span {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(16, 36, 58, 0.12);
  border-radius: 8px;
  color: #26313a;
  font-size: 0.95rem;
  font-weight: 720;
  padding: 12px 14px;
}

.hero-media {
  align-self: center;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  justify-self: end;
  min-height: 240px;
  overflow: hidden;
  position: relative;
  width: 50%;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(16, 36, 58, 0.16), rgba(16, 36, 58, 0)),
    linear-gradient(0deg, rgba(245, 182, 31, 0.2), rgba(245, 182, 31, 0));
  content: '';
  inset: 0;
  position: absolute;
}

.hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.intro-band,
.services,
.gallery-section,
.proof,
.reviews,
.process,
.contact {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 58px);
}

.intro-band {
  align-items: end;
  background: var(--ink);
  color: white;
  display: grid;
  gap: clamp(22px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
}

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

.intro-band h2,
.intro-band .eyebrow {
  color: white;
}

.intro-band p:last-child {
  color: #d9e1e7;
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 30px;
  max-width: 860px;
}

.services .section-heading,
.reviews .section-heading,
.process .section-heading {
  opacity: 1;
  transform: none;
}

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

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 178px;
  opacity: 1;
  padding: 24px;
  transform: none;
}

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

.gallery-section {
  background: #fffdf8;
}

.gallery-heading {
  align-items: end;
  display: grid;
  gap: clamp(18px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.48fr);
  margin-bottom: 30px;
}

.gallery-heading p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.practice-gallery {
  --gallery-gap: 14px;
  position: relative;
}

.practice-window {
  overflow: hidden;
  position: relative;
}

.practice-window::before,
.practice-window::after {
  content: '';
  inset: 0 auto 0 0;
  pointer-events: none;
  position: absolute;
  width: clamp(28px, 7vw, 96px);
  z-index: 2;
}

.practice-window::before {
  background: linear-gradient(90deg, #fffdf8, rgba(255, 253, 248, 0));
}

.practice-window::after {
  background: linear-gradient(270deg, #fffdf8, rgba(255, 253, 248, 0));
  left: auto;
  right: 0;
}

.practice-track {
  display: flex;
  gap: var(--gallery-gap);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.3, 0, 0.12, 1);
  will-change: transform;
}

.practice-slide {
  aspect-ratio: 4 / 3;
  background: #e8edf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 0 0 calc((100% - (var(--gallery-gap) * 2)) / 3);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.practice-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
  width: 100%;
}

.practice-slide:hover img {
  transform: scale(1.035);
}

.gallery-arrow {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
  width: 46px;
  z-index: 4;
}

.gallery-arrow:hover {
  background: #05070a;
}

.gallery-arrow-prev {
  left: 14px;
}

.gallery-arrow-next {
  right: 14px;
}

.proof {
  align-items: center;
  background: #e8edf0;
  display: grid;
  gap: clamp(22px, 6vw, 90px);
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 0.65fr);
}

.proof > *,
.contact > * {
  opacity: 1;
  transform: none;
}

.proof-stat {
  background: white;
  border: 1px solid rgba(16, 36, 58, 0.12);
  border-radius: 8px;
  color: var(--ink);
  padding: 30px;
}

.proof-stat span {
  display: block;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
}

.proof-stat p,
.proof-copy p {
  color: #4a5560;
  font-size: 1.04rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.proof-copy {
  max-width: 820px;
}

.proof-copy h2 {
  margin-bottom: 20px;
}

.reviews {
  background: #f2eee6;
}

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

.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: block;
  margin: 0;
  opacity: 1;
  padding: 26px;
  transform: none;
}

.review-card:hover {
  border-color: rgba(23, 107, 135, 0.42);
}

.review-card figure {
  margin: 0;
}

.review-card blockquote {
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  font-weight: 760;
  line-height: 1.45;
  margin: 0 0 18px;
}

.review-card figcaption {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
}

.process ol {
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.process li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #47505a;
  counter-increment: step;
  line-height: 1.55;
  min-height: 152px;
  opacity: 1;
  padding: 22px;
  transform: none;
}

.process li::before {
  color: var(--blue);
  content: '0' counter(step);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.contact {
  align-items: start;
  background: #fffdf8;
  display: grid;
  gap: clamp(28px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.52fr);
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 640px;
}

.contact-card {
  background: #f6f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  font-style: normal;
  gap: 0;
  overflow: hidden;
}

.contact-line {
  display: grid;
  gap: 5px;
  padding: 18px;
}

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

.contact-line span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-line strong {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
  overflow-wrap: anywhere;
}

footer {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 58px);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--accent);
  font-weight: 800;
}

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

  nav {
    display: none;
  }

  .hero,
  .intro-band,
  .gallery-heading,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
    order: -1;
    width: 100%;
  }

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

  .practice-slide {
    flex-basis: calc((100% - var(--gallery-gap)) / 2);
  }

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

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 10px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-logo-img {
    height: auto;
    max-height: 68px;
    max-width: 100%;
    width: min(44vw, 176px);
  }

  .header-call {
    font-size: 0.88rem;
    gap: 5px;
  }

  .phone-icon-img {
    height: 30px;
    width: 30px;
  }

  .hero-actions {
    display: grid;
  }

  .trust-row,
  .service-grid,
  .review-grid,
  .process ol {
    grid-template-columns: 1fr;
  }

  .practice-slide {
    flex-basis: 100%;
  }

  .hero-media {
    min-height: 300px;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 76px;
  }
}
