:root {
  --text-size-80: 0.694rem;
  --text-size-90: 0.833rem;
  --text-size-100: 1rem;
  --text-size-200: 1.2rem;
  --text-size-300: 1.44rem;
  --text-size-400: 1.728rem;
  --text-size-500: 2.074rem;
  --text-size-600: 2.488rem;
  --text-size-700: 2.986rem;

  --bg: #202632;
  --bg-deep: #031421;
  --bg-hero: #3c475a;
  --panel-light: #e8e8eb;
  --text: #ffffff;
  --text-dark: #1d232c;
  --muted: #c3cad6;
  --muted-dark: #575d66;
  --accent: #d600ff;
  --accent-red: #ff3c4f;
  --link-on-light: #ae040f;
  --link-on-dark: #c75058;
  --line-light: rgba(255, 255, 255, 0.22);
  --line-dark: rgba(21, 27, 36, 0.28);

  --shell-max: 1280px;
  --site-pad: 1rem;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: var(--text-size-100);
  line-height: 1.55;
  letter-spacing: 0.008em;
  color: var(--text);
  background: #101825;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.016em;
}

h1 {
  font-size: var(--text-size-700);
}

h2 {
  font-size: var(--text-size-600);
}

h3 {
  font-size: var(--text-size-300);
}

.red-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 0.06em;
}

.red-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.02em;
  height: 0.11em;
  background: #e83945;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(165deg, #4c596f 0%, #273144 38%, #111c2a 100%);
}

.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.32;
}

.shell {
  width: min(var(--shell-max), calc(100% - (var(--site-pad) * 2)));
  margin-inline: auto;
}

.textured {
  background-image: linear-gradient(rgba(17, 24, 35, 0.46), rgba(17, 24, 35, 0.46)),
    url('assets/Building-01 2.png'), linear-gradient(160deg, #44526a 0%, #212c3d 58%, #141f2e 100%);
  background-size: cover, cover, cover;
  background-position: center;
}

.textured-deep {
  background-image: linear-gradient(rgba(1, 11, 19, 0.5), rgba(1, 11, 19, 0.5)),
    url('assets/Building-01 2.png'), linear-gradient(160deg, #032138 0%, #011523 72%);
  background-size: cover, cover, cover;
  background-position: center;
}

.page-label,
.section-label {
  margin: 0 0 0.35rem;
  font-size: var(--text-size-200);
  color: #d9dee7;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 0.06rem;
}

.brand-logo {
  display: block;
}

.brand-logo-light {
  width: 124px;
  height: auto;
}

.brand-logo-dark {
  width: 152px;
  height: auto;
}

.brand-mark {
  margin: 0;
  font-family: 'Cal Sans', sans-serif;
  font-size: var(--text-size-500);
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-mark span {
  color: var(--accent-red);
}

.brand-text {
  font-size: var(--text-size-80);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d8dde6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav-links a {
  font-size: var(--text-size-90);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #edf2f8;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: var(--text-size-90);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: 0;
  padding: 0.52rem 1.05rem;
  display: inline-block;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-img {
  width: 158px;
  height: 37px;
  padding: 0;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
  border: 0;
  background-size: cover;
  background-position: center;
}

.btn-img-dark {
  background-image: url('assets/button-get-in-touch-dark.png');
}

.btn-img-light {
  background-image: url('assets/button-get-in-touch-light.png');
}

.btn-outline:hover,
.btn-outline:focus-visible {
  opacity: 0.92;
}

.mobile-cta {
  display: none;
}

.menu-icon {
  width: 33px;
  height: 33px;
  border: 0;
  background: transparent;
  margin-left: 0.6rem;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 6px;
  width: 21px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
}

.menu-icon::before {
  top: 11px;
}

.menu-icon::after {
  top: 19px;
}

.hero-panel {
  border: 0;
  min-height: 540px;
  padding: 0;
  display: grid;
  align-content: end;
  gap: 0;
  position: relative;
}

.hero-carousel {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  display: grid;
  align-content: end;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  padding-bottom: clamp(7.2rem, 13vw, 9.4rem);
  background-size: cover;
  background-position: center top;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide[data-slide='0'] {
  background-image: linear-gradient(rgba(24, 34, 49, 0.38), rgba(24, 34, 49, 0.38)), url('assets/hero.png');
}

.hero-slide[data-slide='1'] {
  background-image: linear-gradient(rgba(24, 34, 49, 0.42), rgba(24, 34, 49, 0.42)), url('assets/project-1.png');
}

.hero-slide[data-slide='2'] {
  background-image: linear-gradient(rgba(24, 34, 49, 0.42), rgba(24, 34, 49, 0.42)), url('assets/project-2.png');
}

.hero-content {
  max-width: 760px;
  margin-bottom: 0.2rem;
}

.hero-panel h1 {
  max-width: none;
  font-size: clamp(1.95rem, 3.9vw, 3.35rem);
  line-height: 1.02;
}

.hero-slide h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 0.4rem;
}

.hero-slide p {
  max-width: 40ch;
  color: #d6deea;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-arrow {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2.2rem);
  bottom: 3.95rem;
  width: 33px;
  height: 33px;
  display: block;
  background-image: url('assets/icon-arrow-square.png');
  background-size: cover;
  background-position: center;
}

.hero-dots {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2.2rem);
  bottom: 1.8rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0;
}

.hero-dot.is-active {
  background: #ffffff;
}

.services-panel {
  border: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
}

.services-intro {
  padding: 1.55rem;
  border-right: 1px solid var(--line-light);
}

.services-intro h2 {
  max-width: none;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  line-height: 1.02;
}

.services-title-line {
  display: block;
  white-space: nowrap;
}

.services-intro p {
  margin: 0.9rem 0 1.1rem;
  max-width: 28ch;
  color: var(--muted);
}

.services-list {
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.3rem;
  max-height: 308px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(163, 171, 182, 0.9) rgba(255, 255, 255, 0.1);
}

.services-list::-webkit-scrollbar {
  width: 8px;
}

.services-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.services-list::-webkit-scrollbar-thumb {
  background: rgba(163, 171, 182, 0.9);
}

.service-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 0.72rem 0;
  opacity: 1;
  transform: none;
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 0.9rem;
}

.js .service-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.service-row:last-child {
  border-bottom: 0;
}

.service-row h3 {
  font-size: 1.12rem;
  align-self: center;
}

.service-row p {
  margin-top: 0.34rem;
  color: #b9c5d2;
  font-size: var(--text-size-90);
  max-width: 56ch;
  grid-column: 2;
}

.service-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  grid-row: 1 / span 2;
}

.projects {
  margin-top: 0;
  position: relative;
}

.projects-track {
  border: 1px solid var(--line-light);
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 360px);
}

.project-slide {
  position: relative;
  height: 360px;
  min-height: 360px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.project-intro {
  background: #c4c7cc;
  color: var(--text-dark);
  padding: 1.25rem 1.35rem;
}

.watermark-logo {
  width: 247px;
  max-width: 90%;
  opacity: 0.62;
  filter: grayscale(0.1) brightness(0.24);
}

.project-intro h2 {
  margin-top: 0.15rem;
  font-size: clamp(2.1rem, 2.7vw, 3rem);
}

.project-intro p {
  margin-top: 0.35rem;
  max-width: 28ch;
  color: #4f5661;
  font-size: 0.95rem;
}

.project-card {
  background-size: cover;
  background-position: center center;
}

.project-1 {
  background-image: linear-gradient(rgba(10, 16, 24, 0.1), rgba(10, 16, 24, 0.1)), url('assets/project-1.png');
  background-position: center 58%;
  border-bottom: 0;
}

.project-2 {
  background-image: linear-gradient(rgba(10, 16, 24, 0.1), rgba(10, 16, 24, 0.1)), url('assets/project-2.png');
  background-position: center 58%;
  border-bottom: 0;
}

.project-3 {
  background-image: linear-gradient(rgba(10, 16, 24, 0.1), rgba(10, 16, 24, 0.1)), url('assets/project-3.png');
}

.project-4 {
  background-image: linear-gradient(rgba(10, 16, 24, 0.1), rgba(10, 16, 24, 0.1)), url('assets/project-4.png');
}

.project-5 {
  background-image: linear-gradient(rgba(10, 16, 24, 0.12), rgba(10, 16, 24, 0.12)), url('assets/project-3.png');
  background-position: center 58%;
}

.project-hover {
  position: absolute;
  inset: 0;
  padding: 1.45rem;
  display: grid;
  align-content: end;
  opacity: 0;
  transition: opacity 180ms ease;
  background: linear-gradient(rgba(9, 20, 34, 0.35), rgba(9, 20, 34, 0.84));
}

.project-card:hover .project-hover,
.project-card:focus-within .project-hover {
  opacity: 1;
}

.plus {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(10, 16, 24, 0.12);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.plus::before {
  content: '+';
}

.project-card:hover .plus,
.project-card:focus-within .plus {
  background: #ffffff;
  color: #e83945;
  border-color: #ffffff;
}

.project-hover h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  max-width: 14ch;
}

.project-hover p {
  margin-top: 0.52rem;
  max-width: 34ch;
  color: #ced7e2;
  font-size: 0.9rem;
}

.carousel-hint {
  display: none;
  margin: 0.55rem 0 0;
  font-size: var(--text-size-90);
  color: #d5dbe4;
  letter-spacing: 0.02em;
}

.cta-band {
  border: 1px solid var(--line-light);
  border-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2.8rem);
}

.capability {
  padding: 1rem;
  max-width: 20ch;
}

.capability h2 {
  max-width: 10ch;
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.04;
}

.cap-title-line {
  display: block;
}

.capability p {
  margin-top: 0.7rem;
  max-width: 33ch;
  color: #d4dbe6;
}

.cap-cover {
  margin-top: 1.2rem;
  width: 210px;
  aspect-ratio: 1 / 1;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.cap-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-form {
  background: var(--panel-light);
  border: 1px solid #d0d3d8;
  color: var(--text-dark);
  padding: clamp(1rem, 2.5vw, 1.55rem);
  display: grid;
  align-content: start;
  gap: 0.56rem;
}

.lead-form h3 {
  font-size: clamp(2rem, 2.8vw, 2.5rem);
}

.form-note {
  color: var(--muted-dark);
  max-width: 50ch;
}

.form-placeholder {
  margin: 1.2rem 0 0.7rem;
  color: #4f5561;
  font-size: var(--text-size-90);
}

.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.4em;
  font-size: var(--text-size-90);
  color: #2f5d38;
}

.form-status.is-error {
  color: #9f1e2a;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: var(--text-size-80);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #323843;
}

input,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #bcc1ca;
  background: #f6f7f9;
  color: #171d26;
  padding: 0.48rem;
}

.btn-submit {
  justify-self: start;
  margin-top: 0.35rem;
  border: 1px solid #969daa;
  background: #eceef2;
  color: #131820;
  font-size: var(--text-size-90);
  padding: 0.32rem 1.5rem;
  cursor: pointer;
}

.footer {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr auto;
  align-items: start;
  gap: 1rem;
}

.light-footer {
  background: #ececef;
  color: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.1);
}

.brand-text-dark {
  margin-top: 0.22rem;
  color: #232a33;
  font-size: var(--text-size-80);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.copyright {
  margin-top: 1.2rem;
  color: #535a64;
  font-size: var(--text-size-90);
}

.footer-contact h3 {
  font-size: var(--text-size-300);
}

.footer-contact p {
  margin-top: 0.34rem;
  color: #4a515c;
  font-size: var(--text-size-90);
}

.footer-links {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.58rem;
}

.footer-links a {
  color: var(--link-on-light);
  text-decoration: none;
  font-size: var(--text-size-90);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}

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

.call-link {
  color: var(--link-on-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.call-link:hover,
.call-link:focus-visible {
  color: #85888f;
}

.contact-card .call-link {
  color: var(--link-on-dark);
}

.contact-card .call-link:hover,
.contact-card .call-link:focus-visible {
  color: #e78ca0;
}

.socials {
  display: flex;
  gap: 0.42rem;
  padding-top: 0.58rem;
}

.socials a {
  width: 1.8rem;
  height: 1.8rem;
  text-decoration: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 24, 33, 0.75);
  font-size: var(--text-size-80);
  line-height: 1;
  background: #111923;
}

.socials a img {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-main {
  padding-top: 0.15rem;
}

.contact-hero {
  border: 1px solid var(--line-light);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  min-height: 360px;
  display: grid;
  align-content: center;
  background-image: linear-gradient(rgba(24, 34, 49, 0.38), rgba(24, 34, 49, 0.38)), url('assets/hero.png');
  background-size: cover;
  background-position: center;
}

.contact-hero h1 {
  max-width: 10.5ch;
}

.contact-panel {
  border: 1px solid var(--line-light);
  border-top: 0;
  padding: clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  max-width: 38ch;
}

.contact-card h2 {
  margin-bottom: 0.55rem;
}

.contact-card p {
  margin-top: 0.82rem;
  color: #d0d8e3;
}

.contact-card strong {
  color: #ffffff;
}

.contact-form {
  min-height: 460px;
}

@media (min-width: 768px) {
  html {
    font-size: 100%;
  }

  :root {
    --text-size-80: 0.694rem;
    --text-size-90: 0.833rem;
    --text-size-100: 1rem;
    --text-size-200: 1.2rem;
    --text-size-300: 1.44rem;
    --text-size-400: 1.728rem;
    --text-size-500: 2.074rem;
    --text-size-600: 2.488rem;
    --text-size-700: 2.986rem;
  }
}

@media (max-width: 1024px) {
  .footer,
  .contact-panel,
  .cta-band,
  .services-panel {
    grid-template-columns: 1fr;
  }

  .services-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .services-list {
    max-height: none;
    overflow: visible;
  }

  .footer {
    gap: 0.7rem;
  }

  .capability {
    padding-inline: 0;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-icon {
    display: none;
  }

  .mobile-cta {
    display: inline-block;
    margin-left: auto;
  }

  .hero-panel {
    min-height: 520px;
    align-content: center;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .projects-track {
    display: flex;
    overflow-x: auto;
    gap: 0;
    border-top: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .projects-track::-webkit-scrollbar {
    height: 0;
  }

  .project-slide {
    min-width: 84vw;
    min-height: 320px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    scroll-snap-align: start;
  }

  .project-hover {
    opacity: 1;
  }

  .carousel-hint {
    display: none;
  }

  .projects-track.has-overflow + .carousel-hint {
    display: block;
  }

  .projects-track.user-scrolled + .carousel-hint {
    opacity: 0;
    transition: opacity 220ms ease;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 1rem);
  }

  .topbar {
    padding: 0.75rem 0;
  }

  .brand-mark {
    font-size: var(--text-size-400);
  }

  .brand-logo-light {
    width: 96px;
  }

  .hero-panel {
    min-height: 438px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-carousel {
    min-height: 438px;
  }

  .hero-slide {
    padding-bottom: 7.8rem;
  }

  .services-intro,
  .services-list,
  .project-intro,
  .cta-band,
  .footer,
  .contact-panel {
    padding: 0.95rem;
  }

  .service-row {
    grid-template-columns: 42px 1fr;
  }

  .service-icon {
    width: 42px;
    height: 42px;
  }

  .services-title-line {
    white-space: normal;
  }

  .cap-cover {
    width: 120px;
  }

  .form-placeholder {
    margin-top: 0.7rem;
  }

  .contact-hero {
    min-height: 260px;
  }

  .project-slide {
    min-width: 88vw;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }

  .js .service-row {
    opacity: 1;
    transform: none;
  }
}
