:root {
  --ink: #0b1018;
  --muted: #65707c;
  --paper: #f4f6f7;
  --white: #ffffff;
  --line: #d9dfe3;
  --night: #071522;
  --night-2: #0c2030;
  --cyan: #00c6d7;
  --cyan-dark: #007d89;
  --pink: #e63f9f;
  --header-height: 72px;
  --radius: 6px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.section-shell,
.nav-shell,
.hero-inner {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow--light {
  color: #74eff5;
}

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

h1,
h2,
h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 56px;
  line-height: 1.04;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  color: #3b4650;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.btn svg,
.icon-link svg,
.text-link svg,
.menu-toggle svg,
.mobile-contact svg,
.contact-location svg,
.contact-mail svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: #222a33;
}

.btn--accent {
  background: var(--cyan);
  color: #041318;
}

.btn--accent:hover {
  background: #42dce6;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(3, 10, 20, 0.38);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.header-cta {
  min-height: 44px;
  padding-inline: 16px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  position: absolute;
  inset: var(--header-height) 0 auto;
  padding: 12px 24px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 750;
}

.hero {
  position: relative;
  height: calc(100svh - 96px);
  min-height: 560px;
  max-height: 760px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background-color: var(--night);
  background-image: url("assets/cover.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: rgba(3, 9, 19, 0.86);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

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

.hero-lead {
  max-width: 670px;
  margin-bottom: 28px;
  color: #d8e0e7;
  font-size: 19px;
}

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

.facts {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.facts-grid > div {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 32px;
  border-left: 1px solid var(--line);
}

.facts-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.facts-grid strong {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.2;
}

.facts-grid span {
  color: var(--muted);
  font-size: 14px;
}

.services {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading > p {
  margin-bottom: 2px;
  color: var(--muted);
}

.filter-bar {
  width: max-content;
  max-width: 100%;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  overflow-x: auto;
  background: #e7ebed;
  border-radius: var(--radius);
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4c5862;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(11, 16, 24, 0.12);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-row {
  min-height: 156px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 42px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-row--featured {
  grid-column: 1 / -1;
  min-height: 132px;
  background: var(--night-2);
  border-color: var(--night-2);
  color: var(--white);
}

.service-row--featured .service-copy p,
.service-row--featured .service-kicker {
  color: #b8c8d2;
}

.service-row--featured .service-icon {
  background: var(--cyan);
  color: var(--night);
  border-color: var(--cyan);
}

.service-row--featured .icon-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.service-row--featured .icon-link:hover {
  color: var(--night);
  background: var(--cyan);
  border-color: var(--cyan);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3d8;
  border-radius: var(--radius);
  color: var(--cyan-dark);
}

.service-icon svg {
  width: 23px;
  height: 23px;
}

.service-copy h3 {
  margin: 0 0 7px;
}

.service-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-price {
  min-width: 112px;
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
  text-align: right;
}

.icon-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.icon-link:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.case-study {
  padding: 112px 0;
  color: var(--white);
  background: var(--night);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}

.case-visual {
  margin: 0;
}

.case-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.case-visual figcaption {
  margin-top: 10px;
  color: #91a4b2;
  font-size: 12px;
}

.case-content h2 {
  margin-bottom: 22px;
}

.case-lead {
  margin-bottom: 30px;
  color: #c9d5dc;
  font-size: 18px;
}

.case-details {
  margin: 0 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.case-details > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.case-details dt {
  color: #74eff5;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-details dd {
  margin: 0;
  color: #d8e0e6;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link--light {
  color: #a8f5f8;
}

.process {
  background: var(--white);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li {
  position: relative;
  min-height: 280px;
  padding: 32px 26px;
  border-left: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 1px solid var(--line);
}

.process-list svg {
  width: 28px;
  height: 28px;
  margin: 44px 0 18px;
  color: var(--cyan-dark);
}

.process-list h3 {
  margin-bottom: 10px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-number {
  position: absolute;
  top: 30px;
  right: 24px;
  color: #a9b3ba;
  font-size: 13px;
  font-weight: 850;
}

.team {
  padding: 96px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.team-intro h2 {
  font-size: 38px;
}

.team-list {
  border-top: 1px solid var(--line);
}

.team-member {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.team-member:hover strong {
  color: var(--cyan-dark);
}

.team-member > svg {
  width: 19px;
  justify-self: end;
}

.team-initials {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--night-2);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.team-member strong,
.team-member small {
  display: block;
}

.team-member small {
  margin-top: 2px;
  color: var(--muted);
}

.contact {
  padding: 104px 0;
  color: var(--white);
  background: var(--night-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 88px;
  align-items: center;
}

.contact-copy h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 48px;
}

.contact-copy > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: #bccbd4;
  font-size: 18px;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.btn--wide {
  width: 100%;
}

.contact-mail {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
}

.contact-mail:hover {
  border-color: var(--cyan);
}

.contact-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aabcc7;
  font-size: 14px;
}

.site-footer {
  padding: 30px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

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

.brand--footer img {
  width: 36px;
  height: 36px;
}

.footer-inner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mobile-contact {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 38px;
  }

  .section,
  .case-study {
    padding: 88px 0;
  }

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

  .service-row--featured {
    grid-column: auto;
  }

  .case-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .case-visual {
    max-width: 760px;
  }

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

  .process-list li:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .process-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-copy h2 {
    font-size: 42px;
  }

  .contact-actions {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-bottom: 72px;
    font-size: 15px;
  }

  .section-shell,
  .nav-shell,
  .hero-inner {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 17px;
  }

  .section,
  .case-study,
  .team,
  .contact {
    padding: 68px 0;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2,
  .team-intro h2,
  .contact-copy h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .hero {
    height: calc(100svh - 150px);
    min-height: 530px;
    max-height: 650px;
    background-position: 82% center;
  }

  .hero-scrim {
    height: 64%;
    background: rgba(3, 9, 19, 0.9);
  }

  .hero-inner {
    padding-bottom: 28px;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 16px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

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

  .facts-grid > div {
    min-height: 92px;
    padding: 20px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .facts-grid > div:last-child {
    border-bottom: 0;
  }

  .facts-grid strong {
    font-size: 21px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  .filter-bar {
    width: 100%;
  }

  .service-row {
    grid-template-columns: 42px 1fr 42px;
    gap: 14px;
    min-height: 0;
    padding: 20px 16px;
  }

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

  .service-price {
    grid-column: 2 / 3;
    min-width: 0;
    text-align: left;
    font-size: 16px;
  }

  .service-row .icon-link {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .case-grid {
    gap: 36px;
  }

  .case-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .case-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .case-actions .btn {
    width: 100%;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    min-height: 230px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .process-list svg {
    margin-top: 34px;
  }

  .team-member {
    grid-template-columns: 44px 1fr 22px;
  }

  .team-initials {
    width: 44px;
    height: 44px;
  }

  .contact-grid {
    gap: 34px;
  }

  .contact-copy > p:last-child {
    font-size: 16px;
  }

  .contact-mail span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-inner p {
    text-align: left;
  }

  .mobile-contact {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    background: var(--cyan);
    border: 1px solid #006b76;
    border-radius: var(--radius);
    color: #031216;
    box-shadow: 0 8px 24px rgba(2, 15, 24, 0.24);
    font-weight: 850;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 31px;
  }

  .hero {
    min-height: 540px;
  }

  .service-copy h3 {
    font-size: 18px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
