:root {
  --blue-950: #111827;
  --blue-850: #1e40af;
  --blue-700: #1d4ed8;
  --blue-500: #2563eb;
  --brand-blue: #1d4ed8;
  --cyan-300: #eff6ff;
  --ink: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #ffffff;
  --white: #ffffff;
  --silver: #f7f9fc;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  --royal-surface: #0340ab;
  --royal-text: #f8fbff;
  --royal-muted: #dbeafe;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Aptos", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--royal-surface);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-frame {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo-frame img,
.logo-slot img,
.firm-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-500));
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.24);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  color: var(--blue-950);
  font-size: 1rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--blue-950);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--blue-700);
  background: var(--cyan-300);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-950);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 94px) clamp(20px, 5vw, 70px) 38px;
  overflow: hidden;
}

.hero,
.firm-hero {
  color: var(--royal-text);
}

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

.logo-slot {
  display: inline-grid;
  width: clamp(170px, 17vw, 250px);
  height: auto;
  place-items: center;
  overflow: visible;
  margin-bottom: 30px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo-free {
  display: inline-block;
  width: clamp(170px, 17vw, 250px);
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo-free img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(0, 20, 72, 0.14));
}

.firm-logo-frame {
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

.firm-logo-frame.logo-free {
  width: clamp(210px, 18vw, 286px);
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--blue-950);
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", Inter, sans-serif;
  font-size: clamp(3.1rem, 5.7vw, 5.75rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--blue-950);
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", Inter, sans-serif;
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  color: var(--blue-950);
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", Inter, sans-serif;
  font-weight: 850;
  line-height: 1.15;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 520;
  line-height: 1.72;
}

.hero-text-small {
  max-width: 590px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero h1,
.firm-hero h1 {
  color: var(--royal-text);
  text-shadow: none;
}

.hero .eyebrow,
.firm-hero .eyebrow {
  color: var(--royal-muted);
}

.hero .hero-text,
.firm-hero .hero-text,
.hero .hero-text-small {
  color: var(--royal-muted);
  text-shadow: none;
}

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

.btn,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: var(--blue-700);
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
  background: var(--blue-850);
}

.btn:focus-visible,
.tab:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.3);
  outline-offset: 3px;
}

.btn-secondary {
  color: var(--blue-850);
  border-color: var(--line);
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  color: var(--blue-700);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: -28px;
  z-index: -1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.hero-visual img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual .photo-slider {
  height: clamp(420px, 41vw, 580px);
}

.hero-visual .slide-track img {
  min-height: 0;
  box-shadow: none;
}

.ticker {
  display: flex;
  gap: 10px;
  padding: 0 clamp(20px, 5vw, 70px) 46px;
  overflow-x: auto;
}

.ticker span {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: var(--blue-850);
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 70px);
  background: transparent;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.section-head h2 {
  position: relative;
}

.section-head h2::after {
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal-text), rgba(255, 255, 255, 0.28));
}

.section:not(.about-section):not(.services) > .section-head h2 {
  color: var(--royal-text);
  text-shadow: none;
}

.section:not(.about-section):not(.services) > .section-head h2::after {
  background: linear-gradient(90deg, var(--royal-text), rgba(255, 255, 255, 0.28));
}

.section:not(.about-section):not(.services) > .section-head .eyebrow {
  color: var(--royal-muted);
}

.section:not(.about-section):not(.services) > .section-head p:not(.eyebrow) {
  color: var(--royal-muted);
}

.company-grid,
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.company-card,
.advantage-grid article {
  min-height: 256px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 48px rgba(17, 24, 39, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.company-card {
  display: block;
  color: inherit;
}

.card-image {
  width: 100%;
  aspect-ratio: 1.5;
  margin-bottom: 20px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.company-card:hover,
.company-card.active,
.advantage-grid article:hover {
  border-color: rgba(29, 78, 216, 0.34);
  box-shadow: 0 22px 70px rgba(29, 78, 216, 0.14);
  transform: translateY(-4px);
}

.icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--blue-700);
  font-weight: 800;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--cyan-300);
}

.company-card h3,
.advantage-grid h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.company-card p,
.advantage-grid p,
.process-list p,
.contact p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.portfolio-intro {
  padding-bottom: 20px;
}

.portfolio-intro .section-head p:not(.eyebrow),
.clients .section-head p:not(.eyebrow) {
  color: var(--royal-muted);
  line-height: 1.7;
}

.about-section {
  background: transparent;
}

.about-section .section-head h2,
.services .section-head h2 {
  color: var(--royal-text);
}

.about-section .section-head .eyebrow,
.services .section-head .eyebrow {
  color: var(--royal-muted);
}

.about-copy {
  display: block;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 253, 255, 0.92);
  box-shadow: 0 14px 48px rgba(17, 24, 39, 0.07);
}

.about-copy.single {
  display: block;
}

.about-copy p {
  max-width: 1160px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  font-weight: 510;
  line-height: 1.82;
}

.about-copy p + p {
  margin-top: 18px;
}

.vision-mission {
  padding-top: 40px;
}

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

.client-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 14px 0;
}

.client-marquee::before,
.client-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(42px, 8vw, 120px);
  content: "";
  pointer-events: none;
}

.client-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--royal-surface), rgba(3, 64, 171, 0));
}

.client-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--royal-surface), rgba(3, 64, 171, 0));
}

.client-track {
  display: flex;
  width: max-content;
  gap: clamp(16px, 2.4vw, 30px);
  animation: client-slide 32s linear infinite;
}

.client-marquee:hover .client-track {
  animation-play-state: paused;
}

.client-logo {
  display: grid;
  width: clamp(210px, 19vw, 300px);
  aspect-ratio: 1.58;
  place-items: center;
  padding: clamp(18px, 1.8vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(0, 18, 68, 0.2);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.14));
}

@keyframes client-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - clamp(16px, 2.4vw, 30px) / 2));
  }
}

.firm-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  min-height: calc(78vh - 76px);
  padding: clamp(40px, 5vw, 76px) clamp(20px, 5vw, 88px);
}

.firm-hero h1 {
  max-width: 660px;
  font-size: clamp(2.9rem, 5.2vw, 5.1rem);
}

.firm-hero img {
  width: 100%;
  height: clamp(330px, 34vw, 460px);
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.firm-hero .firm-logo-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.firm-hero .firm-logo-frame.logo-free img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.98;
}

.photo-slider {
  position: relative;
  width: 100%;
  height: clamp(330px, 34vw, 460px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.slide-track {
  display: flex;
  width: 400%;
  height: 100%;
  min-height: 0;
  transform: translateX(0);
  transition: transform 520ms ease;
}

.slide-track img {
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: var(--blue-950);
  font-size: 1.35rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-arrow:hover {
  color: #ffffff;
  background: var(--blue-700);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

.support-hero img {
  object-position: center;
}

.firm-detail .section-head p:not(.eyebrow) {
  color: var(--royal-muted);
  line-height: 1.7;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-list span {
  padding: 13px 16px;
  color: var(--blue-850);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.services {
  background: transparent;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.service-panel .section-head {
  display: block;
  margin-bottom: 0;
}

.service-panel .section-head p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 18px;
  color: var(--royal-muted);
  line-height: 1.7;
}

.service-tabs {
  grid-column: 2;
}

.tab {
  color: var(--blue-850);
  border-color: var(--line);
  background: var(--white);
}

.tab.active {
  color: #ffffff;
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.service-detail {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-image {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.1);
}

.detail-kicker {
  margin-bottom: 8px;
  color: var(--blue-700);
  font-weight: 800;
}

.service-detail h3 {
  max-width: 740px;
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.45vw, 2.45rem);
}

.detail-copy {
  color: var(--muted);
  line-height: 1.7;
}

.service-detail ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 700;
}

.service-detail li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: inset 0 0 0 3px var(--blue-700);
}

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

.line-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 46%, var(--blue-700) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--blue-700) 46% 54%, transparent 54%),
    var(--cyan-300);
  border: 1px solid #bfdbfe;
}

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

.process-list li {
  min-height: 210px;
  padding: 24px;
  border-top: 4px solid var(--blue-700);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}

.process-list span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 50%;
  background: var(--blue-850);
}

.process-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-950);
  font-size: 1.12rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.55fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  margin: clamp(30px, 5vw, 70px);
  padding: clamp(34px, 6vw, 74px);
  color: #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.97), rgba(29, 78, 216, 0.92)),
    var(--blue-700);
  box-shadow: var(--shadow);
}

.contact .eyebrow,
.contact h2,
.contact p {
  color: #ffffff;
}

.contact h2 {
  max-width: 820px;
}

.contact p {
  max-width: 650px;
  opacity: 0.78;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a,
.form-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.contact-links a:hover,
.form-mail-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 7px;
}

.contact-form span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  padding: 14px 15px;
  color: #ffffff;
  font: inherit;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.contact-form select {
  appearance: none;
  padding-right: 46px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.78) 50%) right 20px center / 8px 8px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.78) 50%, transparent 50%) right 14px center / 8px 8px no-repeat,
    rgba(255, 255, 255, 0.12);
}

.contact-form select option {
  color: var(--blue-950);
  background: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.72);
}

.contact-form .btn {
  width: 100%;
  background: var(--white);
  color: var(--blue-850);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.form-mail-link {
  width: 100%;
  min-height: 44px;
}

.contact > .btn {
  align-self: center;
  justify-self: start;
  background: var(--white);
  color: var(--blue-850);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 70px);
  color: var(--royal-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero,
  .firm-hero,
  .service-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .firm-hero {
    min-height: auto;
  }

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

  .hero-visual img {
    min-height: 360px;
  }

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

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

  .about-copy,
  .vision-mission .advantage-grid {
    grid-template-columns: 1fr;
  }

  .client-logo {
    width: clamp(170px, 34vw, 230px);
  }

  .service-tabs,
  .service-detail {
    grid-column: 1;
  }

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

  .service-image {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
    color: var(--blue-950);
  }

  .site-nav a:hover {
    color: var(--blue-850);
    background: var(--soft);
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .hero-stats,
  .company-grid,
  .advantage-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .client-track {
    animation-duration: 24s;
  }

  .firm-logo-frame.logo-free {
    width: min(230px, 62vw);
    height: auto;
  }

  .firm-hero .firm-logo-frame.logo-free img {
    height: auto;
  }

  .firm-hero .photo-slider,
  .hero-visual .photo-slider {
    height: auto;
    aspect-ratio: 1402 / 1122;
  }

  .firm-hero .slide-track,
  .hero-visual .slide-track {
    height: 100%;
    align-items: stretch;
  }

  .firm-hero .slide-track img,
  .hero-visual .slide-track img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }

  .service-panel {
    gap: 22px;
  }

  .service-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .service-tabs .tab {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    white-space: normal;
  }

  .service-detail {
    gap: 18px;
    padding: 16px;
    overflow: hidden;
  }

  .service-image {
    display: block;
    width: 100%;
    height: clamp(230px, 68vw, 320px);
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .service-detail .photo-slider {
    height: clamp(230px, 68vw, 320px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .service-detail .slide-track,
  .service-detail .slide-track img {
    height: 100%;
    min-height: 0;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.18rem;
  }

  .slider-arrow.prev {
    left: 10px;
  }

  .slider-arrow.next {
    right: 10px;
  }

  .portfolio-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .portfolio-list span {
    width: 100%;
    text-align: center;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-visual {
    overflow: hidden;
    border-radius: 8px;
  }

  .hero-visual img,
  .hero-visual .slide-track,
  .hero-visual .slide-track img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .contact {
    margin: 20px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 460px) {
  .brand small {
    display: none;
  }

  .btn,
  .tab {
    width: 100%;
  }

  .service-detail {
    padding: 12px;
  }

  .service-image,
  .service-detail .photo-slider {
    height: min(74vw, 300px);
  }

  .ticker {
    padding-bottom: 28px;
  }

  .company-card,
  .advantage-grid article,
  .process-list li {
    min-height: auto;
  }
}
