/* Algobots — Premium technology consultancy visual system */

:root {
  --ink: #070b14;
  --ink-soft: #141b2d;
  --ink-mid: #1c2538;
  --muted: #5c677a;
  --muted-soft: #8a94a6;
  --paper: #f3f6fa;
  --paper-elevated: #ffffff;
  --paper-soft: #e8eef6;
  --line: rgba(7, 11, 20, 0.1);
  --line-strong: rgba(7, 11, 20, 0.16);
  --line-on-dark: rgba(255, 255, 255, 0.12);

  /* Distinctive Algobots accent — precision teal */
  --accent: #00c2a8;
  --accent-deep: #00a891;
  --accent-ink: #003d36;
  --accent-soft: rgba(0, 194, 168, 0.14);
  --accent-glow: rgba(0, 194, 168, 0.28);
  --accent-bright: #2dffe0;

  --focus: #00c2a8;
  --danger: #c0392b;

  --font-display: "Inter Tight", "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 7.5rem;

  --container: 74rem;
  --container-narrow: 42rem;
  --header-h: 5rem;
  --radius-sm: 0.75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 50px rgba(7, 11, 20, 0.08);
  --shadow-accent: 0 12px 40px rgba(0, 194, 168, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 5.8vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0;
}

.text-on-dark {
  color: #fff !important;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 168, 145, 0.35);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: 999px;
}

.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.eyebrow--on-dark {
  color: var(--accent-bright);
}

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.7;
}

.lede--on-dark {
  color: rgba(243, 246, 250, 0.72);
}

.section {
  padding-block: var(--space-8);
  position: relative;
}

.section--tight {
  padding-block: var(--space-7);
}

.section--soft {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(0, 194, 168, 0.08), transparent 55%),
    linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%);
}

.section--panel {
  background:
    linear-gradient(135deg, rgba(0, 194, 168, 0.06), transparent 40%),
    var(--paper-elevated);
  border-block: 1px solid var(--line);
}

.section--dark {
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(0, 194, 168, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(45, 100, 255, 0.12), transparent 45%),
    linear-gradient(165deg, #0a1020 0%, #10182b 55%, #0c1424 100%);
  color: rgba(243, 246, 250, 0.78);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-header {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  max-width: 42rem;
}

.section-header--row {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .section-header--row {
    grid-template-columns: 1.15fr 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  background: var(--ink-soft);
  color: #fff;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}

.btn--accent:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--accent-ink);
  box-shadow: 0 16px 44px rgba(0, 194, 168, 0.38);
}

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

.btn--secondary:hover {
  background: var(--paper-elevated);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--lg {
  min-height: 3.4rem;
  padding-inline: 1.7rem;
  font-size: 1.02rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  height: auto;
  border-bottom: 1px solid transparent;
  background: rgba(243, 246, 250, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-nav-open {
  border-bottom-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 11, 20, 0.05);
}

.site-header.is-nav-open {
  background: #fff;
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo__img {
  height: 3.35rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 960px) {
  .logo__img {
    height: 3.6rem;
  }
}

.logo__img--invert {
  filter: invert(1) brightness(1.05);
}

.logo--footer .logo__img {
  height: 2.8rem;
  margin-bottom: var(--space-4);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.04);
  border: 1px solid rgba(7, 11, 20, 0.05);
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}

.nav a {
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.nav-cta {
  display: none;
}

@media (min-width: 960px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line);
  background: var(--paper-elevated);
  border-radius: 0.85rem;
  cursor: pointer;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bars {
  position: relative;
  width: 1.1rem;
  height: 0.75rem;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle__bars span:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: var(--space-4) 0 var(--space-5);
  box-shadow: 0 24px 40px rgba(7, 11, 20, 0.12);
  position: relative;
  z-index: 51;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a:not(.btn) {
  display: block;
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
}

.mobile-nav a:not(.btn):hover,
.mobile-nav a:not(.btn)[aria-current="page"] {
  color: var(--accent-deep);
}

.mobile-nav .btn,
.mobile-nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  margin-top: var(--space-5);
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav .btn:hover,
.mobile-nav a.btn:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: var(--accent-ink);
}

.mobile-nav .btn:focus-visible,
.mobile-nav a.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 959px) {
  .site-header.is-nav-open {
    background: #fff;
  }

  .mobile-nav.is-open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Hero */
.page-hero {
  position: relative;
  padding-block: clamp(3.75rem, 11vw, 7.5rem) clamp(4rem, 10vw, 6.5rem);
  overflow: hidden;
}

.page-hero--home {
  background:
    radial-gradient(ellipse 55% 45% at 75% 20%, rgba(0, 194, 168, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(56, 120, 255, 0.14), transparent 55%),
    linear-gradient(160deg, #060910 0%, #0d1528 48%, #0a1220 100%);
  color: #fff;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: center;
}

.page-hero--home h1 {
  color: #fff;
  max-width: 16ch;
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.08;
  text-wrap: balance;
}

.page-hero h1 {
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.12;
  text-wrap: balance;
}

.page-hero:not(.page-hero--home) {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 194, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, var(--paper) 100%);
}

.page-hero__layout,
.page-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  max-width: 48rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-visual__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.hero-visual__glow--a {
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  right: 8%;
  top: 12%;
  background: rgba(0, 194, 168, 0.22);
}

.hero-visual__glow--b {
  width: min(36vw, 20rem);
  height: min(36vw, 20rem);
  left: -4%;
  bottom: 8%;
  background: rgba(70, 120, 255, 0.16);
}

.hero-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(ellipse 65% 55% at 70% 35%, black, transparent 75%);
  opacity: 0.7;
}

.hero-visual__circuit {
  position: absolute;
  right: -2%;
  top: 50%;
  width: min(58vw, 38rem);
  transform: translateY(-48%);
  color: rgba(0, 194, 168, 0.55);
  opacity: 0.9;
}

.circuit-path {
  stroke-dasharray: 8 10;
  opacity: 0.75;
}

.circuit-node--accent {
  color: var(--accent-bright);
}

.circuit-chip {
  fill: rgba(0, 194, 168, 0.06);
}

@media (prefers-reduced-motion: no-preference) {
  .circuit-path {
    animation: dash 18s linear infinite;
  }

  .circuit-path--delay {
    animation-duration: 24s;
    animation-direction: reverse;
  }

  .circuit-node--accent {
    animation: pulse-node 2.8s ease-in-out infinite;
  }

  .hero-visual__glow--a {
    animation: float-a 12s ease-in-out infinite;
  }

  .hero-visual__glow--b {
    animation: float-b 14s ease-in-out infinite;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -240;
  }
}

@keyframes pulse-node {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, 22px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -14px);
  }
}

@media (max-width: 800px) {
  .hero-visual__circuit {
    opacity: 0.35;
    width: 90vw;
    right: -20%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--engage {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--paper-elevated);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

a.card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: rgba(0, 194, 168, 0.35);
  box-shadow: var(--shadow-card);
}

.card--expertise {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7fafc 100%);
  min-height: 100%;
}

.card--expertise::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.85;
}

.card--expertise::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -30%;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.12), transparent 65%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.card--expertise:hover::after {
  transform: scale(1.25);
  opacity: 1;
}

.card--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-on-dark);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.card--dark:hover,
.card--dark:focus-within {
  border-color: rgba(0, 194, 168, 0.4);
  background: rgba(0, 194, 168, 0.06);
  transform: translateY(-3px);
}

.card--dark h3 {
  color: #fff;
}

.card--dark p {
  color: rgba(243, 246, 250, 0.68);
}

.card__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  font-weight: 500;
}

.card--dark .card__index {
  color: var(--accent-bright);
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

a.card:hover .card__link::after {
  transform: translateX(3px);
}

.prose {
  display: grid;
  gap: var(--space-4);
  color: var(--muted);
  max-width: 42rem;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin-top: var(--space-5);
}

.prose ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}

/* Technology */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tech-list span {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease),
    color 0.2s var(--ease);
}

.section:not(.section--dark) .tech-list span {
  border-color: var(--line-strong);
  background: var(--paper-elevated);
  color: var(--ink-soft);
}

.tech-list span:hover {
  border-color: rgba(0, 194, 168, 0.6);
  background: rgba(0, 194, 168, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.section:not(.section--dark) .tech-list span:hover {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.split {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(0, 194, 168, 0.28), transparent 55%),
    linear-gradient(160deg, #070b14 0%, #101a30 100%);
  color: rgba(243, 246, 250, 0.8);
  padding-block: var(--space-8);
}

.cta-band::before,
.cta-band__glow {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  left: 50%;
  top: -8rem;
  transform: translateX(-50%);
  background: rgba(0, 194, 168, 0.2);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: var(--space-4);
  max-width: 16ch;
}

.cta-band .lede {
  color: rgba(243, 246, 250, 0.7);
  margin-bottom: var(--space-6);
}

/* Positioning */
.positioning__inner {
  display: grid;
  gap: var(--space-5);
  max-width: 48rem;
  padding-left: 0;
  border-left: none;
}

@media (min-width: 700px) {
  .positioning__inner {
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
  }
}

/* Steps */
.steps {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--paper-elevated);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 194, 168, 0.35);
  box-shadow: var(--shadow-card);
}

.step__number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  font-weight: 600;
}

.step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Sectors */
.sector-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 700px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-elevated);
  display: grid;
  gap: var(--space-3);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sector:hover {
  border-color: rgba(0, 194, 168, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.sector p {
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 38rem;
}

.work-panel,
.about-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, #ffffff, #f5f8fc);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.work-panel h3,
.about-panel h3 {
  font-size: 1.65rem;
}

.work-panel h2,
.about-panel h2 {
  font-size: 1.65rem;
  margin: 0;
}

.experience-list {
  display: grid;
  gap: var(--space-5);
}

.experience-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, #ffffff, #f5f8fc);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.experience-card h3 {
  margin: 0 0 var(--space-4);
  font-size: 1.35rem;
}

.experience-dl {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.experience-dl dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
}

.experience-dl dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 48rem;
}

@media (min-width: 900px) {
  .experience-dl {
    grid-template-columns: 1fr 1fr;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  text-decoration: none;
}

.capability-list {
  columns: 1;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .capability-list {
    columns: 2;
  }
}

.capability-list li {
  break-inside: avoid;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 700px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  background: #fbfcfe;
  border-radius: 0.75rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.req {
  color: var(--accent-deep);
  font-weight: 600;
}

.field-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--danger);
}

.form-status {
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 0;
}

.form-status[hidden] {
  display: none !important;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--accent-deep);
  font-weight: 500;
}

.btn.is-loading {
  opacity: 0.78;
  cursor: wait;
}

.cf-turnstile {
  margin-top: 0.25rem;
}

/* Contact page */
.page-hero--contact {
  padding-block: clamp(2.75rem, 7vw, 4.75rem) clamp(2.5rem, 6vw, 3.75rem);
}

.section--contact {
  padding-top: var(--space-6);
}

.next-steps {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #f5f8fc);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.next-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.next-steps__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.next-steps__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  font-weight: 600;
  padding-top: 0.2rem;
}

.next-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.next-steps p {
  color: var(--muted);
  font-size: 0.95rem;
}

.next-steps__email {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
}

.next-steps__email a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.next-steps__email a:hover {
  text-decoration: underline;
}

@media (max-width: 899px) {
  .split--contact {
    grid-template-columns: 1fr;
  }

  .page-hero--contact {
    padding-block: 2.5rem 2rem;
  }

  .section--contact {
    padding-block: 1.5rem 3rem;
  }

  .form {
    padding: var(--space-5);
  }
}

@media (max-width: 430px) {
  .logo__img {
    height: 2.85rem;
  }

  .mobile-nav a:not(.btn) {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .mobile-nav .btn,
  .mobile-nav a.btn {
    min-height: 3rem;
    margin-top: var(--space-4);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-7) var(--space-6);
  background:
    radial-gradient(ellipse 40% 50% at 0% 0%, rgba(0, 194, 168, 0.12), transparent 50%),
    #070b14;
  color: rgba(243, 246, 250, 0.72);
}

.site-footer a {
  color: rgba(243, 246, 250, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--accent-bright);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 16rem;
  font-size: 0.95rem;
}

.footer-nav,
.footer-meta {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(243, 246, 250, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(243, 246, 250, 0.48);
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 80;
  max-width: 34rem;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 60px rgba(7, 11, 20, 0.16);
  padding: var(--space-5);
  backdrop-filter: blur(12px);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cookie-banner__actions a {
  font-size: 0.88rem;
  color: var(--muted);
}

.cookie-btn {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
