/* =========================================================
   JISAN AHMED — DIGITAL MARKETING
   Main stylesheet | Responsive | Dark / Light
========================================================= */

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #edf2f8;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --text: #142238;
  --muted: #5e6f85; /* Made slightly darker for readability */
  --muted-2: #8b98a9;
  --line: #dfe7f0;
  --line-strong: #cbd7e5;
  --blue: #2878ed;
  --blue-dark: #145fc9;
  --blue-soft: #e9f2ff;
  --cyan: #38b8d9;
  --green: #18a77a;
  --shadow: 0 24px 70px rgba(29, 54, 86, .09);
  --shadow-small: 0 10px 30px rgba(29, 54, 86, .07);
  --radius: 22px;
  --radius-small: 14px;
  --header-height: 82px;
  --wrap: 1180px;
  --font: "Manrope", sans-serif;
  --display: "Sora", sans-serif;
  --mono: "DM Mono", monospace;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a111d;
  --bg-soft: #101b2b;
  --surface: #121f31;
  --surface-2: #17263a;
  --text: #edf4ff;
  --muted: #b1bfd2; /* Made slightly brighter for readability */
  --muted-2: #71839b;
  --line: #26384e;
  --line-strong: #344a63;
  --blue: #5b9cff;
  --blue-dark: #80b3ff;
  --blue-soft: #182f4e;
  --cyan: #4dc7e5;
  --green: #4bd1a2;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --shadow-small: 0 10px 30px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px; /* Base font size increased slightly */
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

body.modal-open { overflow: hidden; }

button, input, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

::selection { background: var(--blue); color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Entry and loader */

.dm-entry,
.dm-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background: #0b1728;
  color: #fff;
}

.dm-entry {
  z-index: 9999;
  pointer-events: none;
  transition: opacity .65s ease, visibility .65s ease;
}
.dm-entry.is-hidden { opacity: 0; visibility: hidden; }

.entry-content {
  width: min(360px, calc(100% - 48px));
  text-align: center;
}
.entry-mark {
  font: 800 34px var(--display);
  letter-spacing: -.06em;
}
.entry-mark span {
  color: #75aaff;
  font: 500 12px var(--mono);
  letter-spacing: .12em;
}
.entry-line {
  height: 2px;
  margin: 24px 0 16px;
  overflow: hidden;
  background: rgba(255,255,255,.15);
}
.entry-line span,
.loader-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2878ed, #4dc7e5);
  transform: scaleX(0);
  transform-origin: left;
  animation: loadLine 1.1s ease forwards;
}
.entry-content p,
.loader-caption {
  color: #8fa4c0;
  font: 10px var(--mono);
  letter-spacing: .13em;
}

.dm-loader {
  z-index: 9997;
  transition: opacity .5s ease, visibility .5s ease;
}
.dm-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-brand {
  margin-bottom: 20px;
  font: 800 54px var(--display);
  letter-spacing: -.08em;
}
.loader-brand span { color: #5b9cff; }
.loader-track {
  width: 150px;
  height: 3px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}
.loader-track span { animation-duration: 1.3s; }
.loader-caption { font-size: 9px; }

@keyframes loadLine {
  to { transform: scaleX(1); }
}

/* Header */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(20, 40, 70, .04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  font: 800 23px var(--display);
  letter-spacing: -.08em;
}
.brand-symbol span { color: #5b9cff; }
.brand-name {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 800 11px var(--display);
  letter-spacing: .08em;
  line-height: 1.35;
}
.brand-name small {
  margin-top: 4px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .13em;
}
.navigation {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2vw, 27px);
  margin-left: auto;
}
.dm-nav-link {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  transition: color .2s ease;
}
.dm-nav-link::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.dm-nav-link:hover,
.dm-nav-link.active { color: var(--text); }
.dm-nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: border .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle i { font-size: 13px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform .25s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Shared elements */

.section { padding-block: 75px; } /* Reduced from 112px */
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 35px; /* Reduced from 48px */
}
.section-kicker,
.micro-label {
  display: inline-block;
  color: var(--blue);
  font: 500 10px var(--mono);
  letter-spacing: .13em;
}
.section-top h2,
.estimator-copy h2,
.faq-intro h2,
.contact-content h2 {
  margin: 14px 0 0;
  font: 700 clamp(34px, 4.5vw, 54px)/1.14 var(--display);
  letter-spacing: -.055em;
}
.section-top > p {
  max-width: 420px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px; /* Better readability */
  font-weight: 500; /* Improved visibility */
  line-height: 1.9;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(40, 120, 237, .18);
}
.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 14px 30px rgba(40, 120, 237, .25);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.text-link span { color: var(--blue); font-size: 18px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, 3px); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 55px;
  min-height: 650px;
  padding-block: 50px 60px; /* Reduced vertical space */
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--muted);
  font: 500 9px var(--mono);
  letter-spacing: .1em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 15%, transparent);
  animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 15%, transparent);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 5%, transparent);
  }
}
.hero h1 {
  margin: 27px 0 22px;
  font: 800 clamp(46px, 6vw, 76px)/1.07 var(--display);
  letter-spacing: -.075em;
}
.hero h1 span {
  color: var(--blue);
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  max-width: 475px;
  margin: 0;
  color: var(--muted);
  font-size: 16px; /* Better readability */
  font-weight: 500; /* Improved visibility */
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.proof-item { display: flex; align-items: center; gap: 10px; }
.proof-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
}
.proof-item span:last-child { display: flex; flex-direction: column; }
.proof-item strong { font-size: 10px; }
.proof-item small { color: var(--muted); font-size: 9px; }

/* Dashboard */

.hero-visual { position: relative; min-width: 0; }
.dashboard-shell {
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dashboard-shell::before {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--blue-soft);
  opacity: .8;
  filter: blur(2px);
  content: "";
  pointer-events: none;
}
.dashboard-top,
.calculator-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dashboard-top h2,
.calculator-heading h3 {
  margin: 5px 0 0;
  font: 700 18px var(--display);
  letter-spacing: -.04em;
}
.live-indicator,
.calc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .07em;
}
.live-indicator i,
.calc-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.dashboard-tabs {
  display: flex;
  gap: 5px;
  margin-top: 26px;
  padding: 5px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.metric-tab {
  flex: 1;
  padding: 9px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.metric-tab.is-active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 3px 10px rgba(20, 40, 70, .07);
}
.chart-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 23px;
}
.chart-summary > div { display: flex; flex-direction: column; }
.chart-caption { color: var(--muted); font-size: 10px; }
.chart-summary strong {
  margin-top: 3px;
  font: 700 34px var(--display);
  letter-spacing: -.06em;
}
.chart-period { color: var(--muted-2); font: 9px var(--mono); }
.chart-period i { margin-left: 5px; }
.chart-wrap {
  position: relative;
  margin-top: 16px;
  padding-left: 36px;
}
.chart-y {
  position: absolute;
  top: 0;
  bottom: 23px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted-2);
  font: 9px var(--mono);
}
.campaign-chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid path { stroke: var(--line); stroke-dasharray: 4 6; fill: none; }
.chart-area { fill: url(#chartFill); transition: d .45s ease; }
.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d .45s ease;
}
#chartEnd { fill: var(--surface); stroke: var(--blue); stroke-width: 4; }
.chart-x {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font: 8px var(--mono);
}
.console-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.console-bottom > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.signal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
}
.console-bottom > div > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.console-bottom small { color: var(--muted); font-size: 8px; }
.console-bottom strong {
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-disclaimer {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}
.hero-index {
  margin-top: 15px;
  color: var(--muted-2);
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-align: right;
}

/* Train Marquee Effect */
.train-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 22px 0;
  background: var(--blue-soft);
  border-block: 1px solid var(--line);
  display: flex;
}
.train-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: trainScroll 25s linear infinite;
}
.train-marquee:hover .train-track {
  animation-play-state: paused;
}
.train-track span {
  font: 700 13px var(--display);
  color: var(--text);
  padding: 0 20px;
  letter-spacing: 0.05em;
}
.train-track .sep {
  color: var(--blue);
  font-size: 10px;
  padding: 0;
}
@keyframes trainScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Principles strip */
.signal-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.signal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
.strip-label,
.strip-note {
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .1em;
}
.signal-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  font: 700 13px var(--display);
}
.signal-items b { color: var(--blue); font-weight: 500; }
.strip-note { letter-spacing: 0; }

/* Capabilities */

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: start;
  gap: 28px;
}
.capability-list { display: grid; gap: 10px; }
.capability-card {
  display: grid;
  grid-template-columns: 35px 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.capability-card:hover {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  background: var(--surface-2);
  box-shadow: var(--shadow-small);
  transform: translateX(5px);
}
.cap-number { align-self: start; padding-top: 5px; color: var(--muted-2); font: 10px var(--mono); }
.cap-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
}
.cap-copy { display: flex; flex-direction: column; min-width: 0; }
.cap-copy strong { font: 700 14px var(--display); }
.cap-copy > span { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; }
.cap-copy em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--blue);
  font: 500 8px var(--mono);
  font-style: normal;
  letter-spacing: .08em;
}
.cap-copy em i { transition: transform .2s ease; }
.capability-card:hover .cap-copy em i { transform: translateX(4px); }
.cap-arrow { color: var(--muted-2); font-size: 12px; }

/* Growth panel */

.growth-panel {
  position: sticky;
  top: 110px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  overflow: hidden;
}
.growth-panel-head { display: flex; align-items: center; justify-content: space-between; }
.scope-cross { color: var(--blue); font-size: 20px; }
.scope-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin: 25px auto 30px;
}
.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--blue) 32%, transparent);
  border-radius: 50%;
  animation: orbitRotate 22s linear infinite;
}
.orbit-one { inset: 12px; border-style: dashed; }
.orbit-two { inset: 38px; animation-direction: reverse; animation-duration: 17s; }
.orbit-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 0 40px color-mix(in srgb, var(--blue) 13%, transparent);
}
.orbit-core i { font-size: 24px; }
.orbit-core span { margin-top: 6px; font: 500 8px/1.4 var(--mono); letter-spacing: .1em; text-align: center; }
.orbit-tag {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: 9px var(--mono);
  box-shadow: var(--shadow-small);
}
.tag-a { top: 7px; left: 50%; transform: translateX(-50%); }
.tag-b { right: -2px; bottom: 43px; }
.tag-c { bottom: 43px; left: -2px; }
@keyframes orbitRotate { to { transform: rotate(360deg); } }

.growth-panel h3 { margin: 0; font: 700 20px var(--display); letter-spacing: -.04em; }
.growth-panel > p { margin: 10px 0 22px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.85; }
.scope-rule { height: 1px; background: var(--line); }
.scope-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.scope-row:last-child { border: 0; padding-bottom: 0; }
.scope-row span:first-child { color: var(--blue); font: 10px var(--mono); }
.scope-row span:nth-child(2) { flex: 1; font-weight: 800; }
.scope-row i { color: var(--muted-2); font-size: 10px; }

/* Estimator */

.estimator-section {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}
.estimator-section::before {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 450px;
  height: 450px;
  border: 1px solid color-mix(in srgb, var(--blue) 12%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 45px color-mix(in srgb, var(--blue) 4%, transparent),
              0 0 0 90px color-mix(in srgb, var(--blue) 3%, transparent);
  content: "";
  pointer-events: none;
}
.estimator-layout {
  position: relative;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: start;
  gap: 75px;
}
.estimator-copy { position: sticky; top: 125px; }
.estimator-copy h2 { margin-top: 18px; }
.estimator-copy > p { max-width: 360px; margin: 20px 0; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.9; }
.estimator-warning {
  display: flex;
  gap: 12px;
  max-width: 380px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.estimator-warning i { margin-top: 3px; color: var(--blue); }
.calc-reset {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.calculator-card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.calculator-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.calculator-heading h3 { font-size: 21px; }
.calculator-inputs { display: grid; gap: 23px; padding: 25px 0; }
.range-field { min-width: 0; }
.range-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-heading label { color: var(--muted); font-size: 11px; font-weight: 700; }
.range-heading output { color: var(--blue); font: 700 13px var(--display); }
.range-field input[type="range"] {
  display: block;
  width: 100%;
  height: 5px;
  margin: 15px 0 8px;
  border-radius: 10px;
  background: var(--line-strong);
  accent-color: var(--blue);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.range-field input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 2px 7px rgba(0,0,0,.15);
  appearance: none;
  -webkit-appearance: none;
}
.range-field input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.range-limits { display: flex; justify-content: space-between; color: var(--muted-2); font: 9px var(--mono); }

.calculator-results {
  padding: 20px;
  border-radius: 15px;
  background: var(--bg-soft);
}
.results-heading { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 9px var(--mono); letter-spacing: .07em; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 17px; }
.result-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.result-item span { display: block; color: var(--muted); font-size: 9px; line-height: 1.5; }
.result-item strong { display: block; margin-top: 5px; font: 700 clamp(15px, 2vw, 20px) var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.roas-result {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.roas-result > div:first-child { display: flex; flex-direction: column; }
.roas-result span { color: var(--muted); font-size: 9px; }
.roas-result strong { color: var(--blue); font: 700 21px var(--display); }
.roas-meter { height: 8px; border-radius: 20px; background: var(--line); overflow: hidden; }
.roas-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .35s ease; }
.calculator-summary { margin: 14px 0 0; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.7; }

/* Work gallery */

.work-section { overflow: hidden; }
.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.dm-filter-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, border .2s ease;
}
.dm-filter-button:hover,
.dm-filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.dm-filter-button span { margin-left: 5px; opacity: .7; }
.work-count { color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.work-count strong { color: var(--blue); }

.work-grid {  
  display: grid;  
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));  
  gap: 20px;  
  align-items: start; /* Prevents cards from stretching unevenly */
}

.work-card {
  min-width: 0;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-sizing: border-box;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.work-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-small); }
.work-card.is-hidden { display: none; }

.work-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--bg-soft);
  overflow: hidden;
  cursor: zoom-in;
}

.work-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Fixed Aspect Ratios for Image Preview Areas */
.work-image.ratio-landscape { aspect-ratio: 16 / 10; }
.work-image.ratio-portrait { aspect-ratio: 4 / 5; }

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-image[data-fit="cover"] img { object-fit: cover; }
.work-card:hover .work-image img { transform: scale(1.035); }
.image-index {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  background: rgba(8, 19, 34, .72);
  color: #fff;
  font: 8px var(--mono);
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.image-open {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(8, 19, 34, .65);
  color: #fff;
  font-size: 11px;
}
.work-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 5px 0; }
.work-type { color: var(--blue); font: 9px var(--mono); letter-spacing: .1em; }
.work-info h3 { margin: 4px 0 0; font: 700 16px var(--display); letter-spacing: -.03em; }
.work-arrow { color: var(--muted-2); font-size: 18px; }
.work-card > p { margin: 9px 5px 6px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.8; }
.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
.work-foot a { color: var(--blue); font-weight: 800; }
.work-foot a i { margin-left: 7px; }

/* Process */

.process-section { background: var(--surface); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.process-step {
  position: relative;
  min-height: 250px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.process-step:hover { transform: translateY(-5px); border-color: var(--blue); }
.step-no { color: var(--blue); font: 11px var(--mono); }
.step-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 22px 0 17px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 16px;
}
.process-step h3 { margin: 0; font: 700 18px var(--display); }
.process-step p { margin: 8px 0 22px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.8; }
.step-output { color: var(--muted-2); font: 8px var(--mono); letter-spacing: .08em; }

/* Measurement */

.metric-board {
  padding: 10px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.metric-board-head,
.metric-row {
  display: grid;
  grid-template-columns: .55fr 1.5fr 1fr;
  align-items: center;
  gap: 20px;
}
.metric-board-head {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font: 9px var(--mono);
  letter-spacing: .08em;
}
.metric-row { min-height: 63px; border-bottom: 1px solid var(--line); }
.metric-row strong { color: var(--blue); font: 700 14px var(--display); }
.metric-row span { color: var(--text); font-size: 11px; font-weight: 500; }
.metric-row small { color: var(--muted); font-size: 10px; }
.metric-note {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 17px 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
}
.metric-note i { margin-top: 3px; color: var(--blue); }

/* FAQ */

.faq-section { background: var(--bg-soft); }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.faq-intro h2 { margin-top: 15px; }
.faq-intro p { max-width: 300px; margin-top: 17px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.9; }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list details:first-child { border-top: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font: 700 13px var(--display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue);
  font: 500 15px var(--font);
  transition: transform .2s ease, background .2s ease;
}
.faq-list details[open] summary span { transform: rotate(45deg); background: var(--blue-soft); }
.faq-list details p { max-width: 600px; margin: -4px 35px 20px 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.9; }

/* Contact */

.contact-section { padding: 80px 0; background: var(--bg); }
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .45fr;
  gap: 45px;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 23px;
  background: #101f34;
  color: #fff;
  overflow: hidden;
}
.contact-panel::before,
.contact-panel::after {
  position: absolute;
  border: 1px solid rgba(91,156,255,.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.contact-panel::before {
  top: -230px;
  right: -90px;
  width: 500px;
  height: 500px;
  box-shadow: 0 0 0 50px rgba(91,156,255,.04), 0 0 0 100px rgba(91,156,255,.03);
}
.contact-panel::after {
  right: 90px;
  bottom: -270px;
  width: 370px;
  height: 370px;
}
.contact-stamp {
  position: absolute;
  top: 27px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9eb4d0;
  font: 9px var(--mono);
  letter-spacing: .1em;
}
.contact-stamp i { color: #68a5ff; }
.contact-content { position: relative; z-index: 1; }
.contact-content .section-kicker { color: #76aaff; }
.contact-content h2 { margin-top: 16px; font-size: clamp(36px, 5vw, 57px); }
.contact-content > p { max-width: 520px; margin: 18px 0 25px; color: #b0bfd2; font-size: 13px; line-height: 1.9; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.contact-email { color: #c8d8ec; font-size: 11px; font-weight: 700; }
.contact-email i { margin-left: 5px; color: #76aaff; font-size: 10px; }
.contact-side {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}
.contact-side > span { display: block; margin-bottom: 15px; color: #83a6d0; font: 9px var(--mono); letter-spacing: .1em; }
.contact-side div { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #d8e4f3; font-size: 10px; }
.contact-side i { color: #69cba8; font-size: 10px; }

/* Footer */

.site-footer { padding: 35px 0 30px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.footer-main > p { margin: 0; color: var(--muted); font-size: 11px; }
.back-top { color: var(--blue); font-size: 10px; font-weight: 800; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  color: var(--muted-2);
  font-size: 10px;
}
/* Highlighted Main Portfolio Link in Footer */
.main-portfolio-btn { 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff !important;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 5px 15px rgba(40, 120, 237, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.main-portfolio-btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 120, 237, 0.4);
}

.backtop-float {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.backtop-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Modals */

.modal-backdrop {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 12, 24, .72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 850px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
  overflow-y: auto;
  transform: translateY(20px) scale(.985);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal-backdrop.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close,
.image-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.modal-close:hover,
.image-modal-close:hover { background: var(--blue); color: #fff; }
.modal-topline { display: flex; justify-content: space-between; gap: 20px; padding-right: 45px; color: var(--blue); font: 9px var(--mono); letter-spacing: .1em; }
.modal-index { color: var(--muted-2); }
.service-modal-heading { display: flex; align-items: center; gap: 17px; margin-top: 25px; }
.service-modal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 23px;
}
.service-modal-heading h2 { margin: 5px 0 0; font: 700 clamp(22px, 4vw, 32px) var(--display); letter-spacing: -.05em; }
.service-modal-description { margin: 20px 0 25px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.9; }
.service-modal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 27px; }
.service-modal-columns > div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.service-modal-columns ul,
.service-modal-columns ol { display: grid; gap: 10px; margin: 15px 0 0; padding-left: 17px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.7; }
.service-modal-columns li::marker { color: var(--blue); }
.service-modal .button { width: fit-content; }

.image-modal-panel { width: min(1000px, 100%); }
.image-modal-heading { padding-right: 45px; }
.image-modal-heading h2 { margin: 5px 0 20px; font: 700 22px var(--display); }
.image-preview-stage {
  display: grid;
  place-items: center;
  min-height: 220px;
  max-height: 65vh;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}
.image-preview-stage img { max-width: 100%; max-height: 62vh; width: auto; height: auto; object-fit: contain; }

/* Reveal animation */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */

@media (max-width: 1050px) {
  .navigation { gap: 13px; }
  .dm-nav-link { font-size: 10px; }
  .nav-cta { padding: 10px 11px; font-size: 10px; }
  .hero { gap: 35px; }
  .hero-proof { gap: 13px; }
  .proof-item { gap: 7px; }
  .capability-layout { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; }
  .estimator-layout { gap: 40px; }
}

@media (max-width: 850px) {
  :root { --header-height: 72px; }
  .wrap { width: min(var(--wrap), calc(100% - 42px)); }
  .menu-toggle { display: block; }
  .navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 21px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-small);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  .navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .dm-nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .dm-nav-link::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 13px; padding: 13px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 60px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { width: min(680px, 100%); margin-inline: auto; }
  .hero h1 { font-size: clamp(50px, 9vw, 75px); }
  .capability-layout { grid-template-columns: 1fr; }
  .growth-panel { position: relative; top: auto; }
  .scope-orbit { margin-block: 18px 25px; }
  .estimator-layout { grid-template-columns: 1fr; gap: 30px; }
  .estimator-copy { position: relative; top: auto; }
  .estimator-copy h2 br { display: none; }
  .estimator-copy > p { max-width: 600px; }
  .estimator-warning { max-width: 600px; }
  .work-grid { gap: 13px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro h2 br { display: none; }
  .faq-intro p { max-width: 550px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 34px); }
  .section { padding-block: 50px; }
  .section-top { display: block; margin-bottom: 30px; }
  .section-top h2,
  .estimator-copy h2,
  .faq-intro h2 { font-size: 37px; }
  .section-top > p { margin-top: 15px; font-size: 13px; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-name { font-size: 10px; }
  .theme-toggle { width: 39px; height: 39px; justify-content: center; padding: 0; }
  .theme-toggle-label { display: none; }
  .header-tools { gap: 7px; }
  .hero { min-height: 0; padding-block: 50px 45px; gap: 38px; }
  .hero h1 { margin-top: 22px; font-size: clamp(43px, 12vw, 60px); }
  .hero-lede { font-size: 13px; }
  .hero-actions { gap: 17px; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
  .proof-item:last-child { grid-column: 1 / -1; }
  .dashboard-shell { padding: 17px; border-radius: 17px; }
  .dashboard-top h2 { font-size: 16px; }
  .live-indicator { font-size: 8px; }
  .chart-summary strong { font-size: 30px; }
  .console-bottom { gap: 7px; }
  .console-bottom > div { gap: 5px; }
  .signal-icon { flex-basis: 25px; width: 25px; height: 25px; font-size: 9px; }
  .console-bottom small { font-size: 7px; }
  .console-bottom strong { font-size: 8px; }
  .signal-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding-block: 18px; }
  .signal-items { gap: 9px; font-size: 11px; }
  .strip-note { font-size: 8px; }
  .capability-card { grid-template-columns: 24px 40px minmax(0, 1fr) 15px; gap: 9px; padding: 14px 11px; }
  .cap-icon { width: 38px; height: 38px; font-size: 15px; }
  .cap-copy strong { font-size: 12px; }
  .cap-copy > span { font-size: 10px; }
  .cap-copy em { font-size: 7px; }
  .cap-number { font-size: 8px; }
  .growth-panel { padding: 20px; }
  .calculator-card { padding: 18px; }
  .calculator-heading h3 { font-size: 18px; }
  .calc-status { font-size: 8px; }
  .calculator-results { padding: 13px; }
  .results-heading { font-size: 7px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .result-item { padding: 11px; }
  .result-item strong { font-size: 18px; }
  .roas-result { grid-template-columns: 100px 1fr; gap: 10px; }
  .work-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-group { gap: 6px; }
  .dm-filter-button { padding: 8px 10px; font-size: 9px; }
  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .work-card { padding: 10px; }
  .work-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .process-grid { gap: 9px; }
  .process-step { min-height: 230px; padding: 16px; }
  .step-symbol { width: 38px; height: 38px; margin: 17px 0 13px; }
  .process-step h3 { font-size: 16px; }
  .process-step p { font-size: 10px; }
  .metric-board { padding: 5px 13px; }
  .metric-board-head,
  .metric-row { grid-template-columns: .45fr 1.4fr; gap: 10px; }
  .metric-board-head span:last-child { display: none; }
  .metric-row { padding-block: 10px; }
  .metric-row small { grid-column: 2; margin-top: -10px; font-size: 9px; }
  .metric-row span { font-size: 10px; }
  .metric-row strong { font-size: 12px; }
  .faq-list summary { font-size: 11px; }
  .contact-section { padding: 50px 0; }
  .contact-panel { grid-template-columns: 1fr; gap: 25px; padding: 28px 22px; border-radius: 17px; }
  .contact-stamp { position: static; margin-bottom: 7px; font-size: 8px; }
  .contact-content h2 { font-size: 39px; }
  .contact-content > p { font-size: 12px; }
  .contact-side { padding: 16px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 13px; }
  .footer-main > p { font-size: 10px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .backtop-float { right: 15px; bottom: 15px; width: 39px; height: 39px; }
  .modal-backdrop { padding: 12px; }
  .modal-panel { max-height: 92vh; padding: 22px 17px; border-radius: 15px; }
  .service-modal-columns { grid-template-columns: 1fr; gap: 12px; }
  .service-modal-heading { gap: 12px; }
  .service-modal-icon { flex-basis: 47px; width: 47px; height: 47px; font-size: 19px; }
  .service-modal-heading h2 { font-size: 22px; }
  .image-preview-stage { min-height: 160px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 41px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .console-bottom { grid-template-columns: 1fr; }
  .console-bottom > div { gap: 9px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; }
  .process-step p { margin-bottom: 15px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

```css
/* =========================================
   PORTFOLIO STATISTICS
   Theme-matched with Digital Marketing UI
========================================= */

.portfolio-stats {
    width: 100%;
    padding: 35px 0;
}

.stats-container {
    width: min(var(--wrap), calc(100% - 64px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================
   STAT CARD
========================================= */

.stat-card {
    position: relative;
    min-width: 0;
    padding: 30px 20px;

    text-align: center;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow-small);

    overflow: hidden;

    transition:
        transform .35s cubic-bezier(.2,.7,.2,1),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

/* Subtle blue atmosphere */

.stat-card::before {
    position: absolute;
    top: -70px;
    right: -60px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background: var(--blue);
    opacity: .045;

    filter: blur(25px);

    content: "";
    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);

    border-color: color-mix(
        in srgb,
        var(--blue) 45%,
        var(--line)
    );

    box-shadow:
        0 16px 38px color-mix(
            in srgb,
            var(--blue) 10%,
            transparent
        );
}

.stat-card:hover::before {
    opacity: .10;
    transform: scale(1.15);
}

/* =========================================
   ANIMATED NUMBER
========================================= */

.stat-number,
.stat-suffix {
    position: relative;
    z-index: 1;

    display: inline-block;

    font-family: var(--display);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: -.055em;

    color: var(--blue);

    text-shadow:
        0 4px 18px color-mix(
            in srgb,
            var(--blue) 12%,
            transparent
        );
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

/* =========================================
   STAT LABEL
========================================= */

.stat-label {
    position: relative;
    z-index: 1;

    display: block;

    margin-top: 12px;
    margin-bottom: 8px;

    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: -.02em;

    color: var(--text);
}

/* =========================================
   DESCRIPTION
========================================= */

.stat-card p {
    position: relative;
    z-index: 1;

    margin: 0;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.75;

    color: var(--muted);
}

/* =========================================
   DARK THEME
========================================= */

html[data-theme="dark"] .stat-card {
    background: var(--surface);

    border-color: var(--line);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .stat-card:hover {
    border-color: color-mix(
        in srgb,
        var(--blue) 48%,
        var(--line)
    );

    background: var(--surface-2);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, .28),
        0 0 30px color-mix(
            in srgb,
            var(--blue) 7%,
            transparent
        );
}

html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .stat-suffix {
    color: var(--blue);
}

/* =========================================
   LIGHT THEME
========================================= */

html[data-theme="light"] .stat-card {
    background: var(--surface);

    border-color: var(--line);

    box-shadow:
        0 10px 30px rgba(29, 54, 86, .06);
}

html[data-theme="light"] .stat-card:hover {
    border-color: color-mix(
        in srgb,
        var(--blue) 42%,
        var(--line)
    );

    background: var(--surface-2);

    box-shadow:
        0 16px 38px rgba(40, 120, 237, .10);
}

html[data-theme="light"] .stat-number,
html[data-theme="light"] .stat-suffix {
    color: var(--blue-dark);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .portfolio-stats {
        padding: 28px 0;
    }

    .stats-container {
        width: calc(100% - 34px);
        gap: 12px;
    }

    .stat-card {
        padding: 23px 12px;
        border-radius: 14px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 32px;
    }

    .stat-label {
        margin-top: 10px;
        font-size: 12px;
    }

    .stat-card p {
        font-size: 10px;
        line-height: 1.65;
    }

}

/* =========================================
   VERY SMALL DEVICES
========================================= */

@media (max-width: 380px) {

    .stats-container {
        gap: 9px;
    }

    .stat-card {
        padding: 20px 9px;
        border-radius: 12px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 29px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-card p {
        font-size: 9px;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .stat-card,
    .stat-card::before {
        transition: none;
    }

    .stat-card:hover {
        transform: none;
    }

}

/* =========================================
   PORTFOLIO STATISTICS
========================================= */

.portfolio-stats {
    width: 100%;
    padding: 35px 5%;
}

.stats-container {
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;

    background: var(--stats-card-bg, #171a21);
    border: 1px solid var(--stats-card-border, #343945);

    box-shadow: var(--stats-card-shadow, 0 8px 25px rgba(0,0,0,.12));

    transition: transform .35s ease, border-color .35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color, #d4af37);
}

/* Animated Number */

.stat-number,
.stat-suffix {
    display: inline-block;

    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;

    color: var(--stats-number-color, var(--accent-color, #d4af37));
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    color: var(--stats-heading-color, #ffffff);
}

.stat-card p {
    margin: 0;

    font-size: 12px;
    line-height: 1.7;

    color: var(--stats-description-color, #b8bec9);
}

/* DARK THEME */

[data-theme="dark"] .stat-card,
.dark-theme .stat-card {
    --stats-card-bg: #171a21;
    --stats-card-border: rgba(255,255,255,.10);
    --stats-card-shadow: 0 8px 25px rgba(0,0,0,.20);

    --stats-number-color: var(--accent-color, #d4af37);
    --stats-heading-color: #f5f6f8;
    --stats-description-color: #b8bec9;
}

/* LIGHT THEME */

[data-theme="light"] .stat-card,
.light-theme .stat-card {
    --stats-card-bg: #ffffff;
    --stats-card-border: #e2e5eb;
    --stats-card-shadow: 0 8px 25px rgba(25,35,50,.07);

    --stats-number-color: #b8860b;
    --stats-heading-color: #172033;
    --stats-description-color: #596579;
}

/* TABLET */

@media (max-width: 900px) {
    .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .portfolio-stats {
        padding: 25px 5%;
    }

    .stats-container {
        gap: 12px;
    }

    .stat-card {
        padding: 23px 12px;
        border-radius: 13px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }

    .stat-card p {
        font-size: 11px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .stat-card {
        transition: none;
    }

    .stat-card:hover {
        transform: none;
    }
}

/* =========================================================
   FEATURED PROJECTS
   ALL WORK = INFINITE HORIZONTAL TRAIN
   STRATEGY = SQUARE GRID
   OTHER FILTERS = ORIGINAL GRID
========================================================= */

/* ---------- ALL WORK TRAIN MODE ---------- */

#dmWorkGrid.is-all-train {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content;
    max-width: none !important;
    gap: 22px;
    grid-template-columns: none !important;

    animation: projectInfiniteTrain 150s linear infinite;

    will-change: transform;
    padding: 12px 0 24px;
}

/* Train cards */

#dmWorkGrid.is-all-train .work-card {
    flex: 0 0 340px !important;
    width: 340px !important;
    min-width: 340px;
    max-width: 340px;

    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
    transform: none !important;
}

/* Image sizing */

#dmWorkGrid.is-all-train .work-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
}

/* Image animation */

#dmWorkGrid.is-all-train .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .6s ease;
}

#dmWorkGrid.is-all-train .work-card:hover .work-image img {
    transform: scale(1.055);
}

/* Smooth continuous movement */

@keyframes projectInfiniteTrain {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover */

#dmWorkGrid.is-all-train:hover {
    animation-play-state: paused;
}

/* Hide duplicated card from accessibility tree visually */

#dmWorkGrid .train-clone {
    pointer-events: auto;
}

/* ---------- STRATEGY SQUARE GRID MODE ---------- */

#dmWorkGrid.is-strategy-view {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 28px;
    width: 100%;
    max-width: 100%;

    animation: none !important;
    transform: none !important;
}

/* Strategy card */

#dmWorkGrid.is-strategy-view .work-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: column;

    opacity: 1 !important;
    transform: none !important;

    animation: strategyCardIn .45s ease both;
}

/* Square image */

#dmWorkGrid.is-strategy-view .work-image {
    width: 100%;
    aspect-ratio: 1 / 1 !important;

    overflow: hidden;
    border-radius: 14px;
}

#dmWorkGrid.is-strategy-view .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .5s ease;
}

#dmWorkGrid.is-strategy-view .work-card:hover .work-image img {
    transform: scale(1.045);
}

/* Strategy card entrance */

@keyframes strategyCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- ORIGINAL GRID MODE ---------- */

#dmWorkGrid.is-normal-view {
    animation: none !important;
    transform: none !important;
}

#dmWorkGrid.is-normal-view .work-card {
    animation: strategyCardIn .35s ease both;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {

    #dmWorkGrid.is-strategy-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    #dmWorkGrid.is-all-train .work-card {
        flex-basis: 300px !important;
        width: 300px !important;
        min-width: 300px;
    }

}

@media (max-width: 600px) {

    #dmWorkGrid.is-strategy-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 13px;
    }

    #dmWorkGrid.is-strategy-view .work-image {
        border-radius: 10px;
    }

    #dmWorkGrid.is-strategy-view .work-info h3 {
        font-size: 13px;
    }

    #dmWorkGrid.is-strategy-view .work-card p {
        font-size: 11px;
        line-height: 1.6;
    }

    #dmWorkGrid.is-all-train {
        gap: 14px;
        padding-bottom: 18px;
    }

    #dmWorkGrid.is-all-train .work-card {
        flex-basis: 255px !important;
        width: 255px !important;
        min-width: 255px;
    }

}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {

    #dmWorkGrid.is-all-train {
        animation: none !important;
    }

    #dmWorkGrid.is-strategy-view .work-card,
    #dmWorkGrid.is-normal-view .work-card {
        animation: none !important;
    }

}
