:root {
  --ink: #14181c;
  --ink-soft: #2a3138;
  --paper: #eef1f3;
  --paper-deep: #e2e7eb;
  --mist: #6b747c;
  --line: #c5ced6;
  --signal: #2f4f46;
  --signal-hover: #243c35;
  --hero-veil: rgba(10, 14, 18, 0.58);
  --white: #f7f9fa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.25) 0%, rgba(10, 14, 18, 0.72) 70%, rgba(10, 14, 18, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 14, 18, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  animation: rise 0.9s ease both;
}

.brand {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero-lead {
  color: rgba(247, 249, 250, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 38ch;
  margin-bottom: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--signal);
  color: var(--white);
  padding: 0.95rem 1.45rem;
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button::after {
  content: "→";
  transition: transform 0.2s ease;
}

.button:hover {
  background: var(--signal-hover);
}

.button:hover::after {
  transform: translateX(3px);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(247, 249, 250, 0.45);
  color: var(--white);
}

.button-ghost::after {
  content: none;
}

.button-ghost:hover {
  background: rgba(247, 249, 250, 0.1);
  border-color: rgba(247, 249, 250, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* —— Intro strip —— */
.intro {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 2.5rem;
  row-gap: 1.25rem;
  max-width: 1100px;
}

.intro p {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
}

.intro-button {
  box-sizing: border-box;
  width: 230px;
  height: 68px;
  padding: 0 1.6rem;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  flex: none;
}

.intro-button::after {
  content: "→";
  line-height: 1;
  transform: none;
}

.intro-button:hover::after {
  transform: translateX(3px);
}

/* —— Services —— */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58vh;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.service:nth-child(even) {
  background: var(--paper-deep);
}

.service.reverse .service-text {
  order: 2;
}

.service.reverse .service-image {
  order: 1;
}

.service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  gap: 0.85rem;
}

.service-index {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.service h2 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service p {
  color: var(--mist);
  max-width: 42ch;
  font-size: 1.05rem;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  filter: grayscale(0.15) contrast(1.05);
}

.service-contact {
  align-items: stretch;
}

.service-contact .service-text {
  justify-content: flex-start;
  padding-top: clamp(2.4rem, 5vw, 4rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}

.service-contact .service-image {
  min-height: 100%;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 420px;
  margin-top: 0.4rem;
}

.contact-form .botcheck {
  display: none !important;
  position: absolute;
  left: -9999px;
}

.contact-form .field {
  display: grid;
  gap: 0.35rem;
}

.contact-form .field span {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--signal);
  background: #f8fbfa;
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.contact-form .button {
  justify-content: center;
  border: 0;
  cursor: pointer;
  width: fit-content;
  margin-top: 0.25rem;
}

.contact-form .button::after {
  content: "→";
}

/* —— Contact —— */
.contact {
  text-align: left;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
}

.contact h2 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact .note {
  color: rgba(247, 249, 250, 0.62);
  max-width: 36ch;
  margin-bottom: 1.4rem;
}

.contact-lines p {
  margin-bottom: 0.55rem;
  color: rgba(247, 249, 250, 0.78);
  font-size: 0.98rem;
}

.contact a {
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact a:hover {
  border-bottom-color: rgba(247, 249, 250, 0.55);
}

.contact-meta {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: rgba(247, 249, 250, 0.5);
  letter-spacing: 0.02em;
}

.linkedin {
  margin-top: 1.4rem;
}

.linkedin a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 249, 250, 0.28);
  border-radius: 0;
  border-bottom: 1px solid rgba(247, 249, 250, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.linkedin a:hover {
  background: rgba(247, 249, 250, 0.08);
  border-color: rgba(247, 249, 250, 0.55);
}

.linkedin svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* —— Partners —— */
.partners-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.partners-top {
  background: var(--ink);
  color: var(--white);
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(247, 249, 250, 0.1);
}

.partners-top .brand {
  margin: 0;
  font-size: 1rem;
}

.partners-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.partners-top .back {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 249, 250, 0.72);
  transition: color 0.2s ease;
}

.partners-top .back:hover {
  color: var(--white);
}

.partners-hero {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.partners-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.35), rgba(10, 14, 18, 0.88));
}

.partners-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  animation: rise 0.75s ease both;
}

.partners-hero-content h1 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.partners-hero-content p {
  color: rgba(247, 249, 250, 0.72);
  max-width: 42ch;
}

.partners-list-section {
  flex: 1;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}

.partners-list-wrap {
  max-width: 860px;
}

.partners-list-wrap h2 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.partners-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.partners-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.partners-item a:hover {
  border-color: var(--signal);
  background: #f8fbfa;
  transform: translateX(3px);
}

.partners-item-title {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.partners-item-action {
  color: var(--signal);
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.partners-empty {
  color: var(--mist);
  padding: 1.2rem;
  border: 1px dashed var(--line);
  background: #fff;
  text-align: left;
}

/* —— About —— */
.about-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.about-hero .partners-hero-content {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.about-hero .partners-hero-content p {
  margin-left: auto;
  margin-right: auto;
}

.about-body {
  flex: 1;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--paper);
}

.about-panel {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.about-panel h2 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.about-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 58ch;
}

.about-copy p {
  color: var(--mist);
  font-size: 1.05rem;
}

.about-copy a {
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(42, 49, 56, 0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.about-copy a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.about-team-head {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.35rem;
}

.about-team-head h3 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-team-head p {
  color: var(--mist);
  max-width: 40ch;
}

.about-team {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

.team-member {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  padding: 0.2rem;
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px dashed var(--line);
  overflow: hidden;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.team-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mist);
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
}

.team-member h4 {
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.team-role {
  color: var(--mist);
  font-size: 0.92rem;
  margin-top: -0.25rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-content,
  .partners-hero-content {
    animation: none;
  }

  .partners-item a:hover {
    transform: none;
  }
}

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

  .service.reverse .service-text,
  .service.reverse .service-image {
    order: initial;
  }

  .service-image {
    min-height: 260px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .partners-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .about-team {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

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

  .intro-button {
    width: 100%;
    max-width: 280px;
    height: 64px;
  }
}
