/* =========================================================
   SMC — Soham Management Consultancy LLC
   Single stylesheet. Sections are marked with banner comments.
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  /* Brand */
  --orange:        #f2921d;
  --orange-dark:   #d77c10;
  --orange-glow:   #ffb347;
  --orange-tint:   #fdf1e1;

  /* Neutrals */
  --charcoal:      #1f1f1f;
  --muted:         #5c5c5c;
  --muted-light:   #8a8a8a;
  --border:        #ececec;
  --bg:            #ffffff;
  --bg-alt:        #fafafa;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* Layout */
  --container: 1140px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:    0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 40px rgba(0, 0, 0, 0.07);
  --shadow-orange: 0 6px 20px rgba(242, 146, 29, 0.28);

  /* Type */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Header height, used to offset anchors and the hero */
  --header-h: 76px;
}

/* ---------------------------------------------------------
   2. RESET / BASE
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0 0 var(--sp-4);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 var(--sp-4); max-width: 72ch; }

a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--orange); }

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

ul { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
li { margin-bottom: var(--sp-2); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  z-index: 999;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  color: #fff;
}

/* ---------------------------------------------------------
   3. LAYOUT HELPERS
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-9) 0;
}
.section--tight { padding: var(--sp-8) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--orange-tint); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}
.section-head p { color: var(--muted); }
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center p { margin-left: auto; margin-right: auto; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

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

/* ---------------------------------------------------------
   3b. MESH BACKDROPS
   Reusable versions of the hero glow, dialled down. Put
   .has-mesh on the section and a <div class="mesh mesh--x">
   as its first child.
   --------------------------------------------------------- */
.has-mesh {
  position: relative;
  overflow: hidden;
}
.has-mesh > .container {
  position: relative;
  z-index: 1;
}

.mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mesh--right {
  background:
    radial-gradient(40% 58% at 92% 6%, rgba(255, 179, 71, 0.22), transparent 68%),
    radial-gradient(46% 52% at 100% 92%, rgba(253, 241, 225, 0.85), transparent 72%);
}
.mesh--left {
  background:
    radial-gradient(38% 56% at 4% 12%, rgba(255, 179, 71, 0.18), transparent 68%),
    radial-gradient(48% 54% at -4% 88%, rgba(253, 241, 225, 0.9), transparent 72%);
}
.mesh--split {
  background:
    radial-gradient(34% 50% at 8% 0%, rgba(255, 179, 71, 0.16), transparent 66%),
    radial-gradient(36% 54% at 94% 96%, rgba(242, 146, 29, 0.10), transparent 70%);
}
.mesh--soft {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(253, 241, 225, 0.95), transparent 72%),
    radial-gradient(30% 44% at 88% 78%, rgba(255, 179, 71, 0.14), transparent 70%);
}

/* Faint lattice, used sparingly on top of a mesh */
.mesh-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(31, 31, 31, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 31, 31, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0%, transparent 32%, #000 78%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0%, transparent 32%, #000 78%);
}

/* Hairline that separates two mesh sections without a hard edge */
.rule-fade {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* ---------------------------------------------------------
   3c. SPLIT LAYOUT (text beside a visual)
   --------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-9); }
}

.split-text .lead { max-width: 46ch; }
.split-text .body-copy { max-width: 52ch; }

/* Visual panel */
.visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, #ffffff, var(--orange-tint));
  box-shadow: var(--shadow);
  padding: var(--sp-6);
  overflow: hidden;
}
.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(45% 55% at 88% 8%, rgba(255, 179, 71, 0.30), transparent 70%);
}
.visual svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-glow), var(--orange));
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--orange-dark);
  border-color: var(--orange);
}
.btn-secondary:hover {
  background: var(--orange-tint);
  color: var(--orange-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-row--center { justify-content: center; }

/* ---------------------------------------------------------
   5. HEADER + NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease,
              border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
/* Solid state: applied on scroll, and always on non-hero pages */
.site-header.is-solid,
body:not(.has-hero) .site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* --- Wordmark (placeholder for the supplied logo asset) --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--charcoal);
  flex-shrink: 0;
}
.logo:hover { color: var(--charcoal); }

.logo-mark {
  display: block;
  height: 40px;
  width: auto;
}

.logo-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  padding-left: var(--sp-3);
}
/* Hairline separating the mark from the company name */
.logo-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--border);
}
@media (max-width: 480px) {
  .logo-text { display: none; }
}

.footer-logo .logo-mark { height: 46px; }

/* --- Nav --- */
.nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; margin: 0; }

/* Services: a real link to services.html, with a separate caret button
   that opens the submenu. Clicking the word navigates; clicking the
   caret (or hovering, on desktop) opens the list. */
.nav-parent {
  display: flex;
  align-items: center;
}

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-parent .nav-link { padding-right: 4px; }

.nav-caret-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 10px 4px;
  background: none;
  border: 0;
  color: var(--charcoal);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease;
}
.nav-caret-btn:hover { color: var(--orange-dark); }
.nav-item--dropdown:hover .nav-link,
.nav-item--dropdown:hover .nav-caret-btn { color: var(--orange-dark); }

.nav-link:hover,
.nav-trigger:hover {
  color: var(--orange-dark);
  background: var(--orange-tint);
}
.nav-parent .nav-link:hover { background: none; }

.nav-link.is-active,
.nav-trigger.is-active {
  color: var(--orange-dark);
}
.nav-link.is-active::after,
.nav-trigger.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-glow), var(--orange));
}
/* The underline spans the link and caret as one unit */
.nav-parent .nav-link.is-active::after { right: 34px; }

.nav-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}
.nav-caret-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 288px;
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* Invisible bridge so the cursor can cross the gap without closing the menu */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--charcoal);
}
.nav-dropdown a:hover {
  background: var(--orange-tint);
  color: var(--orange-dark);
}
.nav-dropdown a.is-active {
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-weight: 700;
}

.header-cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* Mobile panel */
@media (max-width: 959px) {
  .nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: var(--sp-5);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 1.05rem;
    border-radius: 0;
  }
  .nav-parent { width: 100%; justify-content: space-between; }
  .nav-parent .nav-link { width: auto; padding-right: 4px; }
  .nav-caret-btn { padding: 16px 4px 16px 12px; }
  .nav-link:hover,
  .nav-trigger:hover { background: none; }
  .nav-link.is-active::after,
  .nav-trigger.is-active::after { display: none; }

  /* Accordion, not an overlay */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 var(--sp-3) var(--sp-3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .nav-dropdown::before { display: none; }
  .nav-item.is-open .nav-dropdown { max-height: 520px; }
  .nav-dropdown a { padding: 11px 10px; }

  .mobile-cta { display: block; margin-top: var(--sp-6); }
  .mobile-cta .btn { width: 100%; }
}
@media (min-width: 960px) {
  .mobile-cta { display: none; }
}

/* ---------------------------------------------------------
   6. HERO (homepage — full viewport)
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-8);
  background: var(--bg);
}

/* Warm mesh: two heavily feathered blooms, very low opacity */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 44% at 82% 12%, rgba(255, 179, 71, 0.30), transparent 70%),
    radial-gradient(52% 50% at 10% 90%, rgba(253, 241, 225, 0.95), transparent 72%),
    radial-gradient(38% 40% at 96% 82%, rgba(242, 146, 29, 0.10), transparent 70%);
  animation: heroDrift 34s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.5%, 1.5%, 0) scale(1.06); }
}

/* Faint lattice, masked out behind the headline */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(31, 31, 31, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 31, 31, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, transparent 0%, transparent 26%, #000 72%);
  mask-image: radial-gradient(circle at 50% 45%, transparent 0%, transparent 26%, #000 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-6);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--orange), var(--orange-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .btn-row { margin-top: var(--sp-6); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--muted-light);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--border), var(--orange));
  animation: cueSlide 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueSlide {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
@media (max-width: 700px) {
  .scroll-cue { display: none; }
}

/* ---------------------------------------------------------
   7. PAGE HERO (inner pages)
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-8);
  background: var(--orange-tint);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 70% at 88% 10%, rgba(255, 179, 71, 0.35), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p { font-size: 1.15rem; margin-bottom: 0; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--orange-dark); }
.breadcrumb .sep { margin: 0 var(--sp-2); color: var(--muted-light); }

/* ---------------------------------------------------------
   8. MARQUEE BAND
   --------------------------------------------------------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6) 0;
  background: #fff;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 var(--sp-5);
}
.marquee-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: calc(var(--sp-5) + var(--sp-1));
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------
   9. CARDS
   --------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(242, 146, 29, 0.45);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: var(--sp-4); }
.card .card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--orange-dark);
}
.card-link:hover { color: var(--orange); }

/* Icon tile */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  margin-bottom: var(--sp-4);
  transition: background 0.22s ease;
}
.icon-tile svg { width: 22px; height: 22px; }
.card:hover .icon-tile {
  background: linear-gradient(135deg, var(--orange-tint), rgba(255, 179, 71, 0.42));
}

/* Numbered service card (homepage grid) */
.service-card .card-index {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted-light);
}

/* ---------------------------------------------------------
   10. TECHNOLOGY STACK
   --------------------------------------------------------- */
.stack-card { padding: var(--sp-6); }
.stack-card h3 { font-size: 1.08rem; margin-bottom: var(--sp-4); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li { margin: 0; }
.chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.stack-card:hover .chip {
  border-color: rgba(242, 146, 29, 0.30);
  background: #fff;
}

/* ---------------------------------------------------------
   11. APPROACH TIMELINE
   --------------------------------------------------------- */
.timeline {
  position: relative;
  margin-top: var(--sp-8);
  padding-left: 62px;
}
/* Static track */
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
/* Scroll-bound progress fill */
.timeline-progress {
  position: absolute;
  left: 23px;
  top: 12px;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--orange-glow), var(--orange));
  transition: height 0.12s linear;
}

.step {
  position: relative;
  padding-bottom: var(--sp-7);
  opacity: 0.45;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.step:last-child { padding-bottom: 0; }

.step-node {
  position: absolute;
  left: -62px;
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--muted-light);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.4s ease;
}

.step h3 { margin-bottom: var(--sp-2); font-size: 1.15rem; }
.step p { margin-bottom: 0; font-size: 0.97rem; }

/* Reached — stays filled, calm */
.step.is-done { opacity: 1; transform: translateY(0); }
.step.is-done .step-node {
  background: linear-gradient(135deg, var(--orange-glow), var(--orange));
  border-color: transparent;
  color: #fff;
}
/* Active — the one that pops */
.step.is-active .step-node {
  transform: scale(1.12);
  box-shadow: 0 0 0 8px rgba(242, 146, 29, 0.12);
}

/* Emphasis chips under the timeline */
.emphasis {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--border);
}
.emphasis li { margin: 0; }

@media (min-width: 860px) {
  .timeline { padding-left: 0; }
  .timeline::before,
  .timeline-progress { left: 50%; transform: translateX(-50%); }

  .step {
    width: 50%;
    padding-bottom: var(--sp-8);
  }
  .step:nth-child(odd) {
    padding-right: 62px;
    text-align: right;
  }
  .step:nth-child(odd) .step-node { left: auto; right: -24px; }
  .step:nth-child(even) {
    margin-left: 50%;
    padding-left: 62px;
  }
  .step:nth-child(even) .step-node { left: -24px; }
  .step:nth-child(odd) p { margin-left: auto; }
}

/* ---------------------------------------------------------
   12. LISTS: features, industries, deliverables
   --------------------------------------------------------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin: 0;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--orange-glow), var(--orange));
}
@media (min-width: 700px) {
  .feature-list--2col { grid-template-columns: repeat(2, 1fr); }
}

.deliverable {
  border-top: 1px solid var(--border);
  padding: var(--sp-5) 0;
  display: grid;
  gap: var(--sp-2);
}
.deliverable:last-child { border-bottom: 1px solid var(--border); }
.deliverable h4 { margin: 0; }
.deliverable p { margin: 0; color: var(--muted); font-size: 0.97rem; }

@media (min-width: 800px) {
  .deliverable {
    grid-template-columns: 280px 1fr;
    gap: var(--sp-6);
    align-items: start;
  }
}

.industry-card { padding: var(--sp-5) var(--sp-6); }
.industry-card h3 { font-size: 1.08rem; margin-bottom: var(--sp-2); }
.industry-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------------------------------------------------------
   14. CTA BAND
   --------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--orange-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-9) 0;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 80% at 85% 50%, rgba(255, 179, 71, 0.38), transparent 70%);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { margin: 0 auto var(--sp-6); }

/* ---------------------------------------------------------
   15. CONTACT
   --------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 940px) {
  .contact-layout { grid-template-columns: 1fr 1.15fr; align-items: start; }
}

.contact-block { margin-bottom: var(--sp-6); }
.contact-block h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.contact-block address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.75;
}

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) {
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 146, 29, 0.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .error {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }

/* reCAPTCHA widget. Google renders it in a fixed-width iframe (304px), so it
   is scaled down rather than allowed to overflow on narrow screens. */
.field--captcha { gap: 8px; }
.field--captcha .g-recaptcha {
  transform-origin: 0 0;
}
@media (max-width: 360px) {
  .field--captcha .g-recaptcha { transform: scale(0.88); }
  .field--captcha { margin-bottom: -30px; }
}

/* Hidden from people; only bots fill it in. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: var(--sp-4);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.form-status.is-success { color: #1e7d46; }
.form-status.is-error { color: #c0392b; }

button[disabled] { opacity: 0.6; cursor: default; }

.map-wrap {
  margin-top: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-5);
}
.footer-grid {
  display: grid;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { color: var(--muted); font-size: 0.94rem; }
.footer-col a:hover { color: var(--orange-dark); }
.footer-col p { font-size: 0.94rem; color: var(--muted); }
.footer-col address {
  font-style: normal;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.8;
}
.footer-logo { margin-bottom: var(--sp-4); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: 0.87rem;
  color: var(--muted-light);
}

/* ---------------------------------------------------------
   17. SCROLL REVEAL (shared)
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   18. REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .step { opacity: 1; transform: none; }
  .step .step-node {
    background: linear-gradient(135deg, var(--orange-glow), var(--orange));
    border-color: transparent;
    color: #fff;
  }
  .timeline-progress { height: 100% !important; }
  .marquee-track { animation: none; }
  .hero-glow { animation: none; }
}

/* ---------------------------------------------------------
   19. SCROLL PROGRESS BAR
   --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange-glow), var(--orange));
  z-index: 200;
  pointer-events: none;
}

/* ---------------------------------------------------------
   20. STAT STRIP
   --------------------------------------------------------- */
.stat-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: var(--sp-7) 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-4);
}
@media (min-width: 800px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-left: var(--sp-4);
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--orange-glow), var(--orange));
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  line-height: 1;
}
.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------------------------------------------------------
   21. OUR WORK CARDS
   --------------------------------------------------------- */
.work-card { padding: var(--sp-6); }
.work-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-tint);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  margin-bottom: var(--sp-4);
}
.work-card h3 { font-size: 1.15rem; }
.work-card p { margin-bottom: 0; }
/* Accent rule that draws in on hover */
.work-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--orange-glow), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s ease;
}
.work-card:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------
   23. STICKY ENQUIRY BUTTON
   --------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 700px) {
  .sticky-cta { right: var(--sp-4); bottom: var(--sp-4); }
  .sticky-cta .btn { padding: 12px 20px; font-size: 0.9rem; }
}

/* ---------------------------------------------------------
   24. MOTION REFINEMENTS
   --------------------------------------------------------- */
/* Illustrations drift slightly against the scroll direction */
.split-visual { will-change: transform; }

/* Cards lift a little further and cast a warmer shadow */
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Buttons nudge toward the cursor */
.btn { will-change: transform; }

/* Nav links get a growing underline on hover, not just a colour change */
@media (min-width: 960px) {
  .nav-link::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--orange-glow), var(--orange));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.24s ease;
  }
  .nav-link:hover::before { transform: scaleX(1); }
  .nav-link.is-active::before { display: none; }
}

/* Section headings get a short accent rule that draws in */
.section-head h2 { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .split-visual { transform: none !important; }
  .work-card::after { transform: scaleX(1); }
  .sticky-cta { transition: none; }
}
