:root {
  --ink: #101217;
  --black: #050505;
  --muted: #5d6572;
  --line: #e7ebf0;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --blue: #0b73d9;
  --blue-deep: #084d96;
  --red: #ee2b24;
  --orange: #ff6a1a;
  --shadow: 0 22px 70px rgba(16, 18, 23, 0.11);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  height: 58px;
  width: min(270px, 46vw);
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  padding: 158px 0 94px;
  color: #fff;
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.32) 52%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: 1;
  background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-grid {
  display: grid;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  letter-spacing: 0;
}

.hero-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 28px 0 34px;
  max-width: 760px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-actions.center {
  justify-content: center;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--orange) 42%, var(--blue) 43%, var(--blue-deep));
  box-shadow: 0 18px 40px rgba(11, 115, 217, 0.2);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.small {
  background: var(--ink);
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 44px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.section {
  padding: 104px 0;
  background: #fff;
}

.two-column,
.contact-grid {
  display: grid;
  gap: 58px;
  grid-template-columns: 0.9fr 1.1fr;
}

.section-heading {
  margin-bottom: 46px;
  max-width: 760px;
}

.section-heading h2,
.two-column h2,
.contact h2,
.blog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.rich-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.rich-text p + p {
  margin-top: 18px;
}

.services,
.testimonials,
.blog-index,
.blog-preview {
  border-top: 1px solid var(--line);
}

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

.service-card,
.article-card,
blockquote,
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16, 18, 23, 0.04);
}

.service-card {
  min-height: 300px;
  padding: 28px;
}

.service-icon {
  align-items: center;
  background: rgba(11, 115, 217, 0.08);
  border: 1px solid rgba(11, 115, 217, 0.18);
  border-radius: var(--radius);
  color: var(--blue);
  display: flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 38px;
  width: 58px;
}

.service-card:nth-child(odd) .service-icon {
  background: rgba(238, 43, 36, 0.08);
  border-color: rgba(238, 43, 36, 0.18);
  color: var(--red);
}

.service-icon svg {
  height: 30px;
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-card p,
.portfolio-card span,
.article-card span,
.contact p,
.founder-card p {
  color: var(--muted);
}

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

.founder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  grid-template-columns: 220px 1fr;
  padding: 18px;
}

.photo-placeholder {
  align-items: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(11, 115, 217, 0.08), rgba(238, 43, 36, 0.08)),
    #f8fafc;
  border: 1px dashed #c9d2df;
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 260px;
  padding: 20px;
  text-align: center;
}

.founder-card h3 {
  font-size: 1.6rem;
  margin: 8px 0 14px;
}

.portfolio-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.portfolio-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.portfolio-card div {
  padding: 24px;
}

.portfolio-card p,
.article-card p {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.portfolio-card h3,
.article-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.testimonial-grid,
.article-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

blockquote {
  padding: 30px;
}

blockquote p {
  font-size: 1.05rem;
}

cite {
  color: var(--blue);
  display: block;
  font-style: normal;
  font-weight: 900;
  margin-top: 24px;
}

.inline-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  max-width: none;
}

.text-link,
.article-card a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

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

.article-card {
  padding: 30px;
}

.article-card a {
  display: inline-block;
  margin-top: 24px;
}

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

.contact p {
  margin: 22px 0 28px;
  max-width: 650px;
}

.contact .btn.secondary {
  border-color: rgba(11, 115, 217, 0.22);
  color: var(--blue);
}

.contact-panel {
  align-self: start;
  border-left: 4px solid var(--blue);
  padding: 32px;
}

.contact-panel h3 {
  margin-bottom: 18px;
}

.contact-panel p {
  margin: 12px 0;
}

.contact-panel a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.socials a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.socials a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.site-footer {
  background: var(--black);
  color: #fff;
  padding: 34px 0;
}

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

.footer-grid img {
  height: 58px;
  object-fit: contain;
  object-position: left center;
  width: 220px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.cookie-banner {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: 18px;
  box-shadow: var(--shadow);
  display: none;
  gap: 18px;
  left: 50%;
  max-width: min(680px, calc(100% - 28px));
  padding: 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 80;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  color: var(--muted);
  flex: 1;
}

.blog-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    url("https://images.unsplash.com/photo-1526676037777-05a232554f77?q=80&w=1800&auto=format&fit=crop") center / cover;
  border-bottom: 1px solid var(--line);
  padding: 170px 0 96px;
}

.blog-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.2rem;
  margin-top: 24px;
  max-width: 760px;
}

.article-list {
  display: grid;
  gap: 42px;
}

.blog-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-article img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  width: 100%;
}

.article-content {
  padding: clamp(28px, 5vw, 58px);
}

.article-content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 24px;
}

.article-content p:not(.eyebrow) {
  color: #3f4652;
  font-size: 1.08rem;
  margin-top: 18px;
}

.compact-contact {
  text-align: center;
}

.compact-contact h2,
.compact-contact p {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

@media (max-width: 1040px) {
  .two-column,
  .contact-grid,
  .founder-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand-logo {
    height: 48px;
    width: min(230px, 62vw);
  }

  .menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    display: grid;
    gap: 5px;
    height: 44px;
    justify-content: center;
    width: 44px;
  }

  .menu-toggle span {
    background: #fff;
    display: block;
    height: 2px;
    width: 20px;
  }

  .main-nav {
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    position: absolute;
    right: 14px;
    top: 78px;
    width: min(280px, calc(100% - 28px));
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    color: rgba(255, 255, 255, 0.86);
    padding: 12px;
    width: 100%;
  }

  .hero {
    min-height: 86vh;
    padding: 118px 0 74px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.36));
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 72px 0;
  }

  .service-grid,
  .portfolio-grid,
  .testimonial-grid,
  .article-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    padding: 14px;
  }

  .photo-placeholder {
    min-height: 320px;
  }

  .inline-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

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

  .footer-grid img {
    width: 220px;
  }

  .cookie-banner {
    align-items: center;
    bottom: 8px;
    flex-direction: row;
    gap: 10px;
    max-width: calc(100% - 20px);
    padding: 10px;
  }

  .cookie-banner p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .cookie-banner .btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
  }

  .blog-hero {
    padding: 126px 0 72px;
  }

  .blog-article img {
    aspect-ratio: 4 / 3;
  }
}
