/* Ascentra IT Services — brand colors sampled from the logo */
:root {
  --navy: #082040;
  --navy-deep: #05162c;
  --navy-soft: #143154;
  --teal: #08a0a0;
  --teal-ink: #067272;
  --teal-soft: #e7f6f6;
  --orange: #f08828;
  --orange-deep: #d87416;
  --orange-soft: #fff3e6;
  --ink: #082040;
  --muted: #5c6e82;
  --line: #e3eaf1;
  --paper: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 32, 64, 0.08);
  --header: 76px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --sy: 0;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 700;
  color: var(--navy);
}

p { margin-bottom: 0; }

a { color: var(--teal-ink); }

::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  z-index: 2000;
  text-decoration: none;
}

.skip-link:focus { top: 0.6rem; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--navy), var(--teal) 55%, var(--orange));
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(8, 32, 64, 0.05);
}

.site-header .navbar { padding-block: 0.85rem; }

.brand { padding: 0; margin-right: 1rem; }

.brand img { height: 46px; width: auto; }

.navbar-nav { gap: 0.15rem; }

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy) !important;
  letter-spacing: -0.01em;
  padding: 0.45rem 0.8rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link.active { color: var(--teal-ink) !important; }

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(8, 160, 160, 0.25); }

.nav-cta { margin-left: 0.8rem; white-space: nowrap; }

.btn-ascent,
.btn-ghost,
.btn-line-light {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ascent { background: var(--orange); color: var(--navy); }
.btn-ascent:hover { background: #ff9b3d; color: var(--navy); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(8, 32, 64, 0.18); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; transform: translateY(-2px); }

.btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-line-light:hover { background: #fff; color: var(--navy); }

.btn-ascent:active,
.btn-ghost:active,
.btn-line-light:active { transform: translateY(0); }

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 4rem;
  background:
    radial-gradient(820px 420px at 92% 8%, rgba(8, 160, 160, 0.16), transparent 60%),
    radial-gradient(640px 380px at 0% 90%, rgba(240, 136, 40, 0.14), transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  margin: 0.7rem 0 1rem;
  max-width: 12ch;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.35rem;
  color: var(--teal-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--navy-soft);
  font-weight: 600;
}

.hero-points i { color: var(--teal); margin-right: 0.25rem; }

.hero-art {
  position: relative;
  height: 520px;
  transform: translate3d(0, calc(var(--sy) * -0.04px), 0);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.blob-teal {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 8%;
  background: radial-gradient(circle, rgba(8, 160, 160, 0.35), rgba(8, 160, 160, 0.02) 70%);
  animation: drift 9s ease-in-out infinite;
}

.blob-orange {
  width: 180px;
  height: 180px;
  left: 6%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(240, 136, 40, 0.38), rgba(240, 136, 40, 0.02) 70%);
  animation: drift 11s ease-in-out infinite reverse;
}

.hero-mark {
  position: absolute;
  width: 280px;
  right: 0;
  bottom: 18px;
  opacity: 0.09;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite;
}

.tri {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid var(--teal);
  animation: floaty 6.5s ease-in-out infinite;
  z-index: 3;
}

.tri-a { top: 46px; left: 18%; border-bottom-color: var(--orange); animation-delay: -1s; }
.tri-b { top: 28%; right: 6%; transform: scale(0.7); }
.tri-c { bottom: 18%; left: 8%; border-bottom-color: var(--navy); transform: scale(0.55); animation-delay: -2s; }

.art-board,
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 234, 241, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.art-board {
  width: min(390px, 86%);
  left: 10%;
  top: 78px;
  border-radius: 24px;
  padding: 1.1rem 1.15rem 1.2rem;
  z-index: 2;
  animation: floaty 8s ease-in-out infinite;
}

.art-board-top,
.art-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dots { display: inline-flex; gap: 6px; }
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
  background: var(--line);
}
.dots i:nth-child(1) { background: var(--orange); }
.dots i:nth-child(2) { background: var(--teal); }
.dots i:nth-child(3) { background: var(--navy); opacity: 0.35; }

.art-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-ink);
  font-family: var(--font-display);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(8, 160, 160, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

.art-kicker {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 1rem 0 0.25rem;
  min-height: 2.2rem;
}

.art-note { color: var(--muted); min-height: 3.2rem; }

.art-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 132px;
  margin-top: 0.8rem;
  padding: 0.7rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 160, 160, 0.05) 100%),
    repeating-linear-gradient(to top, transparent, transparent 25px, rgba(8, 32, 64, 0.05) 26px);
}

.art-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--teal), #056868);
  transform-origin: bottom;
  transition: height 0.55s ease, background 0.45s ease;
}

.art-bars span:nth-child(3),
.art-bars span:nth-child(6) {
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
}

.hero-art[data-mode="mobile"] .art-bars span:nth-child(odd),
.hero-art[data-mode="logo"] .art-bars span:nth-child(2),
.hero-art[data-mode="hardware"] .art-bars span:nth-child(4) {
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
}

.float-card { z-index: 3; border-radius: 18px; }

.float-phone {
  width: 132px;
  right: 0;
  top: 36px;
  padding: 0.7rem;
  animation: floaty 7s ease-in-out infinite;
  animation-delay: -2s;
  transition: transform 0.45s ease;
}

.phone {
  height: 168px;
  border-radius: 16px;
  background: var(--navy);
  padding: 0.7rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phone span {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.phone span:nth-child(2) { width: 70%; background: var(--teal); }
.phone .phone-btn {
  margin-top: auto;
  height: 28px;
  border-radius: 9px;
  background: var(--orange);
}

.float-chip {
  left: 0;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  animation: floaty 9s ease-in-out infinite;
  animation-delay: -3s;
}

.float-chip i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.hero-art[data-mode="mobile"] .float-phone { transform: translateY(-8px) scale(1.06); }
.hero-art[data-mode="hardware"] .float-chip { outline: 2px solid var(--orange); }

/* Marquee */
.marquee {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.95rem 0;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.marquee li::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--orange);
}

/* Sections */
.section { padding: clamp(4.2rem, 8vw, 6.5rem) 0; }

.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.3rem 0 0.8rem; }
.section-head .lede { font-size: 1.1rem; }

.paper { background: var(--paper); }

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  padding: 1.4rem 1.35rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.service-card:hover::before { transform: scaleX(1); }

.service-top { display: flex; align-items: center; justify-content: space-between; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 1.3rem;
}

.service-card:nth-child(3n) .service-icon,
.service-card:nth-child(3n-1) .service-icon {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.service-index {
  font-family: var(--font-display);
  color: rgba(8, 32, 64, 0.28);
  font-weight: 700;
}

.service-card h3 { margin: 0.3rem 0 0; font-size: 1.35rem; }
.service-card p { color: var(--muted); flex: 1; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

.text-link i { transition: transform 0.2s ease; }
.service-card:hover .text-link i { transform: translateX(4px); }

/* Scroll story */
.story { background: linear-gradient(180deg, var(--paper), #fff 18%); }

.story-layout {
  display: grid;
  gap: 1.5rem;
}

.story-block {
  padding: 1.6rem 0;
  opacity: 0.42;
  transition: opacity 0.4s ease;
}

.story-block.is-active { opacity: 1; }

.story-block h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.2rem 0 0.7rem; }

.points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.points li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--navy-soft);
}

.points i { color: var(--orange-deep); margin-top: 0.2rem; }

.story-stage { position: relative; min-height: 460px; }

.story-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.story-visual.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.visual-frame {
  height: 100%;
  min-height: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.visual-frame svg { width: 100%; height: auto; flex: 1; }

.story-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.story-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: var(--line);
  padding: 0;
}

.story-dots button.is-active { background: var(--navy); width: 46px; }

.chart-line,
.draw-path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.story-visual.is-active .chart-line,
.story-visual.is-active .draw-path { animation: draw 1.5s ease forwards; }

.vbar { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0.2); }
.story-visual.is-active .vbar { animation: grow 0.9s ease forwards; }
.story-visual.is-active .vbar:nth-child(2) { animation-delay: 0.08s; }
.story-visual.is-active .vbar:nth-child(3) { animation-delay: 0.16s; }
.story-visual.is-active .vbar:nth-child(4) { animation-delay: 0.24s; }

/* Why + process */
.band-navy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(8, 160, 160, 0.28), transparent 60%),
    radial-gradient(420px 240px at 0% 100%, rgba(240, 136, 40, 0.2), transparent 55%),
    var(--navy);
  color: #fff;
}

.band-navy h2,
.band-navy h3 { color: #fff; }

.band-navy .lede,
.why-item p { color: rgba(255, 255, 255, 0.78); }

.why-list { display: grid; gap: 1.1rem; }

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.why-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(240, 136, 40, 0.16);
  color: var(--orange);
  font-size: 1rem;
}

.process {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.process-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.process-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.process-item h3 { margin: 0.45rem 0; font-size: 1.35rem; }
.process-item p { color: var(--muted); }

.process-item::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -24px;
  width: 0;
  height: 0;
  border-left: 46px solid transparent;
  border-right: 46px solid transparent;
  border-bottom: 70px solid rgba(8, 160, 160, 0.1);
}

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.filter-btn.is-active,
.filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card.is-hidden { display: none; }

.work-visual { height: 168px; position: relative; overflow: hidden; }
.work-visual[data-kind="software"] { background: linear-gradient(145deg, #082040, #0c6e78); }
.work-visual[data-kind="mobile"] { background: linear-gradient(145deg, #083048, #08a0a0); }
.work-visual[data-kind="websites"] { background: linear-gradient(145deg, #103056, #f08828); }
.work-visual[data-kind="graphics"] { background: linear-gradient(160deg, #08a0a0, #082040 70%); }
.work-visual[data-kind="logo"] { background: linear-gradient(160deg, #082040, #f08828); }
.work-visual[data-kind="hardware"] { background: linear-gradient(160deg, #0b3a44, #082040 60%); }

.mini-ui {
  position: absolute;
  inset: 22px 22px 0 22px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px 14px 0 0;
  padding: 0.7rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.mini-ui .row-line,
.mini-ui .block {
  display: block;
  background: var(--line);
  border-radius: 6px;
  height: 8px;
  margin-bottom: 0.45rem;
}

.mini-ui .block {
  height: 46px;
  background: linear-gradient(90deg, var(--teal), rgba(240, 136, 40, 0.8));
  width: 46%;
  float: left;
  margin-right: 0.6rem;
}

.work-body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.work-body h3 { margin: 0; font-size: 1.28rem; }
.work-body p { color: var(--muted); }
.tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

/* Page hero */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(8, 160, 160, 0.14), transparent 60%),
    radial-gradient(420px 200px at 0% 100%, rgba(240, 136, 40, 0.12), transparent 60%),
    var(--paper);
}

.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 0.4rem 0 0.8rem; max-width: 16ch; }

.subnav {
  position: sticky;
  top: var(--header);
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.subnav .container {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.7rem;
  scrollbar-width: none;
}

.subnav a {
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.subnav a:hover { background: var(--teal-soft); color: var(--teal-ink); }

.service-block { padding: 3.2rem 0; border-bottom: 1px solid var(--line); }
.service-block h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0.25rem 0 0.7rem; }

.include-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.include-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.include-list i { color: var(--teal); margin-top: 0.15rem; }

.media-panel {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  background:
    radial-gradient(240px 160px at 80% 20%, rgba(240, 136, 40, 0.25), transparent 70%),
    linear-gradient(160deg, #082040, #0d4c56);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mp-window {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14%;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0.85rem;
  animation: floaty 8s ease-in-out infinite;
}

.mp-top { display: flex; gap: 6px; margin-bottom: 0.8rem; }
.mp-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.mp-top i:first-child { background: var(--orange); }
.mp-top i:nth-child(2) { background: var(--teal); }

.mp-grid { display: grid; grid-template-columns: 72px 1fr; gap: 0.6rem; height: calc(100% - 24px); }
.mp-side { background: var(--paper); border-radius: 12px; }
.mp-main { display: flex; flex-direction: column; gap: 0.45rem; }
.mp-main span { display: block; height: 10px; border-radius: 99px; background: var(--line); }
.mp-main span:first-child { width: 55%; background: var(--navy); }
.mp-chart {
  margin-top: auto;
  height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent, rgba(8, 160, 160, 0.18)),
    linear-gradient(135deg, transparent 40%, var(--teal) 40.5%, var(--teal) 43%, transparent 43.5%),
    repeating-linear-gradient(to top, transparent, transparent 22px, rgba(8, 32, 64, 0.06) 23px);
  position: relative;
}
.mp-chart::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid var(--orange);
  animation: floaty 3s ease-in-out infinite;
}

.media-panel[data-kind="mobile"] .mp-window {
  left: 50%;
  right: auto;
  width: 190px;
  transform: translateX(-50%);
  bottom: 8%;
  border-radius: 28px;
}
.media-panel[data-kind="mobile"] .mp-grid { grid-template-columns: 1fr; }
.media-panel[data-kind="mobile"] .mp-side { display: none; }

.media-panel[data-kind="graphics"] { background: linear-gradient(160deg, #08a0a0, #082040); }
.media-panel[data-kind="logo"] .mp-window { display: none; }
.media-panel[data-kind="logo"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/mark.png") center 54% / 180px no-repeat;
  animation: floaty 7s ease-in-out infinite;
}

.media-panel[data-kind="hardware"] .mp-window { top: auto; height: 210px; bottom: 18%; border-radius: 16px; }
.media-panel[data-kind="hardware"]::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 10%;
  height: 16px;
  background: #041422;
  border-radius: 6px;
}

/* About */
.value-grid, .engage-grid { display: grid; gap: 1rem; }
.value-card, .engage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem;
  height: 100%;
}
.value-card h3, .engage-card h3 { margin: 0.4rem 0; font-size: 1.3rem; }
.value-card p, .engage-card p { color: var(--muted); }
.value-card i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}

.mark-frame {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.mark-frame img { width: min(220px, 70%); }

.industry-row { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 0; list-style: none; }
.industry-row li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Contact */
.contact-card, .form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.8rem; }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--teal-ink); }
.contact-list i { color: var(--orange-deep); margin-right: 0.4rem; }

.form-control, .form-select {
  border-color: var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 160, 160, 0.18);
}

.form-label { font-weight: 700; color: var(--navy); font-size: 0.95rem; }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

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

.message-preview {
  white-space: pre-wrap;
  background: var(--paper);
  border-radius: 14px;
  padding: 0.9rem;
  color: var(--navy-soft);
  font-family: var(--font-body);
  margin: 0.8rem 0 1rem;
}

.accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.7rem;
  background: #fff;
}

.accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) { background: var(--teal-soft); color: var(--navy); }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(8, 160, 160, 0.2) !important; }

/* CTA + footer */
.cta-band { text-align: left; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; margin-bottom: 0.8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 3.2rem; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 0.9rem; }
.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 0.8rem;
}
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--teal-ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-bottom {
  margin-top: 2rem;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 30;
}

.back-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--teal-ink); }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(8, 160, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 160, 160, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleY(1); } }

@media (min-width: 768px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .value-grid, .engage-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .service-grid { grid-template-columns: 1fr 1fr 1fr; }
  .process { grid-template-columns: repeat(4, 1fr); }
  .story-layout { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 3rem; align-items: stretch; }
  .story-stage-col { height: 100%; }
  .story-stage { position: sticky; top: 104px; }
  .story-block { min-height: 72vh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 1.25rem; }
  .value-grid { grid-template-columns: repeat(4, 1fr); }
  .engage-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
  .hero-art { height: 430px; margin-top: 0.5rem; }
  .art-board { left: 4%; top: 70px; }
  .float-phone { right: 0; }
  .story-layout { display: flex; flex-direction: column; }
  .story-stage-col { order: -1; position: sticky; top: 68px; z-index: 5; align-self: stretch; background: linear-gradient(#fff, #fff 78%, rgba(255, 255, 255, 0)); padding-bottom: 0.4rem; }
  .story-stage { min-height: 250px; }
  .visual-frame { min-height: 230px; padding: 0.45rem 0.45rem 2.1rem; }
  .story-dots { bottom: 0.65rem; }
  .story-block { min-height: 0; padding: 1.5rem 0 2.2rem; opacity: 1; }
  .nav-cta { margin: 0.8rem 0 0.4rem; width: 100%; }
  .navbar-collapse { padding-bottom: 0.8rem; }
}

@media (max-width: 575.98px) {
  .hero { padding-top: 2rem; }
  .hero h1 { max-width: none; }
  .float-phone { display: none; }
  .art-board { width: 92%; }
  .hero-art { height: 390px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-art { transform: none; }
}
