:root {
  --brand: #484a59;
  --brand-strong: #3d4050;
  --brand-soft: #676b7c;
  --ink: #22252f;
  --muted: #676c7d;
  --paper: #f4f5f8;
  --line: #dee2ea;
  --card: #ffffff;
  --scrollbar-size: 11px;
  --scrollbar-track: rgba(72, 74, 89, 0.12);
  --scrollbar-thumb: rgba(72, 74, 89, 0.54);
  --scrollbar-thumb-hover: rgba(61, 64, 80, 0.72);
  --scrollbar-thumb-strong: rgba(61, 64, 80, 0.82);
  --font-display:
    "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body:
    "Manrope", "Avenir Next", "Segoe UI", "Noto Sans", "Liberation Sans",
    sans-serif;
  --font-ui:
    "Space Grotesk", "Manrope", "Avenir Next", "Segoe UI", "Noto Sans",
    "Liberation Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: linear-gradient(180deg, #eef1f6 0%, #f8f9fc 100%);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(
      1200px 620px at -10% -10%,
      rgba(72, 74, 89, 0.08) 0%,
      rgba(72, 74, 89, 0) 65%
    ),
    linear-gradient(180deg, #eef1f6 0%, #f8f9fc 100%);
  line-height: 1.68;
  display: flex;
  flex-direction: column;
  font-weight: 450;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border: 2px solid transparent;
  background-clip: content-box;
}

.site-shell {
  width: min(1060px, calc(100% - clamp(2.6rem, 6vw, 8.5rem)));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.55rem 0 0;
}

@media (min-width: 2200px) {
  .site-shell {
    width: min(1620px, calc(100% - 7rem));
  }
}

@media (min-width: 3000px) {
  .site-shell {
    width: min(2000px, calc(100% - 9rem));
  }
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.8rem;
  padding: 0.5rem 0 1.15rem;
  border-bottom: 0;
  position: relative;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left center;
  animation: draw-rule 0.68s cubic-bezier(0.23, 1, 0.32, 1) 0.12s forwards;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand img {
  width: clamp(170px, 22vw, 248px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  animation: logo-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s forwards;
}

.topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.72rem;
}

.primary-nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.primary-nav a {
  font-family: var(--font-ui);
  color: var(--brand-strong);
  text-decoration: none;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.05rem;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  opacity: 0;
  transform: translateY(7px);
  animation: nav-in 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.primary-nav a:nth-child(1) {
  animation-delay: 0.24s;
}

.primary-nav a:nth-child(2) {
  animation-delay: 0.33s;
}

.primary-nav a:nth-child(3) {
  animation-delay: 0.42s;
}

.primary-nav a:nth-child(4) {
  animation-delay: 0.5s;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-color: var(--brand-soft);
  color: #2f3342;
  text-decoration: none;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  gap: 0.34rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(72, 74, 89, 0.08);
  overflow: hidden;
}

.lang-switch-indicator {
  position: absolute;
  left: 0.18rem;
  top: 0.18rem;
  height: calc(100% - 0.36rem);
  width: 2.3rem;
  border-radius: 999px;
  background: var(--brand-strong);
  box-shadow: 0 4px 12px rgba(40, 44, 58, 0.25);
  opacity: 0;
  pointer-events: none;
  will-change: left, width, transform, opacity;
}

.lang-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  min-width: 2.3rem;
  padding: 0.32rem 0.58rem;
  font-family: var(--font-ui);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--brand-strong);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.lang-switch button.is-active {
  color: #f7f8fc;
  text-shadow: 0 0 0.01px currentColor;
}

main {
  padding-top: 1.2rem;
  padding-bottom: 2.1rem;
  flex: 1;
}

.hero {
  border-bottom: 0;
  padding: 2.5rem 0 2.35rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--brand-soft);
  font-size: 0.68rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--brand-strong);
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  margin: 0.85rem 0 1.15rem;
  font-size: clamp(2.3rem, 4.2vw, 3.35rem);
  max-width: 18ch;
  letter-spacing: 0.005em;
  font-variation-settings: "opsz" 48, "wght" 650;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: #34394a;
  font-size: clamp(1.05rem, 1.28vw, 1.16rem);
  line-height: 1.82;
  font-weight: 500;
}

.hero-positioning {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: #454c5d;
  font-size: 1.03rem;
  line-height: 1.78;
}

.hero-meta {
  margin-top: 2rem;
  display: grid;
  gap: 0.95rem 2.8rem;
  grid-template-columns: repeat(2, minmax(220px, max-content));
  justify-content: start;
  padding-top: 0;
}

.hero-meta div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.hero-meta div::before {
  content: "";
  display: block;
  width: 2rem;
  height: 0.22rem;
  border-radius: 999px;
  margin-bottom: 0.62rem;
  background: rgba(72, 74, 89, 0.58);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero.is-visible .hero-meta div::before {
  animation: draw-pill 0.62s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero.is-visible .hero-meta div:nth-child(1)::before {
  animation-delay: 0.26s;
}

.hero.is-visible .hero-meta div:nth-child(2)::before {
  animation-delay: 0.4s;
}

.hero-meta .label {
  display: block;
  color: var(--brand-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  margin-bottom: 0.28rem;
  font-weight: 600;
}

.hero-meta div span:last-child {
  color: #373d4d;
  font-size: 1.02rem;
  font-weight: 500;
}

.section {
  padding: 2.95rem 0 1.2rem;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.72rem, 2.7vw, 2.24rem);
  font-variation-settings: "opsz" 36, "wght" 620;
}

.about-copy {
  margin: 0;
  max-width: 66ch;
  color: #3b4050;
  line-height: 1.86;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
}

.card {
  padding: 0.2rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  transition: none;
}

.card::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 0.24rem;
  border-radius: 999px;
  margin-bottom: 0.76rem;
  background: rgba(72, 74, 89, 0.62);
  transform: scaleX(0);
  transform-origin: left center;
}

.section.is-visible .card::before {
  animation: draw-pill 0.62s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.section.is-visible .card:nth-child(1)::before {
  animation-delay: 0.22s;
}

.section.is-visible .card:nth-child(2)::before {
  animation-delay: 0.36s;
}

.section.is-visible .card:nth-child(3)::before {
  animation-delay: 0.5s;
}

.section.is-visible .card:nth-child(4)::before {
  animation-delay: 0.64s;
}

.card h3 {
  margin: 0 0 0.78rem;
  font-size: 1.34rem;
  line-height: 1.24;
  font-variation-settings: "opsz" 24, "wght" 600;
}

.card p {
  margin: 0;
  color: #3d4353;
  line-height: 1.84;
  font-size: 1rem;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateX(2px);
}

.card-link:hover h3,
.card-link:focus-visible h3 {
  color: #2f3342;
}

.card-more {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.67rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-strong);
  background: rgba(72, 74, 89, 0.12);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.card-link:hover .card-more,
.card-link:focus-visible .card-more {
  transform: translateX(2px);
  color: #f7f8fc;
  background: var(--brand-strong);
}

.service-hero {
  padding-bottom: 1.55rem;
}

.service-back {
  margin: 1rem 0 0;
}

.service-back a {
  color: var(--brand-strong);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 74, 89, 0.35);
}

.service-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  padding-top: 2rem;
}

.service-panel h2 {
  margin: 0 0 0.72rem;
  font-size: clamp(1.36rem, 2.2vw, 1.66rem);
}

.service-list {
  margin: 0;
  padding-left: 1rem;
  color: #3a4151;
}

.service-list li {
  margin: 0.45rem 0;
  line-height: 1.75;
}

.service-proof {
  padding-top: 2rem;
}

.service-proof p {
  max-width: 72ch;
}

#service-proof-link {
  color: var(--brand-strong);
  font-weight: 600;
  text-underline-offset: 0.16em;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.55rem;
}

.brand-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 1.05rem;
  padding: 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(72, 74, 89, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

.brand-card img {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.brand-card h3 {
  margin: 0 0 0.34rem;
  font-size: 1.18rem;
}

.brand-card p {
  margin: 0 0 0.45rem;
  color: #3e4455;
  line-height: 1.74;
}

.brand-card a {
  color: var(--brand-strong);
  font-weight: 600;
  text-underline-offset: 0.16em;
}

.contact-section {
  padding-bottom: 2rem;
}

.contact-actions {
  margin-top: 1.2rem;
}

.contact-note {
  margin: 0.9rem 0 0;
  color: #535a6c;
  font-size: 0.96rem;
}

.contact-note a {
  color: var(--brand-strong);
  font-weight: 600;
  text-underline-offset: 0.14em;
}

.cta-button {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.24rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 630;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f8f9fe;
  background: var(--brand-strong);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(47, 53, 70, 0.22);
}

.cta-button.cta-button-soft {
  color: var(--brand-strong);
  background: rgba(72, 74, 89, 0.12);
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.9rem;
  box-shadow: none;
}

.cta-button.cta-button-soft:hover,
.cta-button.cta-button-soft:focus-visible {
  transform: translateX(2px);
  color: #f7f8fc;
  background: var(--brand-strong);
  box-shadow: none;
}

.cta-link {
  border: 0;
  background: transparent;
  color: #5a6072;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.2rem;
}

.site-footer {
  margin-top: auto;
  border: 1px solid #5f6478;
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
  padding: 1.3rem 1.15rem 0.75rem;
  background: var(--brand);
  isolation: isolate;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3.2rem);
  align-items: start;
}

.footer-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, max-content));
  gap: clamp(1.1rem, 3vw, 3.6rem);
  justify-content: start;
}

.footer-brand img {
  width: 138px;
  height: auto;
  opacity: 0.94;
  filter: invert(1) grayscale(1) brightness(1.12) contrast(1.08);
  mix-blend-mode: screen;
}

.footer-brand {
  padding-top: 0.5rem;
  padding-left: 1.5rem;
}

.footer-brand p,
.footer-col p {
  margin: 0.26rem 0;
  color: #e8ebf3;
}

.footer-title {
  font-family: var(--font-ui);
  margin: 0 0 0.55rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-col a {
  color: #f6f8fd;
}

.footer-col {
  max-width: 28ch;
}

.site-footer .cta-button.cta-button-soft {
  color: #f7f9ff;
  background: rgba(247, 249, 255, 0.12);
  border: 1px solid rgba(247, 249, 255, 0.45);
}

.site-footer .cta-button.cta-button-soft:hover,
.site-footer .cta-button.cta-button-soft:focus-visible {
  color: #1f2433;
  background: #f7f9ff;
  border-color: #f7f9ff;
}

.footer-meta {
  margin: 0.95rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(239, 242, 250, 0.2);
  text-align: right;
  color: #d6dbe8;
  font-size: 0.88rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 36, 0.54);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  width: min(680px, calc(100% - 1.6rem));
  margin: min(4.5vh, 2.2rem) auto;
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(72, 74, 89, 0.28);
  background: #f5f7fc;
  padding: 1.3rem 1.2rem 1.2rem;
  box-shadow: 0 28px 42px rgba(20, 24, 34, 0.34);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-strong) rgba(72, 74, 89, 0.16);
}

.modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.56rem;
  border: 0;
  background: transparent;
  color: #495066;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 1.8rem 0.34rem 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.modal-subtitle {
  margin: 0 0 0.95rem;
  color: #4a5163;
}

.inquiry-form {
  display: grid;
  gap: 0.54rem;
}

.inquiry-form label {
  margin-top: 0.28rem;
  font-family: var(--font-ui);
  color: #464d61;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(72, 74, 89, 0.28);
  border-radius: 11px;
  padding: 0.64rem 0.74rem;
  font: inherit;
  color: #242833;
  background: rgba(255, 255, 255, 0.85);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 7rem;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) rgba(72, 74, 89, 0.12);
}

.modal-panel::-webkit-scrollbar,
.inquiry-form textarea::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.modal-panel::-webkit-scrollbar-track,
.inquiry-form textarea::-webkit-scrollbar-track {
  background: rgba(72, 74, 89, 0.12);
  border-radius: 999px;
}

.modal-panel::-webkit-scrollbar-thumb,
.inquiry-form textarea::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.modal-panel::-webkit-scrollbar-thumb:hover,
.inquiry-form textarea::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border: 2px solid transparent;
  background-clip: content-box;
}

.captcha-container {
  margin-top: 0.35rem;
  min-height: 68px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-actions {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.76rem;
  flex-wrap: wrap;
}

.inquiry-status {
  margin: 0.35rem 0 0;
  color: #4a5163;
  min-height: 1.4em;
  font-size: 0.94rem;
}

body.modal-open {
  overflow: hidden;
}

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

.js-animations .reveal {
  opacity: 0;
  transform: translateY(12px);
}

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

@keyframes draw-rule {
  to {
    transform: scaleX(1);
  }
}

@keyframes draw-pill {
  to {
    transform: scaleX(1);
  }
}

@keyframes nav-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: calc(100% - 1.3rem);
    padding-top: 0.9rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.25rem 0 0.85rem;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 0.82rem 1rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero {
    padding: 1.8rem 0 1.7rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

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

  .card {
    padding: 0.12rem 0 0;
  }

  .site-footer {
    border-radius: 10px 10px 0 0;
    padding: 1rem 0.85rem 0.52rem;
  }

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

  .footer-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-meta {
    text-align: left;
  }

  .modal-panel {
    width: calc(100% - 1.05rem);
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-animations .reveal {
    opacity: 1;
    transform: none;
  }

  .brand img,
  .primary-nav a {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .topbar::after,
  .hero-meta div::before,
  .card::before {
    transform: none;
    animation: none;
  }

  .card {
    transition: none;
  }

  .cta-button {
    transition: none;
  }

  .lang-switch-indicator {
    transition: none;
  }
}
