/* Self-hosted variable fonts (latin subset), one file covers all weights */
@font-face {
  font-family: "Red Hat Display";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/red-hat-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/red-hat-text-latin.woff2") format("woff2");
}

:root {
  --ink: #0f1f3a;
  --navy: #1d3c6e;
  --blue: #3566ab;
  --sky: #9cbcea;
  --paper: #f4f7fc;
  --mist: #e3ecf9;
  --slate: #56637a;
  --line: #dbe3ef;
  --dark-gradient: linear-gradient(150deg, var(--ink) 0%, var(--navy) 100%);
  --display: "Red Hat Display", "Segoe UI", sans-serif;
  --body: "Red Hat Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main > section { padding: 5.5rem 0; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* Header */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand img { height: 52px; width: auto; display: block; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a {
  font-family: var(--display);
  color: #c9cdd8;
  text-decoration: none;
  font-size: 1rem;
}
.site-header nav a:hover { color: #fff; }

/* Hero */
main > .hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(53, 102, 171, 0.45), transparent 70%),
    var(--dark-gradient);
  color: #fff;
  padding: 6rem 0 9rem;
  overflow: hidden;
}
.hero-role {
  font-family: var(--display);
  color: var(--sky);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.hero-lead {
  max-width: 34rem;
  font-size: 1.3rem;
  color: #d4d8e2;
  margin: 2rem 0 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a7fc8, var(--blue));
  color: #fff;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 6px 20px rgba(53, 102, 171, 0.4);
}
.button:hover { background: linear-gradient(135deg, #5a8fd6, #3d70b8); }
.button-ghost { background: transparent; border-color: #3f5a85; box-shadow: none; }
.button-ghost:hover { background: transparent; border-color: #fff; }

/* The river: drawn once on load */
.river {
  position: absolute;
  left: 0;
  bottom: 1.5rem;
  width: 100%;
  height: 120px;
}
.river path {
  fill: none;
  stroke: url(#river-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: flow 2.4s ease-out 0.3s forwards;
}
@keyframes flow { to { stroke-dashoffset: 0; } }

/* Clients */
main > .clients {
  background: linear-gradient(180deg, var(--paper), #fff);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
.clients .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}
.clients h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 1rem;
}
.current {
  padding-right: 4rem;
  border-right: 1px solid var(--line);
}
.current img { height: 44px; width: auto; }
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.75rem;
}
.logos img {
  max-height: 40px;
  max-width: 100px;
  width: auto;
  mix-blend-mode: multiply;
}
.logos .logo-square { max-height: 80px; max-width: 80px; }

/* Services */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}
.service-list article {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.service-list img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--mist));
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.service-list h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-list p { margin: 0; color: var(--slate); }

.stack {
  margin: 4.5rem 0 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stack img { display: block; width: 100%; }

/* Sample applications */
main > .services { padding-bottom: 3rem; }
main > .work { padding-top: 4rem; background: linear-gradient(180deg, #fff, var(--paper) 25%, var(--mist)); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.work-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(15, 31, 58, 0.18);
}
.work-item:hover { border-color: var(--blue); }
.work-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.work-item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.tag {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--blue);
  background: var(--mist);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.work-item h3 { font-size: 1.5rem; font-weight: 600; margin: 0.9rem 0 0.4rem; }
.work-item p { margin: 0 0 1.5rem; color: var(--slate); }
.work-item .link {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 600;
  color: var(--blue);
}

/* About */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}
.about .section-title { margin-bottom: 0; }
.about-body { max-width: 38rem; }
.about-body p { margin: 0 0 1.1rem; }
.about-lead {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.3;
}
.social { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
}
.social a:hover { text-decoration: underline; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-linkedin { fill: #0a66c2; }
.icon-youtube { fill: #ff0000; }
.icon-mail { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse 50% 80% at 10% 100%, rgba(53, 102, 171, 0.35), transparent 70%),
    var(--dark-gradient);
  color: #c9cdd8;
  padding: 4.5rem 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
}
.site-footer h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.footer-mail {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--sky);
}
.site-footer address { font-style: normal; font-size: 1rem; }

/* Small screens */
@media (max-width: 760px) {
  main > section { padding: 4rem 0; }
  .site-header nav { display: none; }
  .clients .container,
  .service-list,
  .about .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .current { border-right: 0; padding-right: 0; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .river path { animation: none; stroke-dashoffset: 0; }
}
