:root {
  --ink: #0B1426;
  --ink-2: #14213D;
  --gold: #F2B705;
  --gold-d: #8A6A00;
  --paper: #FAF8F3;
  --grey: #5B6475;
  --line: #DAD7CE;
  --f-head: "Inter", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1rem/1.7 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
}

h1,
h2,
h3 {
  font-family: var(--f-head);
  line-height: 1.2;
  margin: 0 0 0.65em;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sec {
  padding: clamp(56px, 9vw, 104px) 0;
}

.dark {
  background: var(--ink);
  color: #E9ECF3;
}

.dark p {
  color: #C3CAD9;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--grey);
}

.dark .lead {
  color: #C3CAD9;
}

/* HEADER AND NAVIGATION */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid #243256;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  width: 260px;
  height: 68px;
  flex-shrink: 0;
  overflow: visible;
  text-decoration: none;
}

.brand .mark {
  display: block;
  width: 260px;
  height: 62px;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.wm {
  font: 700 1.2rem var(--f-head);
  color: #fff;
  letter-spacing: -0.035em;
}

nav {
  flex-shrink: 0;
  margin-left: auto;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  white-space: nowrap;
}

nav ul li {
  flex: 0 0 auto;
  white-space: nowrap;
}

nav a {
  display: block;
  padding: 10px 7px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #D6DCEA;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

nav a:hover {
  color: #fff;
}

nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font: 700 0.95rem/1.35 var(--f-body);
  padding: 14px 22px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: normal;
}

.btn:hover {
  background: #FFCB2E;
  border-color: #FFCB2E;
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

nav .btn {
  padding: 10px 14px;
  margin-left: 6px;
  color: var(--ink);
  white-space: nowrap;
}

.menu {
  display: none;
  background: none;
  border: 1px solid #3A4A75;
  color: #fff;
  padding: 9px 14px;
  font: 500 0.95rem var(--f-body);
  border-radius: 4px;
  cursor: pointer;
}

/* COLLAPSED NAVIGATION */

@media (max-width: 1200px) {
  .bar {
    justify-content: space-between;
  }

  .menu {
    display: block;
    flex-shrink: 0;
  }

  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--ink);
    border-bottom: 1px solid #243256;
    display: none;
    margin-left: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 20px;
    white-space: normal;
  }

  nav ul li {
    width: 100%;
    flex: none;
  }

  nav a {
    padding: 14px 0;
    border-bottom: 1px solid #1E2C4F;
    white-space: normal;
  }

  nav .btn {
    display: block;
    margin: 12px 0 0;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .brand {
    width: 210px;
    height: 60px;
  }

  .brand .mark {
    width: 210px;
    height: 55px;
  }

  .bar {
    height: 64px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 10px;
  }

  nav {
    top: 64px;
    max-height: calc(100vh - 64px);
  }
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 128px) 0 clamp(64px, 10vw, 112px);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero p.lead {
  max-width: 58ch;
  margin-bottom: 2em;
}

.acts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.track {
  position: absolute;
  right: -6%;
  top: 0;
  height: 100%;
  width: 62%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.tag {
  display: inline-block;
  margin-top: 2.2em;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: #C3CAD9;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 46ch;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.hero-contact a {
  color: #fff;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
  font-weight: 600;
}

.hero-contact a:hover {
  color: var(--gold);
}

@media (max-width: 760px) {
  .track {
    width: 120%;
    opacity: 0.35;
    right: -30%;
  }

  .hero .acts {
    align-items: stretch;
  }

  .hero .acts .btn {
    width: 100%;
  }
}

/* GRIDS AND CONTENT SECTIONS */

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

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

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

@media (max-width: 860px) {
  .g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }
}

.cell {
  background: var(--paper);
  padding: 28px;
}

.cell h3 {
  margin-bottom: 0.5em;
}

.cell p {
  color: var(--grey);
  font-size: 0.98rem;
}

.cell a.more {
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cell a.more:hover {
  text-decoration-thickness: 3px;
}

.dark .grid {
  background: #243256;
  border-color: #243256;
}

.dark .cell {
  background: var(--ink-2);
}

.dark .cell p {
  color: #C3CAD9;
}

.cell .lab {
  display: block;
  font: 700 0.8rem var(--f-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 10px;
}

.dark .cell .lab {
  color: var(--gold);
}

.cell.big p {
  font: 600 1.1rem/1.55 var(--f-head);
  color: var(--ink);
  max-width: none;
  margin: 0;
}

.dark .cell.big p {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 28px 64px;
  border-left: 2px solid var(--line);
  margin-left: 20px;
}

.steps li:last-child {
  border-color: transparent;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: -21px;
  top: -2px;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 1rem var(--f-head);
}

.steps h3 {
  margin: 0 0 0.35em;
}

.steps p {
  color: var(--grey);
  margin: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.facts div {
  border-top: 3px solid var(--gold);
  padding-top: 12px;
}

.facts strong {
  display: block;
  font: 800 1.9rem var(--f-head);
  letter-spacing: -0.04em;
}

.facts span {
  color: #C3CAD9;
  font-size: 0.95rem;
}

.clients {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.clients li {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 18px;
  font: 600 1rem var(--f-head);
  letter-spacing: -0.02em;
}

.dark .clients li {
  background: var(--ink-2);
  border-color: #243256;
  color: #fff;
}

/* CLIENT LOGO MARQUEE */

.marq {
  overflow: hidden;
  margin-top: 24px;
  border-block: 1px solid var(--line);
  background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marq-track {
  display: flex;
  width: max-content;
  animation: marq 30s linear infinite;
}

.marq:hover .marq-track,
.marq:focus-within .marq-track,
.marq.paused .marq-track {
  animation-play-state: paused;
}

.marq ul {
  display: flex;
  align-items: center;
  gap: 64px;
  list-style: none;
  margin: 0;
  padding: 0 64px 0 0;
}

.marq li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 80px;
  font: 700 1.05rem var(--f-head);
  white-space: nowrap;
  color: var(--ink);
}

.marq img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.pm {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  font: 500 0.85rem var(--f-body);
  color: var(--grey);
  cursor: pointer;
}

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

@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marq-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }

  .marq ul[aria-hidden] {
    display: none;
  }

  .marq ul {
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 16px 24px;
  }

  .pm {
    display: none;
  }

  .marq {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .btn,
  .social-icon {
    transition: none;
  }
}

/* NOTES AND SERVICE DETAILS */

.note {
  font-size: 0.9rem;
  color: var(--grey);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  max-width: 70ch;
}

.dark .note {
  color: #C3CAD9;
}

.svc {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.svc dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 24px;
  margin: 20px 0 0;
}

.svc dt {
  font-weight: 700;
  color: var(--gold-d);
}

.svc dd {
  margin: 0;
  max-width: 64ch;
}

@media (max-width: 640px) {
  .svc dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .svc dd {
    margin-bottom: 12px;
  }
}

/* FORMS */

form {
  display: grid;
  gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

label .opt {
  font-weight: 400;
  color: var(--grey);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid #9A9B9E;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.err {
  color: #A32020;
  font-size: 0.9rem;
  margin-top: 4px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #A32020;
}

.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.chk input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex: none;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.ok {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--gold);
  padding: 28px;
}

/* FOOTER */

footer {
  background: var(--ink);
  color: #C3CAD9;
  padding: 56px 0 100px;
  font-size: 0.95rem;
}

footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  footer .cols {
    grid-template-columns: 1fr;
  }
}

footer h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.6em;
  letter-spacing: -0.015em;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin: 0.4em 0;
}

footer a {
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

footer a:hover {
  color: #fff;
}

.social-area {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid #243256;
}

.social-heading {
  color: #fff;
  font: 700 1.2rem var(--f-head);
  margin: 0 0 20px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.social-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.social-icon {
  display: block;
  width: 64px;
  height: 64px;
  transition: transform 0.2s ease;
}

.social-links a:hover .social-icon {
  transform: translateY(-3px) scale(1.04);
}

.social-links a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .social-links {
    gap: 18px;
  }

  .social-icon {
    width: 56px;
    height: 56px;
  }
}

/* STICKY MOBILE CALL TO ACTION */

.sticky {
  display: none;
}

@media (max-width: 900px) {
  .sticky {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 40;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  footer {
    padding-bottom: 110px;
  }
}

/* SMALL SCREEN ADJUSTMENTS */

@media (max-width: 480px) {
  body {
    font-size: 0.98rem;
  }

  .sec {
    padding: 52px 0;
  }

  .cell {
    padding: 23px;
  }

  .tag {
    margin-top: 1.8em;
  }

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

  .facts strong {
    font-size: 1.65rem;
  }

  .hero-contact {
    align-items: flex-start;
  }
}

/* DECORATIVE LINE ANIMATION */

@media (prefers-reduced-motion: no-preference) {
  .track path.run {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 2.4s ease-out 0.2s forwards;
  }

  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}
