:root {
  --navy: #17194a;
  --navy-dark: #12143d;
  --coral: #d35947;
  --text: #17194a;
  --muted: #625f5f;
  --line: #eef0f5;
  --white: #ffffff;
  --bg: #ffffff;
  --soft: #f7f7fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px max(24px, calc((100% - 1184px) / 2));
  color: var(--white);
  transform: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-header:before {
  display: none;
}

.site-header.is-scrolled {
  border-bottom: 1px solid #f3f4f6;
  background: var(--white);
  color: var(--navy);
}

.logo {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  display: flex;
  width: 210px;
  height: 88px;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  background: transparent;
}

.logo-white,
.logo-blue {
  position: absolute;
  inset: 0;
  display: block;
}

.logo-white {
  opacity: 1;
}

.logo-blue {
  opacity: 0;
  filter: brightness(0) saturate(100%) invert(12%) sepia(31%) saturate(1901%) hue-rotate(218deg) brightness(92%) contrast(98%);
}

.logo.is-on-light .logo-white {
  opacity: 0;
}

.logo.is-on-light .logo-blue {
  opacity: 1;
}

.logo:before,
.logo:after {
  position: absolute;
  z-index: 2;
  left: 96px;
  display: none;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
}

.logo:before {
  top: 28px;
}

.logo:after {
  top: 35px;
}

.logo.is-on-light:before,
.logo.is-on-light:after {
  display: block;
}

.logo img {
  width: auto;
  height: 88px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
  padding-top: 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.site-header.is-scrolled nav {
  color: var(--navy);
}

nav a {
  transition: opacity 180ms ease;
}

nav a:hover {
  opacity: 0.62;
}

.nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 2px solid var(--white);
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.site-header.is-scrolled .nav-cta {
  border-color: var(--navy);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--navy);
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 170px 24px 150px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    var(--navy);
  background-size: 96px 96px;
  color: var(--white);
}

.hero:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 88px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(247, 247, 251, 0.95));
  content: "";
}

.hero-inner {
  width: min(760px, 100%);
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 28px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 16px;
  border-radius: 999px;
  background: var(--coral);
  vertical-align: 1px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  color: var(--white);
  font-size: clamp(52px, 6.6vw, 74px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 em {
  color: var(--coral);
  font-style: italic;
}

.hero-text {
  max-width: 630px;
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-link {
  display: inline-block;
  margin-top: 52px;
  border-bottom: 2px solid var(--coral);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.9;
  text-transform: uppercase;
}

.hero-link:after {
  display: inline-block;
  width: 40px;
  height: 2px;
  margin-left: 18px;
  background: var(--coral);
  content: "";
  vertical-align: 4px;
}

.section {
  width: min(1184px, calc(100% - 48px));
  margin: 0 auto;
  padding: 128px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: start;
}

h2 {
  color: var(--navy);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

h2 span {
  color: var(--coral);
}

.text-column {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.625;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 80px;
  margin-bottom: 80px;
  border: 1px solid #f3f4f6;
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row div {
  min-height: 156px;
  padding: 40px 32px;
  text-align: center;
}

.stats-row div:not(:last-child) {
  border-right: 1px solid #f3f4f6;
}

.stats-row strong {
  color: var(--navy);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.stats-row span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.about-section .section-label,
.services-section .section-label {
  color: var(--muted);
}

.services-section {
  padding-top: 0;
  padding-bottom: 64px;
}

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

.service-card {
  padding: 40px;
  border: 1px solid #f3f4f6;
}

.service-card.dark {
  background: var(--navy);
  color: var(--white);
}

.service-card.light {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.service-card p {
  margin-bottom: 26px;
  color: currentColor;
  font-size: 14px;
  opacity: 0.68;
}

.service-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 24px;
  color: currentColor;
  font-size: 14px;
  opacity: 0.78;
}

.service-card li:before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--coral);
  content: "";
}

.projects-section {
  padding-top: 48px;
  padding-bottom: 122px;
  border-top: 2px solid var(--navy);
}

.projects-label {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.company-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 32px;
  border: 0;
}

.company-grid span {
  display: inline-block;
  min-height: 0;
  border: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity 300ms ease;
}

.company-grid span:hover {
  opacity: 0.5;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.project-images img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.values-section {
  background: var(--navy);
  color: var(--white);
}

.values-inner {
  padding-top: 128px;
  padding-bottom: 128px;
}

.values-inner h2 {
  max-width: none;
  margin-bottom: 64px;
  color: var(--white);
  font-size: 36px;
  line-height: 1.12;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  background: transparent;
}

.values-grid article {
  min-height: 138px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--navy);
}

.values-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
}

.values-grid h4 {
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.values-grid p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.625;
}

.team-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.team-heading h2 {
  max-width: 670px;
}

.story-link {
  border: 0;
  background: transparent;
  color: var(--coral);
  font-weight: 900;
  cursor: pointer;
}

.founder {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: stretch;
}

.founder-photo {
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(23, 25, 74, 0), rgba(23, 25, 74, 0.08)),
    url("./original-image-3.jpg") center / cover;
}

.founder-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.founder-copy h3 {
  color: var(--navy);
  font-size: 32px;
  font-weight: 900;
}

.role {
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.founder-copy p:not(.role) {
  color: var(--muted);
  font-size: 15px;
}

.founder-stats {
  display: flex;
  gap: 42px;
  margin-top: 8px;
}

.founder-stats strong,
.founder-stats span {
  display: block;
}

.founder-stats strong {
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
}

.founder-stats span {
  color: var(--muted);
  font-size: 13px;
}

.career-button {
  justify-self: start;
  margin-top: 10px;
  padding: 15px 28px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.career-modal[hidden] {
  display: none;
}

.modal-open {
  overflow: hidden;
}

.career-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 52px 24px;
  overflow-y: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.career-dialog {
  position: relative;
  z-index: 1;
  width: min(768px, 100%);
  max-height: none;
  background: var(--white);
  color: var(--navy);
  outline: none;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
}

.career-intro {
  display: grid;
  grid-template-columns: 192px 1fr;
  min-height: 256px;
  background: var(--navy);
  color: var(--white);
}

.career-portrait {
  background: url("./original-image-3.jpg") center / cover;
}

.career-intro-copy {
  display: grid;
  align-content: center;
  padding: 40px 64px 40px 32px;
}

.career-intro-copy > span {
  width: 32px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--coral);
}

.career-intro-copy h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
}

.career-role {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.career-intro-copy p:not(.career-role) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.career-body {
  padding: 32px 32px 48px;
}

.career-kicker {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.35em;
}

.career-timeline {
  position: relative;
  display: grid;
  gap: 34px;
  padding-left: 48px;
}

.career-timeline:before {
  position: absolute;
  top: 11px;
  bottom: 12px;
  left: 10px;
  width: 1px;
  background: #dedede;
  content: "";
}

.career-timeline section {
  position: relative;
}

.career-timeline section:before {
  position: absolute;
  top: 0;
  left: -48px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  content: "";
}

.career-timeline section:after {
  position: absolute;
  top: 8px;
  left: -40px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--white);
  content: "";
}

.career-timeline section:last-child:before {
  background: var(--coral);
}

.career-timeline section:last-child p {
  color: var(--coral);
}

.career-timeline p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.career-timeline h4,
.career-note strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.career-timeline span,
.career-note p,
.career-note blockquote {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.career-note {
  display: grid;
  gap: 18px;
  margin-top: 42px;
  padding-left: 38px;
  border-left: 4px solid var(--coral);
}

.career-note blockquote {
  margin: 2px 0 0;
  padding-left: 0;
  border-left: 0;
}

.career-note strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
}

.career-note p,
.career-note blockquote {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.career-note blockquote {
  color: var(--navy);
  font-size: 15px;
  font-style: italic;
  line-height: 1.58;
}

.contacts-section {
  padding-top: 40px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--navy);
  padding: 12px 0;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--coral);
}

.contact-form button {
  justify-self: start;
  margin-top: 12px;
  padding: 16px 34px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin-top: -6px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}

.messenger-block {
  padding-top: 116px;
}

.messenger-title {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.messenger-block a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 2px solid var(--line);
}

.messenger-block a:hover {
  border-color: var(--coral);
}

.messenger-block strong {
  color: var(--navy);
}

.messenger-block span {
  color: var(--muted);
  font-size: 12px;
}

blockquote {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.footer {
  padding: 28px max(24px, calc((100% - 1184px) / 2));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

@media (max-width: 960px) {
  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  nav {
    gap: 18px;
    font-size: 13px;
  }

  .nav-cta {
    display: none;
  }

  .section-grid,
  .services-grid,
  .founder,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

  .project-images {
    height: 360px;
  }

  .messenger-block {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    padding-top: 12px;
  }

  .logo {
    width: 138px;
    height: 58px;
    align-items: flex-start;
  }

  .logo img {
    height: 58px;
  }

  .logo:before,
  .logo:after {
    left: 63px;
    width: 3px;
    height: 3px;
  }

  .logo:before {
    top: 18px;
  }

  .logo:after {
    top: 23px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 130px 18px 96px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-text {
    font-size: 17px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 76px 0;
  }

  .stats-row,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .company-grid {
    gap: 16px 22px;
  }

  .project-images {
    grid-template-columns: 1fr;
    height: auto;
  }

  .project-images img {
    height: 260px;
  }

  .team-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .founder-photo {
    min-height: 340px;
  }

  .logo img,
  .logo svg {
    height: 58px;
  }

  .logo svg {
    width: 138px;
  }

  .career-modal {
    padding: 24px 16px;
  }

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

  .career-portrait {
    min-height: 220px;
  }

  .career-intro-copy,
  .career-body {
    padding: 28px 24px;
  }

  .career-timeline,
  .career-note {
    padding-left: 36px;
  }

  .career-timeline section:before {
    left: -36px;
  }
}
