/* --- Design system / variables --- */
:root{
  /* Colors */
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
  --accent-cyan: #00d4ff;
  --accent-lime: #7dff00;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --overlay: rgba(0,0,0,0.3);

  /* Spacing */
  --xs: 0.5rem;
  --sm: 1rem;
  --md: 2rem;
  --lg: 3rem;
  --xl: 4rem;
  --2xl: 6rem;

  /* Typography */
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --body-size: 1rem;
  --small-size: 0.875rem;

  /* Layout */
  --container-max: 1400px;
  --radius: 12px;

  /* Transitions */
  --fast: 150ms;
  --base: 300ms;
  --slow: 600ms;
}

/* --- Base resets --- */
*{box-sizing:border-box}
html { scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:var(--text-primary); background:var(--light-bg); }
body{margin:0; line-height:1.45; font-size:var(--body-size); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent-cyan);text-decoration:none;transition:color var(--fast)}

/* --- Container --- */
.container{max-width:var(--container-max);margin-left:auto;margin-right:auto;padding-left:var(--sm);padding-right:var(--sm);width:100%}

/* --- Header / Nav --- */
.header{
  position:fixed !important;
  top:0;
  left:0;
  right:0;
  z-index:1200;
  background:linear-gradient(180deg, rgba(26,26,26,0.95), rgba(26,26,26,0.9));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--sm);padding:0.75rem var(--sm)}
.logo{display:flex;align-items:center;gap:0.5rem;color:var(--text-light);font-weight:700}
.nav__list{display:flex;gap:1.25rem;align-items:center}
.nav__list a{color:var(--text-light);position:relative;padding:0.25rem 0;transition:color var(--fast)}
/* underline animation */
.nav__list a::after{
  content:"";position:absolute;left:0;bottom:-4px;height:2px;background:var(--accent-cyan);width:0;transition:width var(--fast) ease;
}
.nav__list a:hover::after{width:100%}
.nav__toggle{display:none;border:1px solid rgba(255,255,255,0.06);background:transparent;padding:0.5rem;border-radius:10px}

/* Mobile nav */
@media(max-width:768px){
  .nav__list{display:none}
  .nav__toggle{display:inline-flex}
}

/* --- Typography --- */
h1{font-family:"Playfair Display", Georgia, "Times New Roman", serif;font-size:var(--h1-size);line-height:1.02;font-weight:700;letter-spacing:-0.02em;margin:0 0 var(--sm)}
h2{font-family:"Playfair Display", Georgia, serif;font-size:var(--h2-size);font-weight:700;margin:0 0 var(--sm)}
h3{font-size:var(--h3-size);font-weight:600;margin:0 0 var(--sm)}
p{color:var(--text-secondary);margin:0 0 var(--sm)}

/* --- Buttons --- */
.btn{
  display:inline-flex;align-items:center;gap:0.6rem;padding:0.75rem 1.25rem;border-radius:999px;font-weight:600;cursor:pointer;border:none;transition:transform var(--fast),box-shadow var(--fast),opacity var(--fast);
}
.btn--primary{background:var(--dark-bg);color:var(--text-light);box-shadow:0 6px 18px rgba(2,6,23,0.12)}
.btn--primary:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(2,6,23,0.18)}
.btn--secondary{background:transparent;color:var(--text-primary);text-decoration:underline;padding:0.5rem 0}
.btn--outline{background:transparent;border:1px solid rgba(0,0,0,0.08);color:var(--text-primary)}

/* --- Section layout --- */
.section{padding:var(--lg) 0}
.section--alt{background:var(--light-bg)} /* alternating handled in HTML or with alternating classes */
.section__head{max-width:900px;margin-left:auto;margin-right:auto;text-align:center;margin-bottom:var(--md)}
.section__head h2{margin-bottom:0.5rem}
.section__head .muted{color:var(--text-secondary)}

/* --- Hero: full-bleed / immersive --- */
.hero{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  background: #000;            /* changed to pure black */
  color: #fff;                 /* ensure text is readable */
}

/* hide legacy bg/overlay if present */
.hero__bg { display: none !important; }
.hero__overlay { display: none !important; }

/* Force hero text to be light on black */
.hero__content { color: #fff; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.9); }

/* Ensure banner image (right column) looks correct on dark bg */
.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  /* optionally slightly brighten image edges on dark bg */
  filter: none;
}

/* small responsive tweak remains */
@media (max-width: 768px) {
  .hero{ grid-template-columns: 1fr; min-height: 80vh; }
  .hero__inner{ padding: 1.25rem; }
  .hero__content{ padding: 0; text-align: left; }
}

/* --- Cards / boxes --- */
.card{background:var(--text-light);border-radius:var(--radius);box-shadow:0 8px 30px rgba(2,6,23,0.06);padding:1.25rem;transition:transform var(--base),box-shadow var(--base)}
.card:hover{transform:translateY(-6px);box-shadow:0 28px 60px rgba(2,6,23,0.10)}

/* --- Carousel / featured work --- */
.carousel{position:relative;margin-top:var(--md)}
.carousel__viewport{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding-bottom:12px;scroll-behavior:smooth}
.carousel__viewport::-webkit-scrollbar{display:none}
.carousel__track{display:flex;gap:20px;padding:12px 4px}
.carousel__card{
  flex:0 0 auto; width:420px; height:600px; border-radius:16px; background-size:cover; background-position:center; position:relative; scroll-snap-align:center; overflow:hidden; transition:transform var(--base),box-shadow var(--base);
  display:flex;align-items:end;justify-content:start;
}
.carousel__card:hover{transform:translateY(-8px);box-shadow:0 30px 70px rgba(2,6,23,0.15)}
.carousel__card .card__inner{position:relative;z-index:2;padding:20px;color:var(--text-light);width:100%}
.carousel__card::before{content:"";position:absolute;left:0;right:0;bottom:0; height:60%; background:linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.6) 100%); z-index:1;}

/* dots */
.carousel__dots{display:flex;gap:10px;justify-content:center;margin-top:14px}
.carousel__dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.35);border:none;cursor:pointer;transition:transform var(--fast),background var(--fast)}
.carousel__dot[aria-current="true"]{background:var(--text-light);transform:scale(1.1)}

/* arrows (hidden by default, reveal on hover) */
.carousel__nav{
  --size:52px;position:absolute;top:50%;transform:translateY(-50%);width:var(--size);height:var(--size);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:none;background:rgba(255,255,255,0.92);color:var(--dark-bg);box-shadow:0 10px 30px rgba(2,6,23,0.12);opacity:0;pointer-events:none;transition:opacity var(--fast),transform var(--fast);
  z-index:6;
}
.carousel__nav--prev{left:12px}
.carousel__nav--next{right:12px}
.carousel:hover .carousel__nav, .carousel:focus-within .carousel__nav{opacity:1;pointer-events:auto;transform:translateY(-50%) scale(1)}
.carousel__nav:active{transform:translateY(-50%) scale(0.98)}
.carousel__nav:focus{outline:3px solid rgba(0,212,255,0.14);outline-offset:4px}

/* responsive carousel adjustments */
@media(max-width:768px){
  .carousel__card{width:92vw;height:48vh;border-radius:12px}
  .carousel__nav{display:none}
  .carousel__track{padding-left:var(--sm);padding-right:var(--sm)}
}

/* utility */
.text-center{text-align:center}
.muted{color:var(--text-secondary)}

/* small animation class for reveal on scroll */
.is-visible{opacity:1;transform:none;transition:opacity var(--slow) ease, transform var(--slow) ease}
.reveal{opacity:0;transform:translateY(14px)}

/* Dark site theme: full black background + readable surfaces */
:root{
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.72);
  --surface: rgba(255,255,255,0.03); /* subtle card surfaces */
  --accent: #1db954; /* adjust to taste */
  --muted-2: rgba(255,255,255,0.12);
}

/* --- Layout container (site-wide) --- */
:root{
  --container-width: 1100px;
  --container-gutter: 1rem;
  /* ...existing variables ... */
}

/* Ensure a consistent centered container used everywhere */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  width: 100%;
  box-sizing: border-box;
}

/* Prevent large components from sizing relative to the viewport.
   Use container-relative sizing so everything visually fits the site width. */
.carousel__card {
  /* changed from viewport-based sizing to container-relative sizing */
  flex: 0 0 auto;
  width: clamp(320px, 50%, 700px); /* 50% of container (responsive) with sensible min/max */
  height: clamp(320px, 58vh, 600px);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  scroll-snap-align: center;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

/* If any other components are using vw/vh for widths, prefer % or max-width so they remain inside .container */
.carousel__track { gap: 20px; }

html,body {
  height: 100%;
  background: var(--bg) !important;
  color: var(--text);
}

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

/* Links, muted text */
a { color: var(--accent); }
.muted { color: var(--muted); }

/* Make container/sections transparent so background shows through */
.container,
.section,
.header,
.footer,
main { background: transparent; }

/* Convert common surface components to dark surfaces */
.card,
hero__card,
carousel__card,
card__meta,
checklist,
contact,
grid article {
  background: var(--surface);
  color: var(--text);
}

/* Buttons / pills */
.btn {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--muted-2);
}

/* Pills */
.pill,
.pill--active {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.pill--active {
  background: var(--accent);
  color: #000;
}

/* Navbar links / footer links */
.nav__list a,
.footer__links a {
  color: rgba(255,255,255,0.9);
}

/* Carousel overlays and text already use white text; ensure contrast */
.carousel__overlay { /* overlay keeps text readable—no change needed */ }
.carousel__title,
.carousel__desc { color: #fff; }

/* Small touches to hide any remaining light borders */
* {
  border-color: rgba(255,255,255,0.06) !important;
}

/* If your logo is a light image on white, you may want an alternate dark-version image.
   Otherwise you can invert it (may not work for all logos): */
.logo__mark img { /* remove if it looks wrong */
  /* filter: brightness(0) invert(1); */
}

/* Header */
.header{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #121111;
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

.logo{
  display: flex;
  gap: .65rem;
  align-items: center;
  font-weight: 700;
  letter-spacing: .2px;
}
.logo__mark{
  height: 40px;
  width: auto;
  aspect-ratio: 1792 / 576;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(61,214,208,.85)); */
  box-shadow: var(--shadow);
}
.logo__mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo__text{ color: var(--text); }

.nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav__list a{ color: var(--muted); }
.nav__list a:hover{ color: var(--text); }

.nav__toggle{
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: .55rem .6rem;
}
.nav__bar{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* Hero */
.hero{
  /* existing spacing kept, add light modern grey background and darker text */
  padding: 6rem 0 3rem;
  display: flex;
  align-items: center;
  min-height: 56vh;
  background: linear-gradient(180deg, #f7f8fa 0%, #f2f4f6 100%); /* light modern grey */
  color: #0b1720; /* dark text for contrast on light background */
}

/* make muted/subtitle darker inside the hero */
.hero .muted { color: rgba(11,23,32,0.6); }

/* ensure hero card contrasts nicely on the light background */
.hero__card {
  background: rgba(255,255,255,0.92);
  color: inherit;
  border: 1px solid rgba(11,23,32,0.06);
  box-shadow: 0 8px 28px rgba(11,23,32,0.06);
}

/* buttons in hero: primary dark, ghost remains subtle */
.hero .btn {
  background: #0b1720;
  color: #fff;
  border-color: transparent;
}
.hero .btn--ghost {
  background: transparent;
  color: #0b1720;
  border-color: rgba(11,23,32,0.06);
}

/* ensure any carousel/title inside hero keeps readable color */
.hero h1, .hero h2, .hero__title, .hero__sub { color: inherit; }

/* Ensure the hero's inner container uses the same centered container sizing
   and keeps a consistent grid layout with the rest of the site */
.hero > .container.hero__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: center; /* vertically center columns */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Ensure hero content takes full available width inside grid columns */
.hero__content { width: 100%; }

/* Make hero card vertically align and not collapse when empty */
.hero__card {
  width: 100%;
  align-self: start;
}

/* Slightly reduce hero padding on small screens and stack columns */
@media (max-width: 900px) {
  .hero{
    padding: 3.25rem 0 2rem;
    min-height: auto;
  }
  .hero > .container.hero__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero__card { align-self: stretch; }
}

.pill{
  display: inline-block;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  margin: 0 0 .9rem;
}
.hero h1{
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}
.hero__sub{
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__cta{
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.hero__stats{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: .75rem .9rem;
  min-width: 160px;
}
.stat__num{ font-weight: 800; font-size: 1.2rem; }
.stat__label{ color: var(--muted); font-size: .9rem; }

.hero__card{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.hero__card h2{ margin: 0 0 .75rem; font-size: 1.15rem; }

/* Ensure checklist inside the hero card is dark and visible on the light hero background */
.hero__card,
.hero__card * {
  color: #0b1720 !important;
  opacity: 1 !important;
}

/* specifically target checklist markers (bullets) */
.hero__card .checklist li::marker {
  color: #0b1720 !important;
}

/* keep meta text readable too */
.hero__card .card__meta {
  color: #0b1720 !important;
}

/* Full-bleed immersive hero */
.hero {
  position: relative;
  width: 100vw;                 /* ensures full-bleed on wide viewports */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;           /* full viewport height (use 80vh if you prefer) */
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: #000;       /* fallback while image loads */
}

/* background element covers entire hero and uses the banner image */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('style/Images/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform-origin: center;
  will-change: transform;
  /* subtle parallax-like scale on hover (optional)
     transition: transform 600ms ease; */
}

/* dark overlay to ensure foreground text is readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* content grid: left text, right visual column; removes .container max-width for hero */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 60% 40%; /* text left (primary), image right */
  gap: 3rem;                      /* requested 3rem column gap */
  align-items: center;            /* vertically center content in viewport */
  padding: clamp(1rem, 4vw, 6rem);/* generous inner padding */
}

/* make sure hero content expands fully and is not constrained by site container */
.hero__content {
  max-width: none; /* explicitly remove any max-width */
  width: 100%;
  color: #fff;
}

/* text positioning: keep text left-centered vertically, add left padding for breathing room */
.hero__content { padding-left: clamp(1rem, 6vw, 6rem); }

/* lead / descriptive text */
.hero .lead,
.hero__content .lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  margin-top: .75rem;
}

/* CTA alignment stays with the text block */
.hero__cta { margin-top: 1.25rem; }

/* right column banner image (optional). ensure it fills its column */
.hero__banner {
  width: 100%;
  display: block;
  justify-self: center;
}
.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(2,6,23,0.35);
}

/* responsive: stack on mobile and reduce height */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh; /* slightly shorter on small screens */
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .hero__content { padding-left: 0; padding-right: 0; text-align: left; }
  .hero__banner { order: 2; }
  .hero__banner img { border-radius: 10px; width: 100%; height: auto; }
  .hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%); }
}

/* small accessibility tweak: ensure strong contrast for text */
.hero h1, .hero p, .hero .btn { color: #fff; }

/* Sections */
.section{ padding: 3.2rem 0; }
.section--alt{
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{
  margin-bottom: 1.5rem;
}
.section__head h2{
  margin: 0 0 .3rem;
  font-size: 1.7rem;
}
.section__head p{
  margin: 0;
  color: var(--muted);
}

/* Centered section heading modifier */
.section__head--center { text-align: center; }

/* Muted subtitle style (if you already have a .muted class skip this) */
.muted { color: rgba(0,0,0,0.6); margin-top: 0.25rem; }

.grid{
  display: grid;
  gap: 1.1rem;
}
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }

.card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 .5rem; }
.card p{ margin: 0 0 .9rem; color: var(--muted); }

.checklist, .bullets{
  margin: .8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.checklist li{ margin: .45rem 0; }
.checklist li::marker{ content: "✓ "; color: var(--brand2); }
.bullets li{ margin: .35rem 0; }

.tags{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.tag{
  font-size: .85rem;
  padding: .25rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}
.step{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 1rem;
}
.step__num{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(124,92,255,.20);
  border: 1px solid rgba(124,92,255,.35);
}

/* FAQ */
.faq{
  display: grid;
  gap: .8rem;
}
.faq__item{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: .8rem 1rem;
}
.faq__item summary{
  cursor: pointer;
  font-weight: 650;
}
.faq__item p{ margin: .7rem 0 0; color: var(--muted); }

/* Contact */
.contact{
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
}

.form label{
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .95rem;
}
.form input, .form textarea{
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline: none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}
.form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-bottom: .9rem;
}
.form__actions{
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: .9rem;
}
.form__note{ color: var(--muted); margin: 0; }

.divider{
  height: 1px;
  background: var(--line);
  margin: 1rem 0;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(124,92,255,.55);
  background: rgba(124,92,255,.22);
  color: var(--text);
  font-weight: 650;
}
.btn:hover{ transform: translateY(-1px); }
.btn--ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn--small{
  padding: .55rem .75rem;
  border-radius: 12px;
}

/* Footer */
.footer{
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer p{ margin: 0; color: var(--muted); }
.footer__links{ display: flex; gap: 1rem; }
.footer__links a{ color: var(--muted); }
.footer__links a:hover{ color: var(--text); }

/* Pills: horizontal scrolling on small screens, centered on wide screens */
.pills-section { padding-top: 2rem; padding-bottom: 2rem; }
.pills-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding-bottom: 6px; /* small space for scroll on mobile */
}
.pills-wrapper::-webkit-scrollbar { display: none; } /* WebKit */

/* The track holds pills in a single row */
.pills-track {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0.25rem;
  /* allow scrolling but keep items sized to content */
  white-space: nowrap;
}

/* Pill styles */
.pill {
  flex: 0 0 auto;
  border-radius: 25px;
  background: rgba(0,0,0,0.05);
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.pill:focus { outline: 2px solid rgba(0,0,0,0.08); outline-offset: 3px; }

/* Active state */
.pill--active {
  background: var(--accent, #111);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Desktop: show centered non-scrolling row if enough space */
@media (min-width: 768px) {
  .pills-wrapper { overflow-x: visible; }
  .pills-track { justify-content: center; }
}

/* Carousel Section */
.carousel-section { padding-top: 2.25rem; padding-bottom: 2.25rem; }

.carousel {
  position: relative;
  --gap: 20px;
  margin-top: 1rem;
}

/* viewport / scrolling container */
.carousel__viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  outline: none;
  padding-bottom: 12px; /* room for hidden scrollbar on touch */
}
.carousel__viewport::-webkit-scrollbar { display: none; }

/* track holds the cards side-by-side */
.carousel__track {
  display: flex;
  gap: var(--gap);
  padding: 12px 4px;
  align-items: start;
}

/* card sizing: responsive, approx 500-700px wide on desktop */
.carousel__card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(320px, 50%, 700px); /* 50% of container (responsive) with sensible min/max */
  height: clamp(320px, 58vh, 600px);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  scroll-snap-align: center;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}
.carousel__card:hover { transform: scale(1.02); box-shadow: 0 20px 40px rgba(16,24,40,0.10); }

/* dark overlay gradient from top to make text readable */
.carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.08) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* content area */
.carousel__content {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #fff;
  max-width: 80%;
}
.carousel__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.05;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}
.carousel__desc {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

/* navigation arrows (desktop) */
.carousel__nav {
  --size: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(.98);
  width: var(--size);
  height: var(--size);
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.9); /* light button for contrast */
  color: #0b1720;                    /* dark icon/text on light button */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(2,6,23,0.18);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
}

/* horizontal placement */
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }

/* show on hover or when carousel has keyboard focus */
.carousel:hover .carousel__nav,
.carousel:focus-within .carousel__nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

/* slightly larger hit area on hover */
.carousel__nav:hover { transform: translateY(-50%) scale(1.03); box-shadow: 0 18px 40px rgba(2,6,23,0.22); }

/* keep nav visible on larger screens but still hidden by default on touch devices
   (existing rule shows nav on min-width already; we keep that but control visibility) */
@media (min-width: 768px) {
  .carousel__nav { display: inline-flex; } /* ensures the element participates for layout */
}

/* accessible focus style */
.carousel__nav:focus {
  outline: 3px solid rgba(124,92,255,0.18);
  outline-offset: 3px;
}

/* Services carousel specifics (cards styled to match site) */
.services-carousel { margin-top: var(--md); }
.services-carousel .carousel__viewport { padding-bottom: 12px; }
.services-carousel .carousel__track { gap: 20px; align-items: stretch; }

/* Service card visual */
.service-card {
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 14px;
  width: clamp(280px, 38%, 520px); /* responsive: shows 1-3 cards depending on viewport */
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  transition: transform var(--base), box-shadow var(--base);
  scroll-snap-align: center;
  padding: 20px;
}

/* hover lift */
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(2,6,23,0.12);
}

/* icon */
.service-card__icon {
  width: 72px;
  height: 72px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 12px;
}
.service-card__icon img { width:56px;height:56px;display:block; }

/* content */
.service-card__body { display:flex; flex-direction:column; gap:12px; flex:1; }
.service-card__body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}
.service-card__body p { margin:0; color:var(--text-secondary); font-size:1rem; }
.bullets.small { margin: 0.25rem 0 0 1rem; color: var(--text-secondary); font-size:0.95rem; }
.bullets.small li { margin: 6px 0; }

/* CTA inside card (bottom aligned) */
.service-card__cta { margin-top: auto; }

/* ensure button styling consistent */
.service-card .btn--primary { border-radius: 10px; padding: 0.6rem 1rem; }

/* arrows appear on hover (reuse existing .carousel__nav rules); ensure contrast */
.services-carousel .carousel__nav { background: rgba(0,0,0,0.88); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.services-carousel .carousel__nav--prev { left: 8px; }
.services-carousel .carousel__nav--next { right: 8px; }

/* dots */
.services-carousel .carousel__dots { margin-top: 14px; }

/* Responsive: tablet & mobile */
@media (max-width: 1024px) {
  .service-card { width: clamp(320px, 46%, 480px); min-height: 380px; }
}
@media (max-width: 768px) {
  .service-card { width: 92vw; min-height: 360px; border-radius: 12px; }
  .services-carousel .carousel__nav { display: none; } /* no hover nav on touch */
  .service-card__icon { margin-bottom: 10px; }
}

/* keep consistent spacing with surrounding sections */
#grow .section__head { margin-bottom: var(--md); }

/* Futura font family (uses local system copy first; optionally add woff2 files to style/fonts/) */
@font-face {
  font-family: 'Futura';
  src: local('Futura'), local('Futura PT'), local('Futura-Book'),
       /* Optional: uncomment and provide files if you host them
        url('style/fonts/Futura-Book.woff2') format('woff2'),
        */
       ;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: local('Futura Medium'), local('Futura-Medium'),
       /* url('style/fonts/Futura-Medium.woff2') format('woff2'), */
       ;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: local('Futura Bold'), local('Futura-Bold'),
       /* url('style/fonts/Futura-Bold.woff2') format('woff2'), */
       ;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* BASE / TYPOGRAPHY: force Futura across the site
   Note: Futura is a commercial font — ensure it's installed locally or self-hosted via a licensed webfont.
   Fallback list keeps rendering consistent if Futura isn't available. */
html {
  scroll-behavior: smooth;
  font-family: 'Futura', 'Futura PT', 'Futura Std', 'Trebuchet MS', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--light-bg);
}

/* Ensure headings also use Futura (remove serif usage) */
h1, h2, h3 {
  font-family: 'Futura', 'Futura PT', 'Futura Std', 'Trebuchet MS', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Keep sizes / weights defined elsewhere; this ensures every textual element uses Futura */
body, p, a, button, input, textarea, .btn, .card, .service-card {
  font-family: 'Futura', 'Futura PT', 'Trebuchet MS', Arial, sans-serif;
  font-weight: 400;
}

/* UI elements slightly bolder */
.btn, .pill, .tag, .stat__num {
  font-weight: 600;
}

/* Ensure carousel title uses Futura (overrides previous serif) */
.carousel__title {
  font-family: 'Futura', 'Futura PT', 'Trebuchet MS', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Provide utility classes if you need explicit weight control */
.fw-400 { font-weight: 400 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

/* Minor spacing/tuning for Futura's metrics */
.logo__text { letter-spacing: 0.4px; }
h1 { line-height: 1.02; }

/* Dark site override: make the whole site background black and switch text to light */
:root{
  /* Colors (overrides where these were defined earlier) */
  --dark-bg: #000000;
  --light-bg: #000000;            /* site background -> black */
  --accent-cyan: #00d4ff;
  --accent-lime: #7dff00;
  --text-primary: #ffffff;        /* primary text becomes white */
  --text-secondary: rgba(255,255,255,0.72);
  --text-light: #ffffff;
  --overlay: rgba(0,0,0,0.45);

  /* keep spacing / typography tokens as-is (redeclare if present earlier) */
  --xs: 0.5rem;
  --sm: 1rem;
  --md: 2rem;
  --lg: 3rem;
  --xl: 4rem;
  --2xl: 6rem;

  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --body-size: 1rem;
  --small-size: 0.875rem;

  --container-max: 1400px;
  --radius: 12px;

  --fast: 150ms;
  --base: 300ms;
  --slow: 600ms;
}

/* Ensure HTML / BODY use the black background and white text */
html, body {
  background: var(--light-bg) !important;
  color: var(--text-primary) !important;
}

/* Make section backgrounds inherit (avoid leftover light backgrounds) */
.section,
.section--alt,
.container,
.main,
.header,
.footer {
  background: transparent;
  color: inherit;
}

/* If any element explicitly used the old light surface, force darker surface alternatives */
.card,
hero__card,
.service-card,
.carousel__card {
  /* keep cards light by default; change only if you want dark surfaces:
     background: #0f0f0f; color: var(--text-light);
     For now we'll keep existing card backgrounds so content remains readable. */
}

/* Small tweak: links and muted text on dark bg */
a { color: var(--accent-cyan); }
.muted { color: var(--text-secondary); }

/* Override: dark grey hero background and readable text */
.hero {
  /* keep existing spacing/layout but use a dark grey surface */
  padding: 6rem 0 3rem;
  display: flex;
  align-items: center;
  min-height: 56vh;
  background: linear-gradient(180deg, #0f1113 0%, #0b0d0f 100%) !important; /* dark grey */
  color: var(--text, #ffffff) !important;
}

/* hide any legacy hero background image */
.hero__bg { display: none !important; }
.hero__overlay { display: none !important; }

/* muted / subtitle on dark surface */
.hero .muted { color: rgba(255,255,255,0.72) !important; }

/* keep hero cards contrasting (light surface) and readable */
.hero__card {
  background: rgba(255,255,255,0.06) !important; /* subtle light card on dark hero */
  color: var(--text, #ffffff) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}

/* ensure CTAs remain visible */
.hero .btn, .hero__cta .btn--primary { background: var(--dark-bg, #000); color: #fff !important; }

/* Service card body: use dark text on the light card surfaces */
.service-card,
.service-card .service-card__body,
.service-card .service-card__body p,
.service-card .service-card__body .muted,
.service-card .service-card__body .bullets,
.service-card .service-card__body .bullets li {
  color: #0b1720 !important;
}

/* Ensure card headings are explicitly dark */
.service-card__body h3 {
  color: #0b1720 !important;
}

/* Keep CTA buttons contrast as designed */
.service-card .btn { color: #fff; }

/* Links inside cards use accent colour */
.service-card a { color: var(--accent-cyan) !important; }

/* Contact container: light-grey surface with readable dark text */
#contact .container {
  background: #f2f3f5;
  padding: clamp(1rem, 3vw, 2.5rem);
  border-radius: 12px;
  color: #0b1720; /* base text */
}

/* Ensure all text inside the contact area is dark for headings, paragraphs, labels, inputs, buttons, links */
#contact .container,
#contact .container * {
  color: #0b1720 !important;
}

/* Inputs / textarea: keep placeholder slightly muted but dark */
#contact .container input,
#contact .container textarea,
#contact .container select {
  color: #0b1720 !important;
  background: transparent;
}

/* Placeholder styling */
#contact .container ::placeholder {
  color: rgba(11,23,32,0.5);
  opacity: 1;
}

/* Buttons inside contact: keep original button contrast but ensure text readable */
#contact .container .btn {
  color: #fff !important;
}

/* Contact form + details: opaque light-grey surfaces with readable dark text */
#contact .form.card,
#contact .contact__side.card {
  background: rgba(242,243,245,0.96); /* opaque light-grey */
  color: #0b1720;
  border-radius: 12px;
  border: 1px solid rgba(11,23,32,0.06);
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  padding: 1.25rem;
}

/* Ensure inputs / textarea inside the form remain readable */
#contact .form.card input,
#contact .form.card textarea,
#contact .form.card label {
  color: #0b1720;
}

/* Slight spacing adjustment between form and aside on narrow screens */
@media (max-width: 768px) {
  #contact .form.card,
  #contact .contact__side.card {
    padding: 1rem;
    border-radius: 10px;
  }
}

/* Contact inputs: use black border and black-focused state (override purple) */
#contact .form input,
#contact .form textarea,
#contact .form select {
  border: 1px solid #0b1720 !important;   /* black/dark border */
  background: rgba(255,255,255,0.96);     /* keep lightish input surface inside contact */
  color: #0b1720 !important;
}

/* Replace purple focus ring with subtle dark ring */
#contact .form input:focus,
#contact .form textarea:focus,
#contact .form select:focus {
  border-color: #0b1720 !important;
  box-shadow: 0 0 0 4px rgba(11,23,32,0.06) !important;
  outline: none !important;
}

/* Send message button: black background, white text */
#contact .form button[type="submit"],
#contact .form .btn[type="submit"] {
  background: #0b1720 !important;
  color: #ffffff !important;
  border-color: #0b1720 !important;
  box-shadow: 0 8px 22px rgba(11,23,32,0.12);
}

/* Button hover */
#contact .form button[type="submit"]:hover,
#contact .form .btn[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(11,23,32,0.18);
}

/* Force Futura on service cards (override any serif fallback like Playfair/Times) */
.service-card,
.service-card__body,
.service-card__body h3,
.service-card__body p,
.service-card__body .bullets,
.service-card__body .bullets li {
  font-family: 'Futura', 'Futura PT', 'Futura Std', 'Trebuchet MS', Arial, sans-serif !important;
  font-weight: 400 !important;
  color: #0b1720 !important;
}

/* Make card headings use a stronger weight with Futura */
.service-card__body h3 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

/* Sticky header across the page until contact */
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.65); /* adjust as needed for contrast */
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* when Contact is reached we disable sticking so header sits in normal flow */
.header.header--unstuck {
  position: fixed !important;
  transform: none !important;
  background: inherit !important;
  box-shadow: none !important;
}

/* use the computed header height as safe spacing where needed */
body { padding-top: var(--header-height, 0); }

/* Contact nav pill: translucent white background with black text */
.nav__list a[href="#contact"] {
  background: rgba(255,255,255,0.90) !important;
  color: #000 !important;
  padding: .4rem .85rem !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

/* Hover / focus */
.nav__list a[href="#contact"]:hover,
.nav__list a[href="#contact"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2,6,23,0.12);
  text-decoration: none;
  color: #000 !important;
}

/* Ensure visibility on small screens if nav layout changes */
@media (max-width: 768px) {
  .nav__list a[href="#contact"] { background: rgba(255,255,255,0.92) !important; }
}

/* Logo sizing and alignment (adjust heights as needed) */
.logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo__img {
  height: 48px;         /* set desired height */
  width: auto;
  max-width: 200px;
  display: block;
}

/* Responsive: slightly smaller on mobile */
@media (max-width: 768px) {
  .logo__img { height: 36px; max-width: 140px; }
}
