/* Self-hosted (SIL Open Font License) so no visitor data is sent to Google */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  /* Brand palette, sampled from the official logo files (assets/official) */
  --navy: #132950;
  --navy-deep: #0d1e3d;
  --cyan: #00ffff;
  /* Mid-point of the logo gradient; readable on white where pure cyan is not */
  --teal: #0b859b;
  --gradient: linear-gradient(90deg, #03dae1 0%, #123055 100%);
  --ice: #e8fbfc;
  --light: #f5f8fa;
  --white: #ffffff;

  --text: var(--navy);
  --muted: #55657f;
  --muted-on-dark: #b4c3d9;
  --border: #e1e7ee;
  --radius: 16px;
  --max: 1160px;
  --shadow: 0 12px 40px rgba(19, 41, 80, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Quicksand", "Nunito Sans", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.accent {
  color: var(--teal);
}

/* Placeholder marker for content still to be provided */
.todo {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px dashed var(--teal);
  border-radius: 6px;
  background: rgba(3, 218, 225, 0.08);
  color: var(--muted);
  font-style: italic;
}

h1.todo,
h2.todo,
h3.todo,
p.todo {
  display: table;
}

.section-head .todo,
.team-card .todo,
.cta-box .todo {
  margin-inline: auto;
}

.section-dark .todo,
.cta-box .todo {
  color: var(--muted-on-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(19, 41, 80, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.btn-primary {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  padding: 0.4rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-platforms {
  margin-top: 2.25rem;
}

.hero-platforms span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero-platforms ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-platforms li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}

.hero-mark {
  justify-self: center;
  width: min(340px, 80%);
  filter: drop-shadow(0 20px 40px rgba(19, 41, 80, 0.15));
}

/* Clients */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin-bottom: 1.2rem;
}

.client-logo img {
  height: 72px;
  max-width: 240px;
  width: auto;
  transition: transform 0.2s ease;
}

.client-logo:hover img {
  transform: scale(1.04);
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-card .client-logo {
  justify-content: flex-start;
  height: 80px;
  margin-bottom: 0.35rem;
}

.client-sector {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.case-hero .client-sector {
  margin: 0.5rem 0 0;
}

.case-card .client-logo img {
  height: 56px;
}

.case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.case-card .chips {
  margin-top: 0.5rem;
}

.case-card .work-link {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--navy-deep);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: var(--muted-on-dark);
}

.section-dark .eyebrow {
  color: var(--cyan);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-alt .card {
  background: var(--light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.25rem;
}

/* Language switch */
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--cyan);
}
/* Services */
.pillars {
  align-items: start;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-head {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--navy-deep);
}

.pillar-title {
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(90deg, var(--cyan), #7ff3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillar-tech {
  margin: 0.35rem 0 0;
  color: var(--muted-on-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.pillar-subtitle {
  font-size: 1.15rem;
  text-align: center;
  margin: 3.5rem 0 1.5rem;
  color: var(--navy);
}

.pillar-subtitle:first-child {
  margin-top: 0;
}

.pillar-foundation .grid {
  align-items: start;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card > p {
  flex: 1;
}

.service-card summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.service-card details[open] summary::after {
  transform: rotate(45deg);
}

.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.features li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* Technology stack */
.platform-card {
  border-top: 4px solid transparent;
  border-image: var(--gradient) 1;
  border-image-slice: 1 0 0 0;
}

.platform-name {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.platform-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.platform-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.platform-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stack-engineering {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.stack-engineering .stack-card {
  flex: 1 1 300px;
  max-width: 370px;
}

.stack-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  background: var(--ice);
  color: var(--navy);
  border: 1px solid rgba(11, 133, 155, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Why us */
.why {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.why h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}

.why-list li {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-on-dark);
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 1.2rem;
  top: 1.05rem;
  color: var(--cyan);
  font-weight: 800;
}

/* How we work */
.how-number {
  display: block;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.how-card h3 {
  font-size: 1.1rem;
}

.how-card p,
.how-steps {
  color: var(--muted);
  font-size: 0.93rem;
}

.how-steps {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
}

.how-steps li {
  margin-bottom: 0.35rem;
}

/* Selected work */
.work-card {
  border-top: 4px solid transparent;
  border-image: var(--gradient) 1;
  border-image-slice: 1 0 0 0;
}

.work-link,
.case-back {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.work-link::after {
  content: " →";
}

.work-link:hover,
.case-back:hover {
  text-decoration: underline;
}

/* Case study */
.case-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%);
}

.case-container {
  max-width: 780px;
}

.case-back {
  display: block;
  margin: 0 0 2rem;
}

.case-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0.5rem 0 1rem;
}

.case-hero .lead {
  font-size: 1.2rem;
}

.case-hero .client-logo {
  justify-content: flex-start;
  height: auto;
  margin: 2rem 0 0;
}

.case-section {
  padding: 4rem 0 5rem;
}

.case-body p {
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 1.4rem;
}

.case-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}

.prose-list {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}

.prose-list li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
/* Team */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-card {
  position: relative;
  text-align: center;
  flex: 1 1 280px;
  max-width: 360px;
}

.team-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.team-initials {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: var(--white);
  font-family: "Quicksand", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.team-card h3 {
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.team-focus {
  font-size: 0.9rem;
  margin: 0;
}

/* CTA */
.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 24px;
  background: var(--navy);
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-box p {
  color: var(--muted-on-dark);
}

.contact-email {
  margin: 1.2rem 0 0;
}

.contact-email a,
.footer-email {
  color: var(--cyan);
  font-weight: 700;
}

.contact-email a:hover,
.footer-email:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--muted-on-dark);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-top img {
  height: 36px;
  width: auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  font-style: normal;
}

.footer-bottom {
  padding-top: 0.75rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--muted-on-dark);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.site-footer .todo {
  color: var(--muted-on-dark);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .hero-platforms ul {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-mark {
    width: 200px;
    grid-row: 1;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .why-list,
  .platform-row {
    grid-template-columns: 1fr;
  }
  section {
    padding: 4rem 0;
  }
}
