:root {
  --bg: #eef3f5;
  --surface: #ffffff;
  --surface-soft: #f6fafb;
  --text: #11232c;
  --text-muted: #405761;
  --line: #c8d6db;
  --brand: #0f7699;
  --brand-light: #3cbfec;
  --brand-deep: #084053;
  --brand-soft: #d8ecf2;
  --accent: #ff3366;
  --shadow: 0 18px 40px rgba(4, 31, 40, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 12% 0%, #d7e9ef 0%, var(--bg) 42%, #f2f6f8 100%);
  font-family: "Raleway", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-deep);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
}

.section-pad {
  padding: clamp(3.75rem, 7vw, 6.25rem) 0;
}

section[id] {
  scroll-margin-top: 86px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 1rem;
}

.section-lead {
  max-width: 75ch;
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: #000000;
  padding: 0.6rem 0.9rem;
  z-index: 999;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-solid {
  border-color: rgba(172, 206, 215, 0.38);
  background: rgba(8, 64, 83, 0.96);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
}

.brand-word {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1.65rem;
  line-height: 1;
}

.brand-mid {
  color: var(--brand-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: #dbeef3;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.subtle-link {
  opacity: 0.82;
  font-size: 0.84rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(220, 239, 245, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(8, 64, 83, 0.88) 0%, rgba(7, 59, 76, 0.82) 45%, rgba(15, 118, 153, 0.78) 100%),
    linear-gradient(45deg, rgba(255, 51, 102, 0.12) 0%, rgba(255, 51, 102, 0) 55%),
    url("../assets/images/hero-bg-1920x1280.jpg");
  background-size: cover;
  background-position: center;
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: 100%;
  max-width: 1120px;
}

.hero-title {
  width: 80%;
  margin-bottom: 1.15rem;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.1rem 1.5rem;
  align-items: start;
}

.hero-strapline {
  order: 1;
  margin: 0;
  max-width: 68ch;
  color: #dbeef3;
}

.hero-actions {
  order: 2;
  margin-top: 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.76rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #ffffff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(219, 238, 243, 0.6);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.intro {
  background: var(--surface);
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 1.4rem;
  align-items: start;
}

.intro-copy {
  max-width: 76ch;
}

.intro-copy h2 {
  margin-bottom: 0.7rem;
}

.intro-copy p {
  margin: 0;
  color: var(--text-muted);
}

.intro-image {
  margin: 0;
  width: min(260px, 26vw);
  justify-self: end;
}

.intro-image img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.services {
  background: var(--surface-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(4, 31, 40, 0.07);
  padding: 1.2rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.service-card li {
  margin: 0 0 0.45rem;
}

.worked-with {
  background: var(--surface);
}

.logo-carousel {
  margin-top: 1.2rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.logo-carousel::before,
.logo-carousel::after {
  display: none;
}

.logo-scroller {
  display: flex;
  width: max-content;
  animation: logo-marquee 70s linear infinite;
}

.logo-carousel:hover .logo-scroller {
  animation-play-state: paused;
}

.logo-track {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin: 0;
  padding: 0.7rem 0;
}

.logo-item {
  min-width: 145px;
  height: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  flex: 0 0 auto;
}

.logo-item.logo-gap-after {
  margin-right: 0.75rem;
}

.logo-item.logo-gap-cycle {
  margin-right: 1.15rem;
}

.logo-item.logo-tinopolis img {
  max-height: 66px;
}

.logo-item img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) brightness(0) saturate(0);
  opacity: 0.64;
}

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

.showcase {
  background: linear-gradient(180deg, #eef5f8 0%, #f9fbfc 100%);
}

.showcase.specialist {
  background: linear-gradient(180deg, #f9fbfc 0%, #eef5f8 100%);
}

.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-button {
  border: 1px solid #96bbc6;
  background: #ffffff;
  color: #1d3a46;
  border-radius: 8px;
  min-width: 90px;
  height: 38px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: #eaf4f7;
}

.carousel-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.2rem 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.showcase-card {
  min-width: min(84vw, 350px);
  max-width: 350px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(4, 31, 40, 0.09);
  overflow: hidden;
  scroll-snap-align: start;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.card-copy {
  padding: 1rem;
}

.card-copy h3 {
  margin-bottom: 0.55rem;
}

.card-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.2rem;
  align-items: start;
}

.about-aside {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, #0e5e79 0%, #083d4f 100%);
  color: #dceff4;
  padding: 1.3rem;
}

.about-wordmark {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.about-wordmark span {
  color: var(--brand-light);
}

.how {
  background: var(--surface-soft);
}

.process-grid {
  margin: 1rem 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.process-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem 0.9rem;
}

.step-no {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.process-step h3 {
  margin: 0;
  font-size: 1rem;
}

.contact {
  background:
    linear-gradient(175deg, rgba(11, 75, 96, 0.96) 0%, rgba(8, 64, 83, 0.98) 100%),
    radial-gradient(circle at 100% 0%, rgba(255, 51, 102, 0.12) 0%, rgba(255, 51, 102, 0) 60%);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact p {
  color: #d8ebf1;
}

.closing-line {
  margin-top: 1rem;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 225, 235, 0.35);
  border-radius: 12px;
  padding: 1rem;
}

.form-row {
  margin-bottom: 0.8rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  color: #d8ebf1;
  font-size: 0.93rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(205, 231, 238, 0.4);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.96);
  color: #13262f;
  font: inherit;
}

.form-row textarea {
  resize: vertical;
}

.form-alert {
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.75rem;
}

.form-alert.success {
  background: rgba(119, 199, 143, 0.2);
  border: 1px solid rgba(119, 199, 143, 0.55);
}

.form-alert.error {
  background: rgba(255, 118, 118, 0.2);
  border: 1px solid rgba(255, 118, 118, 0.5);
}

.email-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.93rem;
}

.email-fallback a {
  color: #ffffff;
}

.site-footer {
  background: #062f3d;
  color: #cae3eb;
  padding: 2.2rem 0 1.4rem;
  border-top: 1px solid rgba(174, 209, 220, 0.2);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}

.footer-tag {
  margin: 0;
  font-weight: 600;
}

.footer-brand .brand-word {
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #cae3eb;
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

.footer-lower {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(174, 209, 220, 0.2);
  padding-top: 0.9rem;
}

.footer-lower p {
  margin: 0;
  color: #9ac0cc;
  font-size: 0.9rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8fd7ec;
  outline-offset: 2px;
}

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

  .logo-item {
    min-width: 140px;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: rgba(8, 64, 83, 0.97);
    border-top: 1px solid rgba(172, 206, 215, 0.3);
    display: grid;
    gap: 0.4rem;
    padding: 0.8rem 1rem 1.05rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.5rem 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-title {
    width: 100%;
  }

  .hero-lower {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    order: 2;
    justify-content: flex-start;
  }

  .hero-strapline {
    order: 1;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-image {
    width: min(420px, 100%);
    justify-self: start;
  }

  .carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-item {
    min-width: 128px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-carousel {
    overflow-x: auto;
  }

  .logo-scroller {
    animation: none;
  }
}
