/* ==========================================================================
   Chrisentia Consultancy — site styles
   Single source of truth. Previously duplicated inline in all three pages.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */

body {
  background: #ffffff;
  min-height: 100vh;
}

section {
  position: relative;
}


/* Visible keyboard focus. Previously missing entirely. */
:focus-visible {
  outline: 2px solid #2d3748;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Scroll reveal ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* A section reached by a link (About, Get in touch) skips the fade-in, so
   it is already in place when the page lands on it. */
.reveal:target {
  opacity: 1;
  transform: none;
  transition: none;
}

/* --- Cards --------------------------------------------------------------- */

.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(45, 55, 72, 0.08);
  box-shadow: 0 4px 6px rgba(45, 55, 72, 0.05);
}

.hover-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(45, 55, 72, 0.15);
}

.service-card {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(45, 55, 72, 0.25);
}

.project-card {
  background: linear-gradient(145deg, #fafbfc, #f5f8fb);
  border: 1px solid rgba(45, 55, 72, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(45, 55, 72, 0.15);
  border-color: rgba(45, 55, 72, 0.2);
}

.project-number {
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #2d3748;
  opacity: 0.1;
  position: absolute;
  top: -10px;
  right: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-number {
  opacity: 0.5;
  transform: scale(1.1);
}

/* --- Motion -------------------------------------------------------------- */

.kinetic-rotate {
  animation: slow-rotate 25s linear infinite;
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Navigation ---------------------------------------------------------- */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #2d3748, #4a5568);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-current::after {
  width: 100%;
}

/* The page you are on (Services, Projects) or, on the home page, the area
   you have scrolled to. */
.nav-link[aria-current="page"],
.nav-link.is-current {
  color: #1e293b;
  font-weight: 800;
}

.nav-link::after {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

#mobileMenu a.is-current {
  color: #0284c7;
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 767px) {
  #hamburger { display: flex; }
  #desktopLinks,
  #desktopContact { display: none !important; }
}

#mobileMenu {
  display: none;
  width: 100%;
  max-width: 80rem;
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(209, 213, 219, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  box-sizing: border-box;
}

#mobileMenu.open { display: block; }

#mobileMenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobileMenu ul li a {
  display: block;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

#mobileMenu ul li:last-child a { border-bottom: none; }
#mobileMenu ul li a:hover { color: #1e293b; }

#mobileContact {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: linear-gradient(to right, #1e293b, #334155);
  color: white;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* --- Project media ------------------------------------------------------- */

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 10px 30px -12px rgba(45, 55, 72, 0.25);
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single image gets a gentle zoom on hover. Video deliberately does not —
   the framing belongs to whoever shot it. */
.project-media--single img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover .project-media--single img,
.project-media--single:hover img {
  transform: scale(1.04);
}

/* Carousel: all slides stacked, only the active one visible. */
.project-media--carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.project-media--carousel img.is-active {
  opacity: 1;
}

.project-media__dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.project-media__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.project-media__dot.is-active {
  width: 1.5rem;
  background: #ffffff;
}

/* Shown when a project folder has no files in it yet. */
.project-media--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(145deg, #f5f8fb, #e8f0f7);
  border: 1px solid rgba(45, 55, 72, 0.08);
  text-align: center;
  padding: 2rem;
}

.project-media__index {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #2d3748;
  opacity: 0.25;
}

.project-media__label {
  font-weight: 700;
  color: #64748b;
  max-width: 22ch;
}

/* Alternating two-column layout for the full project write-ups. */
.project-entry {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .project-entry {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .project-entry:nth-child(even) .project-entry__media {
    order: 2;
  }
}

.project-entry__number {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #2d3748;
  opacity: 0.18;
  margin-bottom: 0.75rem;
}

.project-entry__body p + p {
  margin-top: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(45, 55, 72, 0.07);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Software list under a service card. */
.service-tools {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(45, 55, 72, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

/* --- Hero badge ---------------------------------------------------------- */

/* Separator dots are drawn between items rather than typed into the markup,
   so the spacing can be tuned without touching content. */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1.25rem 0.55rem 0.9rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.06);
  border: 1px solid rgba(30, 41, 59, 0.14);
  white-space: nowrap;
  max-width: 100%;
}

.badge-list {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1e293b;
  white-space: nowrap;
}

/* A short line between the words, drawn in CSS rather than typed. */
.badge-list > span + span::before {
  content: '';
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  margin: 0 0.8rem;
  vertical-align: middle;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.85);
}

@media (max-width: 420px) {
  .badge-list { letter-spacing: 0.08em; font-size: 0.68rem; }
  .badge-list > span + span::before { width: 0.7rem; margin: 0 0.5rem; }
}

/* --- Clients: scrolling cards ------------------------------------------- */

.client-scroller {
  overflow: hidden;
  padding: 0.75rem 0 1.5rem;
  /* Fade the edges so cards slide in and out rather than popping. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.client-scroller__track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  padding: 0 1.5rem;
  animation: client-scroll var(--scroll-time, 70s) linear infinite;
}

.client-scroller:hover .client-scroller__track,
.client-scroller:focus-within .client-scroller__track {
  animation-play-state: paused;
}

/* The cards are rendered twice, so moving by exactly half loops seamlessly. */
@keyframes client-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Client card --------------------------------------------------------- */

.client-card {
  flex: 0 0 auto;
  width: 22rem;
  display: grid;
  grid-template-rows: 13rem auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #ffffff;
  /* A visible frame, so the story and the logo read as one card and never
     as the logo of the card next door. */
  border: 1.5px solid rgba(30, 41, 59, 0.16);
  box-shadow: 0 14px 34px -20px rgba(15, 23, 42, 0.45);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .client-card {
    width: 38rem;
    grid-template-rows: none;
    grid-template-columns: 57% 1fr;
    height: 18rem;
  }
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -22px rgba(15, 23, 42, 0.45);
}

/* Left: backdrop image (optional) under a dark overlay, text on top. */
.client-card__story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  color: #ffffff;
  background-color: #1e293b;
  background-image: linear-gradient(150deg, #334155, #0f172a);
  background-size: cover;
  background-position: center;
}

.client-card__story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.client-card__story > * {
  position: relative;
  z-index: 1;
}

.client-card__sector {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.client-card__blurb {
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

/* Right: logo, name, relationship. */
.client-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(165deg, #f8fafc, #eaf3f9);
  border-left: 3px solid #38bdf8;
}

@media (max-width: 767px) {
  .client-card__brand {
    border-left: 0;
    border-top: 3px solid #38bdf8;
  }
}

/* Every logo sits on the same white rounded tile, so logos with their own
   white or black backgrounds all look deliberate. */
.client-card__logo {
  width: 10rem;
  height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.client-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.4rem;
}

.client-card__wordmark {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #334155;
}

.client-card__name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.25;
}

.client-card__role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Reduced motion: no auto-scroll. A row you swipe or scroll yourself, no copies. */
@media (prefers-reduced-motion: reduce) {
  .client-scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .client-scroller__track {
    animation: none;
  }

  .client-card {
    scroll-snap-align: start;
  }

  .client-card[aria-hidden="true"] {
    display: none;
  }

  .client-card:hover {
    transform: none;
  }
}

/* --- Footer -------------------------------------------------------------- */

.footer-link {
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* --- Reduced motion ------------------------------------------------------ */
/* Respects the OS setting. Without this, the reveal animation hides content
   from anyone who has motion turned off. */

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

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

/* --- Why Chrisentia list ------------------------------------------------- */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-list li {
  position: relative;
  padding-left: 1.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Tick drawn in CSS so it inherits colour and needs no icon font. */
.why-list li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.3rem;
  width: 0.45rem;
  height: 0.8rem;
  border: solid #2d3748;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0.7;
}

/* --- Stats: track record ----------------------------------------------- */

.stats-section {
  position: relative;
  overflow: hidden;
}

/* Faint dot grid with a soft blue glow, fading out toward the edges. */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(45, 55, 72, 0.14) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: 60rem;
  height: 30rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.14), transparent 65%);
  pointer-events: none;
}

.stats-section > * {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.stat {
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* The ring: a faint full circle, with a blue arc that draws itself in. */
.stat__ring {
  position: relative;
  width: 11rem;
  height: 11rem;
  margin: 0 auto 1.5rem;
}

.stat__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.stat__track {
  fill: #ffffff;
  stroke: rgba(45, 55, 72, 0.08);
  stroke-width: 5;
}

.stat__arc {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.stat.is-in .stat__arc {
  stroke-dashoffset: 0;
}

.stat__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.stat__suffix {
  color: #38bdf8;
  margin-left: 0.05em;
}

.stat__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.stat__note {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 17rem;
  margin: 0 auto;
}

/* Hovering a number makes its ring glow a little brighter. */
.stat:hover .stat__arc {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7));
}

@media (prefers-reduced-motion: reduce) {
  .stat {
    opacity: 1;
    transform: none;
  }

  .stat__arc {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* --- Card visuals: icon tile or image banner ----------------------------- */

/* No image for this card: the line icon in a small tile. */
.icon-tile {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #2d3748;
  background: linear-gradient(145deg, rgba(45, 55, 72, 0.09), rgba(45, 55, 72, 0.04));
  border: 1px solid rgba(45, 55, 72, 0.07);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.45s ease, color 0.45s ease;
}

.icon-tile__svg {
  width: 1.95rem;
  height: 1.95rem;
}

.hover-card:hover .icon-tile {
  transform: translateY(-2px) scale(1.06);
  background: linear-gradient(145deg, #2d3748, #475569);
  color: #ffffff;
}

/* Image for this card: full width across the top, cropped to fill.
   The negative margin cancels the card's 2rem padding so it runs edge to edge. */
.card-banner {
  margin: -2rem -2rem 1.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  background: #eef2f6;
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-card:hover .card-banner img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .hover-card:hover .icon-tile,
  .hover-card:hover .card-banner img {
    transform: none;
  }
}

/* --- Why Chrisentia: dark band, sideways cards --------------------------- */

.why-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.why-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .why-card {
    grid-template-columns: 40% 1fr;
  }
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
}

.why-card__media {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.why-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-card:hover .why-card__media img {
  transform: scale(1.05);
}

/* No image yet: the SVG drawn large, centred in the same box. */
.why-card__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(125, 211, 252, 0.85);
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.02));
}

.why-card__svg {
  width: 4rem;
  height: 4rem;
}

.why-card__body {
  position: relative;
  padding: 1.75rem 1.75rem 2rem;
}

.why-card__number {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.why-card__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-right: 3.5rem;
}

/* The tick list, recoloured for the dark background. */
.section--dark .why-list li {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .why-list li::before {
  border-color: rgba(125, 211, 252, 0.9);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .why-card:hover,
  .why-card:hover .why-card__media img {
    transform: none;
  }
}

/* --- Why: the full-width fifth card and SDG chips ----------------------- */

/* Spans the whole row, with a narrower picture so it reads as a footer to
   the four cards above rather than a fifth card squeezed in. */
@media (min-width: 1024px) {
  .why-card--wide {
    grid-column: 1 / -1;
    grid-template-columns: 22% 1fr;
  }

  .why-card--wide .why-card__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
  }
}

.sdg-block {
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .sdg-block {
    margin-top: 0;
  }
}

.sdg-block__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.9);
  margin-bottom: 0.7rem;
}

.sdg-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: 0.6rem;
}

/* Each chip carries its goal's official UN colour as a left stripe. */
.sdg-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem 0.8rem 1.1rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sdg-chip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sdg, #7dd3fc);
}

.sdg-chip span {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  min-width: 1.6rem;
}

.sdg-chip small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.68);
}

/* --- Project links (home) and arrival (Projects page) -------------------- */

/* The whole home-page project card is one link. */
.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 1.75rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-link:hover {
  transform: translateY(-6px);
}

.project-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.project-link .project-media {
  transition: box-shadow 0.4s ease;
}

.project-link:hover .project-media {
  box-shadow: 0 26px 48px -20px rgba(15, 23, 42, 0.45);
}

.project-link__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2d3748;
  transition: gap 0.3s ease;
}

.project-link__cta .material-symbols-outlined {
  font-size: 1.15rem;
}

.project-link:hover .project-link__cta {
  gap: 0.75rem;
}

/* Leave room for the fixed header when jumping to a project. */
.project-entry {
  scroll-margin-top: 7.5rem;
}

/* The project you arrived at skips the scroll fade-in, so it is already in
   its final position when the page lines it up under the header. */
.project-entry:target {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Brief highlight on the project you arrived at. */
.project-entry.is-arrived .project-media {
  animation: project-arrive 2.4s ease-out;
}

@keyframes project-arrive {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0); }
  15%  { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-link:hover {
    transform: none;
  }

  .project-entry.is-arrived .project-media {
    animation: none;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.5);
  }
}

/* "Physical AI" in the accent blue used by the stats rings and Why band. */
.hero__accent {
  background: linear-gradient(100deg, #0284c7, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Hero badge icon or image -------------------------------------------- */

.hero-badge__icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #1e293b;
  flex: 0 0 auto;
}

/* Your own image instead: src/icons/hero-badge.png (or .jpg .webp). */
.hero-badge__img {
  height: 1.75rem;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

/* --- Buttons ------------------------------------------------------------- */

/* Two buttons of equal weight: solid for the main action, a firm outline
   for the second. Both clearly clickable. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid #1e293b;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease,
              box-shadow 0.3s ease, gap 0.3s ease;
}

.btn__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

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

.btn--primary {
  background: #1e293b;
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(30, 41, 59, 0.6);
}

.btn--primary:hover {
  background: #0f172a;
  box-shadow: 0 16px 30px -12px rgba(30, 41, 59, 0.7);
}

.btn--secondary {
  background: #ffffff;
  color: #1e293b;
}

.btn--secondary:hover {
  background: #1e293b;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}


/* --- How we work (Services page) ----------------------------------------- */

/* Phone: steps stacked, joined by a vertical line down the left. */
.process-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Each step draws the line down to the next number, so the line always ends
   exactly at the last step whatever the text lengths. */
.process-step {
  position: relative;
  padding-left: 4.75rem;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.6rem - 1px);
  top: 3.2rem;
  height: calc(100% - 3.2rem + 2.5rem);
  width: 2px;
  background: rgba(56, 189, 248, 0.45);
}

.process-step__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  background: #172033;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.08), 0 0 18px rgba(56, 189, 248, 0.25);
}

.process-step__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0.55rem 0 0.6rem;
}

.process-step__text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* Desktop: four steps side by side, joined by a horizontal line that runs
   from the first number to the last. */
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    left: 1.6rem;
    right: calc((100% - 7.5rem) / 4 - 1.6rem);
    top: 1.6rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.75), rgba(56, 189, 248, 0.2));
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .process-step {
    padding-left: 0;
    padding-top: 4.75rem;
  }

  .process-step__marker {
    top: 0;
  }

  .process-step__title {
    margin-top: 0;
  }

  .process-step__text {
    max-width: 16rem;
  }
}

/* The steps arrive one after another as the section scrolls in. */
.process-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-band.active .process-step {
  opacity: 1;
  transform: none;
}

.process-band.active .process-step:nth-child(2) { transition-delay: 0.15s; }
.process-band.active .process-step:nth-child(3) { transition-delay: 0.3s; }
.process-band.active .process-step:nth-child(4) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .process-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Layout system
   One container, one section rhythm, one way to open a section. Every page
   and every section uses these, so headings, left edges and spacing line up
   from the top of the site to the bottom.
   ========================================================================== */

.site {
  color: #2d3748;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* One content width and one left edge for everything. (Named .wrap so it
   cannot collide with Tailwind's own .container class.) */
.wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

/* One vertical rhythm between sections. */
.section {
  position: relative;
  padding-block: 4.5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 5.5rem;
  }
}

/* The first section of an inner page clears the fixed menu bar. */
.section--page {
  padding-top: 8rem;
}

@media (min-width: 1024px) {
  .section--page {
    padding-top: 9rem;
  }
}

/* Light sections alternate plain and tint; dark sections anchor the page. */
.section--plain { background: #ffffff; }
.section--tint  { background: #f8fafc; }

.section--dark {
  color: #ffffff;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(160deg, #1e293b, #0f172a);
}

/* --- Section heading: label, title, optional line ------------------------ */

.section-head {
  max-width: 48rem;
  margin-bottom: 2.75rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #1e293b;
}

.section-sub {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #64748b;
}

/* Inner pages open with a larger title, same alignment. */
.page-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #1e293b;
}

.section--dark .section-kicker { color: #7dd3fc; }
.section--dark .section-title  { color: #ffffff; }
.section--dark .section-sub    { color: rgba(255, 255, 255, 0.7); }

/* --- Shared card text ---------------------------------------------------- */

.card-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin-bottom: 0.65rem;
}

.section--dark .card-title { color: #ffffff; }

.card-text {
  color: #64748b;
  line-height: 1.65;
}

.why-card__title,
.process-step__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat__label {
  font-weight: 700;
}

/* --- Services grid: last row centred ------------------------------------- */

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.services-grid > * {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .services-grid > * { flex-basis: calc((100% - 1.5rem) / 2); }
}

@media (min-width: 1024px) {
  .services-grid > * { flex-basis: calc((100% - 3rem) / 3); }
}

.service-card {
  padding: 2rem;
  border-radius: 1.5rem;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 7.5rem 3.5rem;
  background: #f8fafc;
}

/* Faint dot grid and blue glow, the same treatment as the stats section. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(45, 55, 72, 0.11) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 25% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 20%;
  top: 45%;
  width: 46rem;
  height: 32rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12), transparent 65%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }
}

.hero__copy > * + * {
  margin-top: 2rem;
}

.hero__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.hero__lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__media {
  aspect-ratio: 4 / 5;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.5);
  background: #0f172a;
}

@media (min-width: 768px) {
  .hero__media { aspect-ratio: 1 / 1; }
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Projects ------------------------------------------------------------ */

.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

@media (min-width: 1024px) {
  .project-list { gap: 6rem; }
}

/* --- Contact ------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.contact-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(30, 41, 59, 0.1);
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.35);
}

@media (min-width: 768px) {
  .contact-card { padding: 2.5rem; }
}

.contact-form > * + * {
  margin-top: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.field__req {
  color: #dc2626;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font: inherit;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.field textarea::placeholder {
  color: #94a3b8;
}

/* Send enquiry sits centred under the fields. */
.contact-form .btn {
  display: flex;
  width: fit-content;
  min-width: 12rem;
  margin: 1.75rem auto 0;
}

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

.contact-form__status {
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-direct .card-title {
  margin-bottom: 1.25rem;
}

.btn--whatsapp {
  width: 100%;
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.btn--whatsapp:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
  color: #ffffff;
}

.btn--whatsapp svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.contact-direct__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-direct__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #475569;
}

.contact-direct__list .material-symbols-outlined {
  font-size: 1.2rem;
  color: #94a3b8;
}

.contact-direct__list a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.contact-direct__list a:hover {
  color: #0284c7;
}

/* --- Footer and misc ----------------------------------------------------- */

.footer-brand {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #1e293b;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.4);
}

.skip-link:focus {
  left: 1rem;
}

/* A section reached through the menu lands below the fixed menu bar. */
#top,
#services,
#projects,
#why,
#enquiry {
  scroll-margin-top: 0;
}

/* The menu bar and footer sit on the same edges as the page content. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem 0;
}

@media (min-width: 768px) {
  .site-header {
    padding-inline: 2.5rem;
  }
}

.site-footer {
  color: #ffffff;
  padding: 5rem 0 2.5rem;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

/* The bar's outer edge lines up with the content edge at every width. */
.site-header > nav,
.site-header > #mobileMenu {
  max-width: 75rem;
}

/* --- Blue accent on hover: services and project cards -------------------- */

/* The client cards keep their permanent blue divider because adjacent cards
   need telling apart. Service and project cards show the same blue only on
   hover, as a "this responds" cue, so the accent stays one quiet thread. */
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover .icon-tile {
  background: linear-gradient(145deg, #0284c7, #38bdf8);
  color: #ffffff;
}

.project-link:hover .project-media {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.55), 0 26px 48px -20px rgba(15, 23, 42, 0.45);
}

.project-link:hover .project-link__cta {
  color: #0284c7;
}

@media (prefers-reduced-motion: reduce) {
  .service-card::before { transition: none; }
}
