/* =========================
   01. Design Tokens
========================= */
:root {
  --bg: #07111f;
  --bg-secondary: #0b1626;
  --card: #101d2e;
  --text: #f5f7fa;
  --muted: #a9b4c3;
  --accent: #20c5f5;
  --accent-2: #3b82f6;
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(7, 17, 31, 0.74);
  --max-width: 1240px;
  --radius: 14px;
  --transition: 220ms ease;
}

/* =========================
   02. Base
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 77% 15%, rgba(32, 197, 245, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

/* =========================
   03. Scroll Progress
========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1000;
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* =========================
   04. Navigation
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: var(--header-bg);
  border-color: var(--border);
  backdrop-filter: blur(18px);
}

.navbar {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  justify-self: start;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 197, 245, 0.48);
  background: rgba(32, 197, 245, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform var(--transition);
}

/* =========================
   05. Hero
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}

.hero-copy {
  max-width: 720px;
  padding-bottom: 70px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-title {
  max-width: 760px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.1rem, 5.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 650px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--accent);
  color: #04101a;
  box-shadow: 0 14px 40px rgba(32, 197, 245, 0.16);
}

.button-primary span {
  transition: transform var(--transition);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(32, 197, 245, 0.24);
}

.button-primary:hover span {
  transform: translateX(4px);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 197, 245, 0.45);
  background: rgba(32, 197, 245, 0.05);
}

.hero-tools {
  margin-top: 26px;
  color: #8290a3;
  font-size: 0.82rem;
}

.hero-tools span {
  padding-inline: 5px;
  color: rgba(32, 197, 245, 0.6);
}

/* =========================
   06. Hero Visual
========================= */
.hero-visual {
  position: relative;
  align-self: end;
  min-height: 650px;
  transform-style: preserve-3d;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(32, 197, 245, 0.16);
  filter: blur(85px);
}

.hero-portrait {
  position: absolute;
  z-index: 5;
  right: -2%;
  bottom: 0;
  width: min(620px, 110%);
  max-height: 690px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.34));
  will-change: transform;
  transition: transform 120ms linear;
}

.network {
  position: absolute;
  z-index: 1;
  opacity: 0.7;
}

.network span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(32, 197, 245, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(32, 197, 245, 0.45);
  animation: pulseNode 3s ease-in-out infinite;
}

.network-one {
  width: 260px;
  height: 180px;
  top: 17%;
  right: 0;
}

.network-one::before,
.network-one::after,
.network-two::before,
.network-two::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 197, 245, 0.42), transparent);
  transform-origin: left;
}

.network-one::before {
  width: 180px;
  top: 55px;
  left: 35px;
  transform: rotate(18deg);
}

.network-one::after {
  width: 155px;
  top: 112px;
  left: 78px;
  transform: rotate(-28deg);
}

.network-one span:nth-child(1) { top: 28px; left: 26px; }
.network-one span:nth-child(2) { top: 82px; right: 18px; animation-delay: .5s; }
.network-one span:nth-child(3) { bottom: 10px; left: 94px; animation-delay: 1s; }

.network-two {
  width: 220px;
  height: 140px;
  left: 4%;
  bottom: 19%;
  opacity: 0.45;
}

.network-two::before {
  width: 160px;
  top: 40px;
  left: 10px;
  transform: rotate(-16deg);
}

.network-two::after {
  width: 130px;
  top: 85px;
  left: 55px;
  transform: rotate(25deg);
}

.network-two span:nth-child(1) { top: 12px; left: 20px; }
.network-two span:nth-child(2) { top: 58px; right: 18px; animation-delay: .8s; }
.network-two span:nth-child(3) { bottom: 12px; left: 70px; animation-delay: 1.4s; }

.status-card {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 19, 33, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.status-card small {
  display: block;
  color: #7e8c9d;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
}

.status-card strong {
  display: block;
  margin-top: 2px;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
}

.status-card-one {
  left: 1%;
  top: 29%;
}

.status-card-two {
  right: 1%;
  bottom: 22%;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(32, 197, 245, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

/* =========================
   07. Value Strip
========================= */
.value-strip {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -12px;
  margin-bottom: 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-strip span {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.value-strip span + span {
  border-left: 1px solid var(--border);
}

/* =========================
   08. Reveal Animation
========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy .reveal:nth-child(1) { transition-delay: 100ms; }
.hero-copy .reveal:nth-child(2) { transition-delay: 180ms; }
.hero-copy .reveal:nth-child(3) { transition-delay: 260ms; }
.hero-copy .reveal:nth-child(4) { transition-delay: 340ms; }
.hero-copy .reveal:nth-child(5) { transition-delay: 420ms; }
.hero-visual.reveal { transition-delay: 240ms; }

/* Temporary anchors for later sections */
.section-anchor {
  min-height: 1px;
  scroll-margin-top: 90px;
}

/* =========================
   09. Keyframes
========================= */
@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.45); opacity: 1; }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* =========================
   10. Responsive
========================= */
@media (max-width: 960px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(7, 17, 31, 0.96);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity var(--transition),
      transform var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 13px 12px;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  .hero-visual {
    min-height: 570px;
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .hero-portrait {
    right: 50%;
    transform: translateX(50%);
    width: min(560px, 100%);
  }

  .value-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
  }

  .value-strip span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .value-strip span:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .navbar {
    height: 72px;
  }

  .hero {
    padding-top: 105px;
  }

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

  .hero-description {
    margin-top: 22px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-tools {
    line-height: 1.9;
  }

  .hero-visual {
    min-height: 470px;
    margin-top: 20px;
  }

  .hero-portrait {
    width: min(470px, 112%);
  }

  .status-card {
    transform: scale(0.86);
  }

  .status-card-one {
    left: -3%;
    top: 29%;
  }

  .status-card-two {
    right: -4%;
    bottom: 16%;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-strip span + span,
  .value-strip span:nth-child(3),
  .value-strip span:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================
   11. Works Section
========================= */
.works-section {
  position: relative;
  padding: 130px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08), transparent 26rem),
    var(--bg-secondary);
  scroll-margin-top: 80px;
}

.works-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 650px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 1rem;
}

.section-count {
  flex: 0 0 auto;
  margin-bottom: 7px;
  color: #728096;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.025), transparent 55%),
    rgba(16, 29, 46, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(32, 197, 245, 0.08);
  filter: blur(42px);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(32, 197, 245, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card.open {
  border-color: rgba(32, 197, 245, 0.25);
  background:
    linear-gradient(145deg, rgba(32, 197, 245, 0.035), transparent 55%),
    rgba(16, 29, 46, 0.88);
}

.project-featured {
  grid-column: 1 / -1;
  padding: 36px;
}

.project-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: #77869a;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-status {
  padding: 6px 9px;
  border: 1px solid rgba(32, 197, 245, 0.22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(32, 197, 245, 0.05);
  letter-spacing: 0.08em;
}

.project-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.project-card h3 {
  position: relative;
  z-index: 2;
  max-width: 590px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.project-card > p,
.project-copy > p {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.project-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.project-tags span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  color: #9aa8ba;
  font-size: 0.7rem;
}

/* Mini business-friendly workflow illustrations */
.mini-flow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    rgba(5, 14, 26, 0.58);
  background-size: 28px 28px;
}

.mini-flow-compact {
  min-height: 112px;
  margin-top: 24px;
  padding: 20px 14px;
}

.flow-node {
  flex: 0 1 auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
  color: #c8d1dd;
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.flow-node-accent {
  border-color: rgba(32, 197, 245, 0.30);
  background: rgba(32, 197, 245, 0.08);
  color: var(--text);
  box-shadow: 0 0 30px rgba(32, 197, 245, 0.07);
}

.flow-line {
  color: rgba(32, 197, 245, 0.55);
  font-size: 0.92rem;
}

/* Expand / collapse */
.project-toggle {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 27px;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.project-toggle:hover {
  color: var(--accent);
}

.toggle-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  transition:
    transform 280ms ease,
    background 280ms ease,
    border-color 280ms ease;
}

.project-card.open .toggle-icon {
  transform: rotate(45deg);
  background: rgba(32, 197, 245, 0.06);
  border-color: rgba(32, 197, 245, 0.25);
}

.project-details {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 420ms ease,
    opacity 320ms ease;
}

.project-details > * {
  overflow: hidden;
}

.project-card.open .project-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 27px;
}

.project-detail-grid small {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-detail-grid p {
  color: var(--muted);
  font-size: 0.82rem;
}

/* =========================
   12. Works Responsive
========================= */
@media (max-width: 960px) {
  .works-section {
    padding: 100px 0;
  }

  .project-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .section-count {
    margin-bottom: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-column: auto;
    padding: 28px;
  }

  .project-card {
    padding: 26px;
  }

  .mini-flow,
  .mini-flow-compact {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .works-section {
    padding: 82px 0;
  }

  .project-card,
  .project-featured {
    padding: 22px;
    border-radius: 15px;
  }

  .project-card h3 {
    font-size: 1.65rem;
  }

  .flow-node {
    padding: 9px 10px;
    font-size: 0.66rem;
  }
}


/* =========================================================
   SECTION 6 REFINEMENTS — Hero + Project Grid Balance
   ========================================================= */

/* 1. BODY TEXT CONTRAST
   #C6CFDA against #07111F is intentionally much brighter than
   the earlier slate gray while preserving a neutral gray tone. */
:root {
  --muted-readable: #c6cfda;
}

.hero-description {
  color: var(--muted-readable);
}

/* 2. PRIMARY CTA — shorter copy + desktop no-wrap */
.button-primary {
  white-space: nowrap;
}

/* 3. TOOLS / SKILLS ROW */
.hero-stack {
  margin-top: 34px;
  margin-bottom: 34px;
}

.hero-stack-label {
  display: block;
  margin-bottom: 8px;
  color: #7f90a5;
  font-family: "Manrope", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-tools {
  margin-top: 0;
  color: #aab6c6;
  line-height: 1.8;
}

/* Give the bottom of the hero content more breathing room
   before the value strip begins. */
.hero-copy {
  padding-bottom: 92px;
}

.value-strip {
  margin-top: 18px;
}

/* 4. CINEMATIC ON-PAGE PORTRAIT TREATMENT
   This keeps the image natural while using website-level light,
   depth and grading around the transparent portrait. */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 9% 3% 0 9%;
  pointer-events: none;
  border-radius: 45% 45% 18% 18%;
  background:
    radial-gradient(circle at 63% 24%, rgba(255,255,255,0.11), transparent 17%),
    radial-gradient(circle at 52% 45%, rgba(32,197,245,0.08), transparent 34%),
    linear-gradient(to bottom, transparent 52%, rgba(2, 8, 16, 0.20) 100%);
  mix-blend-mode: screen;
  opacity: 0.88;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 68%, rgba(2, 8, 16, 0.18) 100%),
    radial-gradient(circle at 52% 46%, transparent 42%, rgba(1, 7, 14, 0.16) 78%, rgba(1, 7, 14, 0.27) 100%);
}

.hero-portrait {
  filter:
    contrast(1.035)
    saturate(0.95)
    brightness(0.99)
    drop-shadow(0 24px 58px rgba(0, 0, 0, 0.40));
}

/* 5. FLOATING BADGE CONSOLIDATION
   Keep a single live-state badge and move it away from the shoulder. */
.status-card-one {
  left: auto;
  right: 1.5%;
  top: 14%;
  bottom: auto;
}

.status-card-two {
  display: none;
}

/* =========================
   PROJECT GRID REFINEMENTS
========================= */

.projects-grid {
  align-items: stretch;
}

/* Make the featured card visually closer to the grid cards */
.project-featured {
  padding: 30px;
}

.project-layout {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

/* Standardize visual diagram footprint across featured + grid cards */
.mini-flow,
.mini-flow-compact {
  width: 100%;
  height: 132px;
  min-height: 132px;
  padding: 20px 16px;
  margin-top: 24px;
}

.project-featured .mini-flow {
  margin-top: 0;
}

/* Make grid cards 2–5 equal and keep the CTA baseline aligned */
.project-card:not(.project-featured) {
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

.project-card:not(.project-featured) h3 {
  display: -webkit-box;
  min-height: 2.4em;
  max-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.project-card:not(.project-featured) > p {
  display: -webkit-box;
  min-height: 3.05em;
  max-height: 3.05em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Reserve consistent vertical space for tags */
.project-card:not(.project-featured) .project-tags {
  min-height: 32px;
  align-content: flex-start;
}

/* Push Explore Project to the same baseline when cards are closed */
.project-card:not(.project-featured) .project-toggle {
  margin-top: auto;
}

/* Expanded cards are allowed to grow naturally */
.project-card:not(.project-featured).open {
  min-height: 540px;
}

/* Slightly tighten featured typography so the visual jump is smaller */
.project-featured h3 {
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

/* =========================
   RESPONSIVE REFINEMENTS
========================= */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
  }

  .status-card-one {
    right: 0;
    top: 11%;
  }

  .hero-title {
    font-size: clamp(3rem, 5.3vw, 4.65rem);
  }
}

@media (max-width: 960px) {
  .hero-copy {
    padding-bottom: 24px;
  }

  .hero-stack {
    margin-top: 30px;
    margin-bottom: 24px;
  }

  .value-strip {
    margin-top: 28px;
  }

  .status-card-one {
    right: 2%;
    top: 9%;
  }

  .project-card:not(.project-featured) {
    min-height: 520px;
  }

  .project-featured .mini-flow {
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .project-card:not(.project-featured) {
    min-height: 0;
  }

  .project-card:not(.project-featured) h3,
  .project-card:not(.project-featured) > p {
    min-height: auto;
    max-height: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .project-card:not(.project-featured) .project-toggle {
    margin-top: 27px;
  }
}

@media (max-width: 600px) {
  .button-primary {
    white-space: normal;
  }

  .hero-stack {
    margin-top: 28px;
    margin-bottom: 18px;
  }

  .hero-stack-label {
    margin-bottom: 6px;
  }

  .value-strip {
    margin-top: 18px;
  }

  /* On phones, keep the single badge above/right of the portrait,
     scaled enough to avoid clipping outside the visual area. */
  .status-card-one {
    top: 7%;
    right: 0;
    left: auto;
    transform: scale(0.80);
    transform-origin: top right;
  }
}


/* =========================================================
   SECTION 6 FINAL CORRECTIONS
   ========================================================= */

/* The final cinematic portrait is a true transparent PNG.
   Keep the portrait present above the background effects. */
.hero-portrait {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  width: min(600px, 106%);
  max-height: 675px;
  object-fit: contain;
  object-position: bottom center;
  filter:
    contrast(1.025)
    saturate(0.98)
    brightness(1.01)
    drop-shadow(0 24px 58px rgba(0, 0, 0, 0.42));
}

/* Keep only one floating UI badge. It communicates a live state,
   and is deliberately placed in open negative space, away from
   the portrait's jacket/shoulder edge. */
.status-card-one {
  left: 0;
  right: auto;
  top: 17%;
  bottom: auto;
  transform: none;
}

/* Give the visual a slightly more cinematic pool of light without
   covering the face or flattening the cutout. */
.hero-glow {
  width: 440px;
  height: 440px;
  left: 58%;
  top: 48%;
  background:
    radial-gradient(circle,
      rgba(32, 197, 245, 0.19) 0%,
      rgba(32, 197, 245, 0.09) 42%,
      transparent 72%);
  filter: blur(72px);
}

.hero-visual::after {
  z-index: 4;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(2, 8, 16, 0.14) 100%),
    radial-gradient(circle at 58% 45%, transparent 46%, rgba(1, 7, 14, 0.09) 82%, rgba(1, 7, 14, 0.18) 100%);
}

/* Ensure the hero still balances well around common laptop/desktop sizes. */
@media (min-width: 1280px) and (max-width: 1440px) {
  .hero-grid {
    grid-template-columns: 1.04fr 0.96fr;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(3.9rem, 5.15vw, 4.75rem);
  }

  .hero-portrait {
    width: min(590px, 104%);
  }

  .status-card-one {
    left: 0;
    top: 16%;
  }
}

@media (max-width: 1180px) {
  .hero-portrait {
    width: min(565px, 103%);
  }

  .status-card-one {
    left: 0;
    right: auto;
    top: 12%;
  }
}

@media (max-width: 960px) {
  .hero-portrait {
    right: 50%;
    width: min(545px, 96%);
    transform: translateX(50%);
  }

  .status-card-one {
    left: 2%;
    right: auto;
    top: 5%;
  }
}

@media (max-width: 600px) {
  .hero-portrait {
    width: min(455px, 108%);
  }

  .status-card-one {
    left: 0;
    right: auto;
    top: 2%;
    transform: scale(0.78);
    transform-origin: top left;
  }
}


/* =========================================================
   SECTION 7 — SOLUTIONS
   ========================================================= */

.solutions-section {
  position: relative;
  padding: 132px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(32, 197, 245, 0.07), transparent 26rem),
    radial-gradient(circle at 8% 76%, rgba(59, 130, 246, 0.06), transparent 24rem),
    var(--bg);
  scroll-margin-top: 80px;
}

.solutions-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.solutions-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 52px;
}

.solutions-intro .eyebrow {
  margin-bottom: 14px;
}

.solutions-intro h2 {
  max-width: 760px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.solutions-lead {
  max-width: 520px;
  padding-bottom: 7px;
  color: var(--muted-readable, #c6cfda);
  font-size: 1rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.solution-card {
  position: relative;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.022), transparent 54%),
    rgba(11, 22, 38, 0.74);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}

.solution-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -100px;
  right: -90px;
  border-radius: 50%;
  background: rgba(32, 197, 245, 0.08);
  filter: blur(38px);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: rgba(32, 197, 245, 0.28);
  background:
    linear-gradient(145deg, rgba(32,197,245,0.025), transparent 58%),
    rgba(11, 22, 38, 0.88);
  box-shadow: 0 22px 56px rgba(0,0,0,0.12);
}

.solution-card:hover::after {
  opacity: 1;
}

.solution-number {
  position: absolute;
  top: 27px;
  right: 27px;
  color: #65758a;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.solution-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 29px;
  border: 1px solid rgba(32, 197, 245, 0.17);
  border-radius: 11px;
  background: rgba(32, 197, 245, 0.045);
  color: var(--accent);
}

.solution-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution-card h3 {
  position: relative;
  z-index: 2;
  min-height: 2.35em;
  font-family: "Manrope", sans-serif;
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.solution-card > p {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  color: #aeb9c8;
  font-size: 0.91rem;
}

.solution-flow {
  position: relative;
  z-index: 2;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  padding: 15px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px),
    rgba(4, 13, 24, 0.48);
  background-size: 22px 22px;
}

.solution-flow span {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255,255,255,0.025);
  color: #91a0b3;
  font-size: 0.62rem;
  text-align: center;
  white-space: nowrap;
  transition:
    border-color 240ms ease,
    color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.solution-flow i {
  flex: 0 0 auto;
  color: rgba(32,197,245,0.40);
  font-size: 0.68rem;
  font-style: normal;
  transition: transform 240ms ease, color 240ms ease;
}

.solution-flow span.active {
  border-color: rgba(32,197,245,0.24);
  background: rgba(32,197,245,0.07);
  color: #d7f8ff;
}

.solution-card:hover .solution-flow span.active {
  border-color: rgba(32,197,245,0.48);
  box-shadow: 0 0 22px rgba(32,197,245,0.08);
}

.solution-card:hover .solution-flow i {
  color: var(--accent);
  transform: translateX(2px);
}

.solution-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: auto;
  padding-top: 24px;
  color: #d8e0e9;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color var(--transition);
}

.solution-link span {
  color: var(--accent);
  transition: transform var(--transition);
}

.solution-link:hover {
  color: var(--accent);
}

.solution-link:hover span {
  transform: translateX(4px);
}

/* Wide data/reporting card */
.solution-card-wide {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: 60px;
  padding: 34px;
}

.solution-card-wide .solution-number {
  position: static;
  flex: 0 0 auto;
  padding-top: 5px;
}

.solution-wide-copy {
  position: relative;
  z-index: 2;
}

.solution-wide-title {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.solution-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.solution-card-wide h3 {
  min-height: auto;
  max-width: 620px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.solution-card-wide .solution-wide-copy > p {
  max-width: 620px;
  margin-top: 16px;
  color: #aeb9c8;
  font-size: 0.92rem;
}

.solution-wide-flow {
  position: relative;
  z-index: 2;
  min-height: 145px;
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr;
  align-items: center;
  gap: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px),
    rgba(4, 13, 24, 0.52);
  background-size: 24px 24px;
}

.wide-flow-node {
  position: relative;
  z-index: 2;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  color: #9ba8ba;
  font-size: 0.72rem;
  text-align: center;
}

.wide-flow-node-active {
  border-color: rgba(32,197,245,0.32);
  background: rgba(32,197,245,0.075);
  color: #e5fbff;
  box-shadow: 0 0 28px rgba(32,197,245,0.06);
}

.wide-flow-connector {
  position: relative;
  height: 1px;
  background: rgba(32,197,245,0.22);
  overflow: hidden;
}

.wide-flow-connector span {
  position: absolute;
  width: 20px;
  height: 1px;
  left: -20px;
  top: 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(32,197,245,0.7);
  animation: solutionDataMove 2.2s linear infinite;
}

.solution-wide-flow .wide-flow-connector:nth-of-type(4) span {
  animation-delay: 1.1s;
}

/* Bottom CTA */
.solutions-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-top: 22px;
  padding: 30px 32px;
  border: 1px solid rgba(32,197,245,0.16);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(32,197,245,0.055), transparent 48%),
    rgba(11,22,38,0.62);
}

.solutions-cta-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.solutions-cta h3 {
  max-width: 720px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.solutions-cta-button {
  flex: 0 0 auto;
}

/* Stagger solution reveals very slightly */
.solutions-grid .solution-card:nth-child(2) { transition-delay: 60ms; }
.solutions-grid .solution-card:nth-child(3) { transition-delay: 120ms; }
.solutions-grid .solution-card:nth-child(4) { transition-delay: 60ms; }
.solutions-grid .solution-card:nth-child(5) { transition-delay: 120ms; }
.solutions-grid .solution-card:nth-child(6) { transition-delay: 180ms; }

@keyframes solutionDataMove {
  from { transform: translateX(0); }
  to { transform: translateX(90px); }
}

/* =========================
   SOLUTIONS RESPONSIVE
========================= */
@media (max-width: 1080px) {
  .solutions-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solutions-lead {
    max-width: 720px;
  }

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

  .solution-card-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .solutions-section {
    padding: 96px 0;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: 360px;
  }

  .solution-card-wide {
    grid-column: auto;
    min-height: 0;
    padding: 27px;
  }

  .solution-wide-flow {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .wide-flow-connector {
    width: 1px;
    height: 28px;
    margin-inline: auto;
    background: rgba(32,197,245,0.22);
  }

  .wide-flow-connector span {
    width: 1px;
    height: 10px;
    left: 0;
    top: -10px;
    animation-name: solutionDataMoveVertical;
  }

  .solution-wide-flow .wide-flow-connector:nth-of-type(4) span {
    animation-delay: 1.1s;
  }

  .solutions-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .solutions-cta-button {
    width: 100%;
  }

  @keyframes solutionDataMoveVertical {
    from { transform: translateY(0); }
    to { transform: translateY(38px); }
  }
}

@media (max-width: 480px) {
  .solutions-section {
    padding: 82px 0;
  }

  .solution-card,
  .solution-card-wide {
    padding: 22px;
    border-radius: 15px;
  }

  .solution-number {
    top: 22px;
    right: 22px;
  }

  .solution-card h3 {
    font-size: 1.26rem;
  }

  .solution-flow {
    gap: 4px;
    padding-inline: 8px;
  }

  .solution-flow span {
    padding-inline: 4px;
    font-size: 0.58rem;
  }

  .solution-wide-title {
    gap: 16px;
  }

  .solutions-cta {
    padding: 24px 22px;
  }
}


/* =========================================================
   SECTION 8 — ABOUT JULS
   ========================================================= */

.about-section {
  position: relative;
  padding: 132px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(32, 197, 245, 0.065), transparent 25rem),
    radial-gradient(circle at 88% 72%, rgba(59, 130, 246, 0.055), transparent 27rem),
    var(--bg-secondary);
  scroll-margin-top: 80px;
}

.about-section[hidden] {
  display: none;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 72px;
  align-items: start;
}

.about-copy h2 {
  max-width: 760px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.75rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.about-copy > p {
  max-width: 720px;
  margin-top: 20px;
  color: #b4bfcd;
  font-size: 0.98rem;
}

.about-copy .about-lead {
  margin-top: 26px;
  color: var(--muted-readable, #c6cfda);
  font-size: 1.08rem;
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.about-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7dfe8;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color var(--transition);
}

.about-inline-link span {
  color: var(--accent);
  transition: transform var(--transition);
}

.about-inline-link:hover {
  color: var(--accent);
}

.about-inline-link:hover span {
  transform: translateX(4px);
}

.about-principle-card {
  position: sticky;
  top: 118px;
  padding: 30px;
  border: 1px solid rgba(32,197,245,0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(32,197,245,0.04), transparent 56%),
    rgba(8, 18, 31, 0.78);
  box-shadow: 0 22px 60px rgba(0,0,0,0.12);
}

.about-card-label {
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.about-principle-card blockquote {
  margin-top: 16px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.about-principles {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.about-principles > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.about-principles span {
  color: #68788d;
  font-family: "Manrope", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.about-principles p {
  color: #bdc6d2;
  font-size: 0.84rem;
}

/* Journey */
.about-journey {
  margin-top: 105px;
}

.about-journey-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.about-journey-heading h3 {
  max-width: 760px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.journey-track::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 26%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(32,197,245,0.1));
}

.journey-item {
  position: relative;
  min-height: 250px;
  padding: 34px 24px 8px 0;
}

.journey-item + .journey-item {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.journey-dot {
  position: absolute;
  top: -5px;
  left: -1px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(32,197,245,0.65);
  border-radius: 50%;
  background: var(--bg-secondary);
  box-shadow: 0 0 16px rgba(32,197,245,0.22);
}

.journey-item + .journey-item .journey-dot {
  left: -5px;
}

.journey-number {
  position: absolute;
  top: 13px;
  right: 18px;
  color: #536276;
  font-family: "Manrope", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.journey-kicker {
  color: #708096;
  font-family: "Manrope", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.journey-item h4 {
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.17rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.journey-item > p:last-child {
  margin-top: 13px;
  color: #a9b5c4;
  font-size: 0.82rem;
}

/* Trust strip */
.about-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-trust-strip > div {
  min-height: 112px;
  padding: 23px 26px;
}

.about-trust-strip > div + div {
  border-left: 1px solid var(--border);
}

.about-trust-strip strong {
  display: block;
  color: #e5eaf0;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
}

.about-trust-strip span {
  display: block;
  margin-top: 5px;
  color: #8f9caf;
  font-size: 0.75rem;
}

/* =========================
   ABOUT RESPONSIVE
========================= */
@media (max-width: 1000px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-principle-card {
    position: relative;
    top: auto;
  }

  .about-journey-heading {
    grid-template-columns: 1fr;
    gap: 13px;
  }

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

  .journey-item:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .journey-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .about-section {
    padding: 96px 0;
  }

  .about-journey {
    margin-top: 78px;
  }

  .journey-track {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .journey-track::before {
    display: none;
  }

  .journey-item,
  .journey-item + .journey-item {
    min-height: 0;
    padding: 26px 10px 26px 25px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .journey-item:last-child {
    border-bottom: 1px solid var(--border);
  }

  .journey-dot,
  .journey-item + .journey-item .journey-dot {
    top: 21px;
    left: -4px;
  }

  .about-trust-strip {
    grid-template-columns: 1fr;
  }

  .about-trust-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 82px 0;
  }

  .about-principle-card {
    padding: 23px;
    border-radius: 15px;
  }

  .about-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .about-actions .button {
    width: 100%;
  }

  .about-inline-link {
    justify-content: center;
  }

  .about-trust-strip > div {
    min-height: 0;
    padding: 20px 18px;
  }
}


/* =========================================================
   SECTION 9 — CONTACT + AI ASSESSMENT
   ========================================================= */

.contact-section {
  position: relative;
  padding: 132px 0 145px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(32,197,245,0.085), transparent 26rem),
    radial-gradient(circle at 16% 82%, rgba(59,130,246,0.055), transparent 24rem),
    var(--bg);
  scroll-margin-top: 80px;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(520px, 1.24fr);
  gap: 76px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 118px;
}

.contact-copy h2 {
  max-width: 610px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.75rem, 4.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.contact-lead {
  max-width: 600px;
  margin-top: 24px;
  color: var(--muted-readable, #c6cfda);
  font-size: 1rem;
}

.contact-points {
  display: grid;
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--border);
}

.contact-points > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.contact-point-number {
  color: #66768a;
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contact-points strong {
  display: block;
  color: #e5ebf2;
  font-family: "Manrope", sans-serif;
  font-size: 0.87rem;
}

.contact-points p {
  margin-top: 4px;
  color: #929fb0;
  font-size: 0.78rem;
}

.contact-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  color: #7f8da0;
  font-size: 0.73rem;
}

.contact-privacy-note > span {
  color: var(--accent);
}

/* Form panel */
.contact-panel {
  position: relative;
  min-height: 650px;
  padding: 32px;
  border: 1px solid rgba(32,197,245,0.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(32,197,245,0.035), transparent 54%),
    rgba(8,18,31,0.84);
  box-shadow: 0 28px 75px rgba(0,0,0,0.16);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

.form-kicker {
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.form-heading h3,
.analysis-header h3,
.assessment-result h3 {
  margin-top: 7px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.demo-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #7f8da0;
  background: rgba(255,255,255,0.02);
  font-size: 0.62rem;
}

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

.form-field {
  position: relative;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #dce3eb;
  font-size: 0.76rem;
  font-weight: 600;
}

.form-field label span {
  color: #748398;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  outline: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(4,13,24,0.62);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.form-field input,
.form-field select {
  height: 50px;
  padding: 0 42px 0 14px;
}

.form-field textarea {
  min-height: 145px;
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #657589;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(32,197,245,0.55);
  background: rgba(5,16,29,0.82);
  box-shadow: 0 0 0 3px rgba(32,197,245,0.055);
}

.form-field.is-valid input {
  border-color: rgba(52,211,153,0.26);
}

.field-status {
  position: absolute;
  top: 39px;
  right: 14px;
  color: #34d399;
  font-size: 0.76rem;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity var(--transition), transform var(--transition);
}

.form-field.is-valid .field-status {
  opacity: 1;
  transform: scale(1);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #fda4af;
  font-size: 0.68rem;
}

.form-field.is-invalid .field-error {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: rgba(253,164,175,0.42);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-52%);
  color: #8795a8;
  pointer-events: none;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.textarea-meta .field-error {
  margin-top: 0;
}

.textarea-meta > span {
  margin-left: auto;
  color: #66768a;
  font-size: 0.66rem;
}

.assessment-submit {
  width: 100%;
  margin-top: 22px;
}

.assessment-submit.is-loading {
  pointer-events: none;
  opacity: 0.74;
}

.submit-arrow {
  transition: transform var(--transition);
}

.assessment-submit:hover .submit-arrow {
  transform: translateX(4px);
}

.form-demo-note {
  margin-top: 12px;
  color: #657589;
  font-size: 0.67rem;
  text-align: center;
}

/* Analysis state */
.assessment-state[hidden],
.assessment-result[hidden] {
  display: none;
}

.assessment-state {
  min-height: 585px;
}

.analysis-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.analysis-steps {
  padding: 32px 0;
}

.analysis-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  opacity: 0.38;
  transition: opacity 260ms ease;
}

.analysis-step.active,
.analysis-step.complete {
  opacity: 1;
}

.analysis-step-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #718196;
  background: rgba(255,255,255,0.02);
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}

.analysis-step.active .analysis-step-icon {
  border-color: rgba(32,197,245,0.45);
  background: rgba(32,197,245,0.075);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(32,197,245,0.08);
}

.analysis-step.complete .analysis-step-icon {
  border-color: rgba(52,211,153,0.32);
  background: rgba(52,211,153,0.06);
  color: #34d399;
}

.analysis-step strong {
  display: block;
  padding-top: 2px;
  color: #dce4ed;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
}

.analysis-step p {
  margin-top: 4px;
  color: #8492a5;
  font-size: 0.75rem;
}

.analysis-line {
  width: 1px;
  height: 34px;
  margin: 6px 0 6px 16px;
  background: linear-gradient(to bottom, rgba(32,197,245,0.28), var(--border));
}

/* Result card */
.assessment-result {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(32,197,245,0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(32,197,245,0.09), transparent 14rem),
    rgba(5,15,27,0.74);
  animation: resultReveal 420ms ease both;
}

.result-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32,197,245,0.20);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(32,197,245,0.05);
}

.result-label {
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.assessment-result h3 {
  max-width: 520px;
  padding-right: 55px;
}

#recommendationText {
  max-width: 650px;
  margin-top: 18px;
  color: #b8c3d0;
  font-size: 0.9rem;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.result-summary > div {
  padding: 15px 0;
}

.result-summary > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.result-summary small {
  display: block;
  color: #657589;
  font-family: "Manrope", sans-serif;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.result-summary strong {
  display: block;
  margin-top: 5px;
  color: #e3e9ef;
  font-size: 0.78rem;
}

.result-note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px solid rgba(52,211,153,0.12);
  border-radius: 10px;
  background: rgba(52,211,153,0.035);
  color: #8796a8;
  font-size: 0.72rem;
}

.result-note > span {
  color: #34d399;
}

.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
}

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

/* =========================
   CONTACT RESPONSIVE
========================= */
@media (max-width: 1060px) {
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-copy {
    position: relative;
    top: auto;
  }

  .contact-lead,
  .contact-copy h2 {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .contact-section {
    padding: 96px 0 110px;
  }

  .contact-panel {
    padding: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .contact-section {
    padding: 82px 0 96px;
  }

  .contact-panel {
    min-height: 0;
    padding: 21px;
    border-radius: 16px;
  }

  .form-heading {
    flex-direction: column;
    gap: 10px;
  }

  .demo-badge {
    align-self: flex-start;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-summary > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .result-actions .about-inline-link {
    justify-content: center;
  }
}


/* =========================================================
   CUSTOM BUSINESS TYPE DROPDOWN
   ========================================================= */

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.business-type-field {
  position: relative;
  z-index: 20;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(4, 13, 24, 0.62);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.custom-select-trigger:hover {
  border-color: rgba(32, 197, 245, 0.26);
  background: rgba(5, 16, 29, 0.76);
}

.custom-select-trigger:focus-visible,
.custom-select.open .custom-select-trigger {
  border-color: rgba(32, 197, 245, 0.56);
  background: rgba(5, 16, 29, 0.86);
  box-shadow: 0 0 0 3px rgba(32, 197, 245, 0.055);
}

.business-type-field.is-invalid .custom-select-trigger {
  border-color: rgba(255, 107, 107, 0.54);
}

.business-type-field.is-valid .custom-select-trigger {
  border-color: rgba(52, 211, 153, 0.26);
}

.custom-select-value {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 400;
}

.custom-select-value.is-placeholder {
  color: #657589;
}

.custom-select-chevron {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #8c9bad;
  transition: transform 180ms ease, color 180ms ease;
}

.custom-select-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.custom-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  max-height: 330px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(32, 197, 245, 0.15);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(32, 197, 245, 0.025), transparent 46%),
    #0d1929;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.995);
  transform-origin: top center;
  transition:
    opacity 170ms ease-out,
    transform 170ms ease-out,
    visibility 170ms ease-out;
}

.custom-select.open .custom-select-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 12px 13px 12px 15px;
  border-left: 2px solid transparent;
  border-radius: 8px;
  color: #d7dee8;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.custom-option:hover,
.custom-option.is-focused {
  background: rgba(32, 197, 245, 0.15);
  color: #f5fbff;
}

.custom-option[aria-selected="true"] {
  border-left-color: var(--accent);
  background: rgba(32, 197, 245, 0.12);
  color: #effcff;
}

.option-check {
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 150ms ease, transform 150ms ease;
}

.custom-option[aria-selected="true"] .option-check {
  opacity: 1;
  transform: scale(1);
}

/* Custom scrollbar for the dropdown panel */
.custom-select-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(32,197,245,0.35) rgba(255,255,255,0.03);
}

.custom-select-panel::-webkit-scrollbar {
  width: 8px;
}

.custom-select-panel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.025);
  border-radius: 999px;
}

.custom-select-panel::-webkit-scrollbar-thumb {
  background: rgba(32,197,245,0.28);
  border-radius: 999px;
}

.custom-select-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(32,197,245,0.42);
}

/* Error state */
.field-error-custom {
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #ff6b6b;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
}

.business-type-field.is-invalid .field-error-custom {
  display: inline-flex;
}

.error-warning-icon {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.error-warning-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Prevent the options panel from being clipped by the form card */
.contact-panel {
  overflow: visible;
}

@media (max-width: 760px) {
  .custom-select-panel {
    max-height: 285px;
  }

  .custom-option {
    min-height: 48px;
    padding: 13px 12px 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-select-panel,
  .custom-select-chevron,
  .custom-option,
  .option-check {
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   SECTION 10 — FOOTER + FINAL FRONT-END POLISH
   ========================================================= */

/* Accessible skip link */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 14px;
  border: 1px solid rgba(32,197,245,0.35);
  border-radius: 9px;
  background: #0b1626;
  color: var(--text);
  font-size: 0.78rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Subtle section rhythm cleanup */
.works-section,
.solutions-section,
.about-section,
.contact-section {
  isolation: isolate;
}

.works-section > .container,
.solutions-section > .container,
.about-section > .container,
.contact-section > .container {
  position: relative;
  z-index: 2;
}

/* Improve keyboard visibility without changing the visual tone */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.custom-select-trigger:focus-visible {
  outline: 2px solid rgba(32,197,245,0.78);
  outline-offset: 3px;
}

/* Prevent anchor targets from hiding beneath the fixed header */
#works,
#solutions,
#about,
#contact {
  scroll-margin-top: 92px;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 78px 0 24px;
  background:
    radial-gradient(circle at 82% 15%, rgba(32,197,245,0.045), transparent 20rem),
    #050d18;
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 80px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-brand {
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.footer-brand span {
  color: var(--accent);
}

.footer-brand-block > p {
  max-width: 560px;
  margin-top: 17px;
  color: #8f9daf;
  font-size: 0.84rem;
}

.footer-nav-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
}

.footer-column {
  display: grid;
  gap: 11px;
  align-content: start;
}

.footer-label {
  margin-bottom: 4px;
  color: #5f7086;
  font-family: "Manrope", sans-serif;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-column a {
  width: max-content;
  color: #b8c2cf;
  font-size: 0.8rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-column a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-bottom {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: #66768b;
  font-size: 0.7rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9aa7b8;
  font-size: 0.72rem;
  transition: color var(--transition);
}

.back-to-top span {
  color: var(--accent);
  transition: transform var(--transition);
}

.back-to-top:hover {
  color: var(--text);
}

.back-to-top:hover span {
  transform: translateY(-3px);
}

/* Small global polish */
.button,
.project-card,
.solution-card,
.contact-panel,
.about-principle-card {
  -webkit-font-smoothing: antialiased;
}

button,
a,
.custom-select-trigger,
.custom-option {
  touch-action: manipulation;
}

/* Better text wrapping on narrow widths */
.hero-title,
.section-heading h2,
.solutions-intro h2,
.about-copy h2,
.contact-copy h2 {
  text-wrap: balance;
}

.hero-description,
.solutions-lead,
.about-copy > p,
.contact-lead {
  text-wrap: pretty;
}

/* =========================
   FOOTER RESPONSIVE
========================= */
@media (max-width: 900px) {
  .site-footer {
    padding-top: 64px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-brand-block > p {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 52px;
  }

  .footer-nav-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
  }
}

@media (max-width: 380px) {
  .footer-nav-wrap {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SECTION 6 VALID LAYOUT FIX — HERO STRIP + PROJECT REFLOW
   ========================================================= */

.hero-grid {
  min-height: 620px;
  align-items: end;
}

.hero-copy {
  padding-bottom: 34px;
}

.hero-visual {
  min-height: 620px;
}

.hero-stack {
  margin-top: 30px;
  margin-bottom: 0;
}

.value-strip {
  width: min(calc(100% - 40px), var(--max-width));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.value-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: stretch;
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-featured {
  grid-column: 1 / -1;
}

.project-details {
  order: 5;
  width: 100%;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 320ms ease,
    opacity 260ms ease;
}

.project-toggle {
  order: 6;
  margin-top: auto;
}

.project-card.open .project-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.project-card.open .project-toggle {
  margin-top: 18px;
}

.project-card:not(.project-featured) {
  min-height: 540px;
}


/* =========================================================
   FINAL MOBILE RESPONSIVE LAYER
   Target: 375px / 390–430px / 768px
   ========================================================= */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
    max-width: 100%;
    box-sizing: border-box;
  }

  /* ---------- Navigation ---------- */
  .navbar {
    height: 72px;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .nav-menu {
    left: 14px;
    right: 14px;
    top: 68px;
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
  }

  /* ---------- Hero ---------- */
  .hero {
    min-height: auto;
    padding-top: 98px;
    overflow: hidden;
  }

  .hero-grid {
    width: min(calc(100% - 28px), var(--max-width));
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.8vw, 4.1rem);
    line-height: 0.99;
    letter-spacing: -0.05em;
  }

  .hero-description {
    width: 100%;
    max-width: 100%;
    margin-top: 22px;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 28px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .hero-stack {
    width: 100%;
    margin-top: 26px;
    margin-bottom: 0;
  }

  .hero-tools {
    max-width: 100%;
    line-height: 1.85;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    overflow: visible;
    align-self: auto;
  }

  /* On mobile the live state card participates in normal flow.
     This guarantees it cannot overlap the hero copy or portrait. */
  .status-card-one {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: max-content;
    max-width: 100%;
    margin: 0 0 12px auto;
    transform: none;
    z-index: 8;
  }

  .hero-portrait {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100%, 500px);
    max-width: 100%;
    max-height: none;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
    transform: none !important;
  }

  /* Remove desktop-only decorative layers that crowd small screens. */
  .network-one,
  .network-two,
  .hero-glow {
    display: none;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  /* ---------- Hero value strip ---------- */
  .value-strip {
    width: min(calc(100% - 28px), var(--max-width));
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    box-sizing: border-box;
    margin-top: 14px;
    margin-bottom: 24px;
  }

  .value-strip span {
    min-width: 0;
    min-height: 66px;
    padding: 12px 10px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .value-strip span + span {
    border-left: 0;
  }

  .value-strip span:nth-child(2),
  .value-strip span:nth-child(4) {
    border-left: 1px solid var(--border);
  }

  .value-strip span:nth-child(3),
  .value-strip span:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  /* ---------- Works ---------- */
  .works-section,
  .solutions-section,
  .about-section,
  .contact-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-heading h2,
  .solutions-intro h2,
  .about-copy h2,
  .contact-copy h2 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10.2vw, 3.25rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-featured {
    grid-column: auto;
  }

  .project-card,
  .project-card:not(.project-featured) {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 22px;
  }

  .project-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-card:not(.project-featured) h3,
  .project-card:not(.project-featured) > p {
    min-height: auto;
    max-height: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .project-card:not(.project-featured) .project-toggle {
    margin-top: 26px;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mini-flow,
  .mini-flow-compact {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 110px;
    overflow-x: auto;
    box-sizing: border-box;
  }

  /* ---------- Solutions ---------- */
  .solutions-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
  }

  .solution-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    min-width: 0;
  }

  .solution-wide-flow {
    grid-template-columns: 1fr;
    gap: 9px;
    min-width: 0;
  }

  .wide-flow-connector {
    width: 1px;
    height: 28px;
    margin-inline: auto;
  }

  .solutions-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .solutions-cta-button {
    width: 100%;
  }

  /* ---------- About ---------- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-principle-card {
    position: relative;
    top: auto;
  }

  .about-journey-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .journey-track {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .journey-track::before {
    display: none;
  }

  .journey-item,
  .journey-item + .journey-item {
    min-height: 0;
    padding: 25px 10px 25px 24px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .journey-dot,
  .journey-item + .journey-item .journey-dot {
    top: 20px;
    left: -4px;
  }

  .about-trust-strip {
    grid-template-columns: 1fr;
  }

  .about-trust-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  /* ---------- Contact ---------- */
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-copy {
    position: relative;
    top: auto;
  }

  .contact-panel {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 22px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-field,
  .form-field input,
  .form-field textarea,
  .form-field select,
  .custom-select,
  .custom-select-trigger,
  .custom-select-panel {
    max-width: 100%;
    box-sizing: border-box;
  }

  .custom-select-panel {
    left: 0;
    right: 0;
    width: 100%;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .result-summary > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  /* ---------- Footer ---------- */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-nav-wrap {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}


/* Small phones */
@media (max-width: 430px) {
  .hero {
    padding-top: 92px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 12.4vw, 3.3rem);
  }

  .hero-visual {
    width: 100%;
  }

  .hero-portrait {
    width: min(100%, 430px);
  }

  .status-card-one {
    transform: scale(0.94);
    transform-origin: right top;
  }

  .value-strip span {
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .solution-card,
  .solution-card-wide,
  .about-principle-card,
  .contact-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-nav-wrap {
    grid-template-columns: 1fr 1fr;
  }
}


/* Extra narrow phones */
@media (max-width: 375px) {
  .container,
  .hero-grid,
  .value-strip {
    width: calc(100% - 24px);
  }

  .hero-title {
    font-size: 2.42rem;
  }

  .hero-description {
    font-size: 0.94rem;
  }

  .status-card-one {
    margin-right: 0;
    transform: scale(0.9);
  }

  .value-strip span {
    min-height: 62px;
    padding: 10px 6px;
    font-size: 0.69rem;
  }

  .footer-nav-wrap {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SECTION 11A.2 — TURNSTILE + HONEYPOT
   ========================================================= */

/* The honeypot remains in the DOM for simple bot detection,
   but is completely outside the visible/focusable experience. */
.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-security {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.form-security .cf-turnstile {
  width: 100%;
  min-height: 65px;
}

.form-security-note {
  color: #718095;
  font-size: 0.66rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .form-security,
  .form-security .cf-turnstile {
    width: 100%;
    max-width: 100%;
  }
}



/* =========================================================
   SECTION 12 — LIVE N8N FORM CONNECTION
   ========================================================= */

.live-badge {
  border-color: rgba(52, 211, 153, 0.16);
  color: #9fb4aa;
  background: rgba(52, 211, 153, 0.035);
}

.turnstile-error {
  color: #ff7b7b;
  font-size: 0.68rem;
  line-height: 1.45;
}

.assessment-error[hidden] {
  display: none;
}

.assessment-error {
  position: relative;
  margin-top: 28px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,107,107,0.065), transparent 13rem),
    rgba(5,15,27,0.74);
  animation: resultReveal 320ms ease both;
}

.assessment-error-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,107,107,0.22);
  border-radius: 10px;
  background: rgba(255,107,107,0.05);
  color: #ff7b7b;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.assessment-error .result-label {
  color: #ff7b7b;
}

.assessment-error h3 {
  max-width: 520px;
  padding-right: 55px;
  margin-top: 7px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

#assessmentErrorText {
  max-width: 640px;
  margin-top: 16px;
  color: #b8c3d0;
  font-size: 0.86rem;
}

.assessment-error .button {
  margin-top: 22px;
}

@media (max-width: 520px) {
  .assessment-error {
    padding: 22px;
  }
}
