html {
  overflow-x: hidden;
  max-width: 100%;
}
/* 3A Design Solutions — Main Stylesheet */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --red: #c8181e;
  --red-d: #9e1218;
  --red-l: #e03030;
  --ink: #06050a;
  --ink2: #0d0b12;
  --ink3: #141220;
  --ink4: #1c192a;
  --chalk: #7889f9;
  --mid: #6e6880;
  --faint: #3a3650;
  --rule: #1e1c2e;
  --gold: #c9a84c;
  --dp: "Cormorant Garamond", Georgia, serif;
  --ss: "Outfit", sans-serif;
  --ww: "Bebas Neue", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--ss);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--ink2);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 2px;
}
::selection {
  background: rgba(200, 24, 30, 0.3);
  color: var(--chalk);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* pages */

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 72px;
  transition:
    background 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 5, 10, 0.92);
  backdrop-filter: blur(24px);
  border-bottom-color: var(--rule);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--dp);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-logo-sub {
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid);
}
.nav-links {
  display: flex;
  gap: 0;
}
.nav-link {
  padding: 0 1.1rem;
  height: 72px;
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--chalk);
}
.nav-link.active {
  border-bottom-color: var(--red);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: var(--red);
  color: var(--chalk);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}
.nav-cta:hover {
  background: var(--red-l);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--chalk);
  transition: all 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--ink2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mob-nav.open {
  transform: translateX(0);
}
.mob-link {
  font-family: var(--dp);
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(242, 238, 248, 0.35);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: color 0.2s;
  display: block;
}
.mob-link:hover {
  color: var(--chalk);
}
.mob-cta {
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--chalk);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
}

/* layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}
.container-wide {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 3rem;
}
.section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.section-sm {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--ink2);
}

/* type */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.eyebrow-c {
  justify-content: center;
}
h1.display {
  font-family: var(--dp);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--chalk);
}
h2.display {
  font-family: var(--dp);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--chalk);
}
em.accent {
  font-style: italic;
  color: var(--red);
}
.body-lg {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(242, 238, 248, 0.45);
  line-height: 1.8;
}
.body-md {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(242, 238, 248, 0.45);
  line-height: 1.85;
}

/* buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.2rem;
  background: var(--red);
  color: var(--chalk);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    gap 0.25s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.btn-primary:hover {
  background: var(--red-l);
  gap: 0.95rem;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(242, 238, 248, 0.18);
  color: var(--chalk);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    gap 0.25s;
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  gap: 0.95rem;
}

/* dividers */
.divider-red {
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
}

/* ticker */
.ticker {
  background: var(--red);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 32s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  font-family: var(--ww);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 238, 248, 0.8);
}
.ticker-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(242, 238, 248, 0.3);
  flex-shrink: 0;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 54%;
  overflow: hidden;
}
.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}
.hero-bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    rgba(6, 5, 10, 0.5) 45%,
    rgba(6, 5, 10, 0.18) 100%
  );
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 24, 30, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 24, 30, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 70% 70% at 30% 50%,
    black 20%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 7rem;
  padding-top: 11rem;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}
.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.5s ease-in-out infinite;
}
.kicker-text {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-h1 {
  animation: fadeUp 0.9s var(--ease) 0.45s both;
}
.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.8s var(--ease) 0.65s both;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: 0.92rem;
  color: rgba(242, 238, 248, 0.45);
  line-height: 1.75;
  max-width: 400px;
}
.hero-cta-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.hero-stats-bar {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--rule);
  background: rgba(6, 5, 10, 0.82);
  backdrop-filter: blur(16px);
  animation: fadeUp 0.7s var(--ease) 0.9s both;
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.hero-stat {
  padding: 1.5rem 2rem 1.5rem 0;
  border-right: 1px solid var(--rule);
  margin-right: 2rem;
}
.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.stat-val {
  font-family: var(--dp);
  font-size: 2rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1;
}
.stat-val em {
  color: var(--red);
  font-style: normal;
}
.stat-lbl {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 238, 248, 0.28);
  margin-top: 0.3rem;
}
.hero-scroll {
  position: absolute;
  bottom: 8.5rem;
  right: 3.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s var(--ease) 1.3s both;
}
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(200, 24, 30, 0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-text {
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(242, 238, 248, 0.22);
  writing-mode: vertical-rl;
}

/* keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.78);
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(0.55);
  }
}

/* about preview */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.img-col {
  position: relative;
  overflow: hidden;
}
.img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.img-col:hover img {
  transform: scale(1.04);
}
.img-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  background: var(--red);
  padding: 1.5rem 2rem;
  z-index: 2;
}
.ib-val {
  font-family: var(--dp);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1;
}
.ib-lbl {
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 248, 0.62);
  margin-top: 0.3rem;
}
.about-content {
  padding: 5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-quote {
  font-family: var(--dp);
  font-style: italic;
  font-size: 1.22rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(242, 238, 248, 0.72);
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
}
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.cert-tag {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.26rem 0.72rem;
  border: 1px solid rgba(200, 24, 30, 0.35);
  color: var(--red);
  background: rgba(200, 24, 30, 0.07);
}

/* services grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
}
.svc-card {
  background: var(--ink);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover {
  background: var(--ink3);
}
.svc-card:hover::after {
  transform: scaleX(1);
}
.svc-num {
  font-family: var(--ww);
  font-size: 3.5rem;
  color: rgba(200, 24, 30, 0.07);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.svc-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.svc-title {
  font-family: var(--dp);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--chalk);
  margin-bottom: 0.6rem;
}
.svc-body {
  font-size: 0.76rem;
  color: var(--mid);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1.25rem;
}
.svc-arrow {
  color: var(--red);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
  align-self: flex-start;
  margin-top: auto;
}
.svc-card:hover .svc-arrow {
  transform: translateX(5px);
}

/* projects grid */
.proj-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 380px 280px;
  grid-auto-rows: 0;
  overflow: hidden;
  gap: 2px;
  overflow: hidden;
}
.proj-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink3);

  min-height: 240px;
}
.proj-card.feat {
  grid-row: 1/3;
}
.proj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s var(--ease),
    filter 0.4s;
  filter: brightness(0.78);
}
.proj-card:hover img {
  transform: scale(1.055);
  filter: brightness(0.58);
}
.proj-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(6, 5, 10, 0.92), transparent);
  padding: 2rem 1.75rem 1.75rem;
  z-index: 2;
  transition: transform 0.3s var(--ease);
}
.proj-card:hover .proj-overlay {
  transform: translateY(-8px);
}
.proj-cat {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.proj-title {
  font-family: var(--dp);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--chalk);
  line-height: 1.2;
}
.proj-meta {
  font-size: 0.6rem;
  color: rgba(242, 238, 248, 0.3);
  margin-top: 0.25rem;
}
.proj-view {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.proj-card:hover .proj-view {
  opacity: 1;
  transform: translateY(0);
}
.proj-count-cell {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}
.proj-count-cell:hover {
  background: var(--red-d);
}
.proj-count-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07),
    transparent 70%
  );
}
.pcc-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.pcc-num {
  font-family: var(--dp);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1;
}
.pcc-lbl {
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 238, 248, 0.5);
  display: block;
  margin-top: 0.3rem;
}

/* why us */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.diff-list {
  display: flex;
  flex-direction: column;
}
.diff-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.diff-item:last-child {
  border-bottom: none;
}
.diff-num {
  font-family: var(--dp);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--red);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 20px;
  padding-top: 2px;
}
.diff-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.35rem;
}
.diff-body {
  font-size: 0.74rem;
  color: var(--mid);
  line-height: 1.7;
}
.why-panel {
  background: var(--ink3);
  border: 1px solid var(--rule);
  padding: 3rem;
  position: relative;
}
.why-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
}
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-bottom: 2rem;
}
.cert-cell {
  background: var(--ink3);
  padding: 1.25rem;
  text-align: center;
  transition: background 0.2s;
}
.cert-cell:hover {
  background: var(--ink4);
}
.cert-name {
  font-family: var(--ww);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(242, 238, 248, 0.28);
}
.cert-sub {
  font-size: 0.52rem;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.18rem;
}
.big-stat .sv {
  font-family: var(--dp);
  font-size: 3rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1;
}
.big-stat .sv em {
  color: var(--red);
  font-style: normal;
}
.big-stat .sl {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.25rem;
}
.big-stat {
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

/* testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--rule);
}
.testi-card {
  background: var(--ink2);
  padding: 2.5rem 2rem;
  border-top: 2px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.testi-card.feat,
.testi-card:hover {
  border-top-color: var(--red);
  background: var(--ink3);
}
.testi-q {
  font-family: var(--dp);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(200, 24, 30, 0.12);
  line-height: 0.8;
  margin-bottom: 0.65rem;
}
.testi-body {
  font-family: var(--dp);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242, 238, 248, 0.48);
  margin-bottom: 1.5rem;
}
.testi-card.feat .testi-body {
  color: rgba(242, 238, 248, 0.7);
}
.testi-author {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk);
}
.testi-role {
  font-size: 0.6rem;
  color: var(--mid);
  margin-top: 0.18rem;
}

/* process */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.proc-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rule) 20%,
    var(--rule) 80%,
    transparent
  );
}
.proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.25rem;
}
.proc-circ {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dp);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--red);
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 5px var(--ink);
  transition:
    background 0.3s,
    border-color 0.3s;
}
.proc-circ.act {
  background: var(--red);
  border-color: var(--red);
  color: var(--chalk);
  box-shadow:
    0 0 0 5px var(--ink),
    0 0 28px rgba(200, 24, 30, 0.28);
}
.proc-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.4rem;
}
.proc-body {
  font-size: 0.7rem;
  color: var(--mid);
  line-height: 1.65;
}

/* cta banner */
.cta-banner {
  background: var(--ink2);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 24, 30, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 24, 30, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 65% at 50% -5%,
    rgba(200, 24, 30, 0.1),
    transparent 70%
  );
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.cta-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  color: var(--mid);
}
.cta-trust-item span {
  color: var(--red);
}

/* page hero */
.page-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--ink2);
  padding-top: 72px;
}
.ph-bg {
  position: absolute;
  inset: 0;
}
.ph-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.ph-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 5, 10, 0.82) 0%,
    rgba(6, 5, 10, 0.45) 60%,
    transparent 100%
  );
}
.ph-content {
  position: relative;
  z-index: 2;
  padding: 0 0 4.5rem;
}
.breadcrumb {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}
.breadcrumb .bc-cur {
  color: var(--red);
}

/* about page */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.story-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sib {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--red);
  padding: 1.25rem 1.5rem;
  z-index: 2;
}
.sib .sv {
  font-family: var(--dp);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1;
}
.sib .sl {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 238, 248, 0.65);
  margin-top: 0.2rem;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--rule);
}
.mv-cell {
  padding: 3.5rem 4rem;
  background: var(--ink3);
}
.mv-cell.light {
  background: var(--ink);
}
.mv-lbl {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.mv-text {
  font-family: var(--dp);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(242, 238, 248, 0.75);
  line-height: 1.75;
}
.val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.val-card {
  background: var(--ink);
  padding: 2.5rem 2rem;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.val-card:hover {
  border-bottom-color: var(--red);
  background: var(--ink3);
}
.val-icon {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}
.val-title {
  font-family: var(--dp);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--chalk);
  margin-bottom: 0.5rem;
}
.val-body {
  font-size: 0.74rem;
  color: var(--mid);
  line-height: 1.7;
}
/* services page */
.svc-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--rule);
}
.sfc {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  cursor: pointer;
}
.sfc-bg-img {
  position: absolute;
  inset: 0;
}
.sfc-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition:
    transform 0.65s var(--ease),
    filter 0.4s;
}
.sfc:hover .sfc-bg-img img {
  transform: scale(1.06);
  filter: brightness(0.28);
}
.sfc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  z-index: 5;
  background: linear-gradient(to top, rgba(6, 5, 10, 0.96), transparent 75%);
  transition: transform 0.35s var(--ease);
}
.sfc:hover .sfc-content {
  transform: translateY(-12px);
}

.sfc-title {
  font-family: var(--dp);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.sfc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.sfc-tag {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(200, 24, 30, 0.32);
  color: var(--red);
  background: rgba(200, 24, 30, 0.07);
}
.sfc-body {
  font-size: 0.78rem;
  color: rgba(242, 238, 248, 0.45);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 1.25rem;
}
.sfc-cta {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.sfc:hover .sfc-cta {
  opacity: 1;
  transform: translateY(0);
}
.incl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.incl-card {
  background: var(--ink);
  padding: 2rem 1.75rem;
  border-top: 2px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.incl-card:hover {
  border-top-color: var(--red);
  background: var(--ink3);
}
.incl-icon {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.incl-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.35rem;
}
.incl-body {
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.7;
}

/* projects page */
.pf-filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.pf-btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--rule);
  border-left: none;
  color: var(--mid);
  background: transparent;
  transition: all 0.2s;
}
.pf-btn:first-child {
  border-left: 1px solid var(--rule);
}
.pf-btn:hover,
.pf-btn.active {
  background: var(--red);
  color: var(--chalk);
  border-color: var(--red);
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
}
.pfc {
  background: var(--ink3);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.pfc img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.72);
  transition:
    transform 0.5s var(--ease),
    filter 0.35s;
}
.pfc:hover img {
  transform: scale(1.055);
  filter: brightness(0.52);
}
.pfc-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(6, 5, 10, 0.9), transparent);
  z-index: 2;
  transition: transform 0.3s var(--ease);
}
.pfc:hover .pfc-info {
  transform: translateY(-6px);
}
.pfc-cat {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.pfc-name {
  font-family: var(--dp);
  font-size: 1rem;
  font-weight: 400;
  color: #7889f9;
}
.pfc-loc {
  font-size: 0.6rem;
  color: rgba(242, 238, 248, 0.3);
  margin-top: 0.2rem;
}
.pfc-view {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.pfc:hover .pfc-view {
  opacity: 1;
  transform: translateY(0);
}

/* contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  background: var(--rule);
}
.cf-col {
  background: var(--ink2);
  padding: 4.5rem 4rem;
}
.ci-col {
  background: var(--ink3);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.55rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink);
  border: 1px solid var(--rule);
  color: var(--chalk);
  font-family: var(--ss);
  font-size: 0.82rem;
  font-weight: 300;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
  background: var(--ink3);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--faint);
}
.form-select option {
  background: var(--ink);
}
.form-textarea {
  resize: vertical;
  min-height: 128px;
}
.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--chalk);
  font-family: var(--ss);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.form-submit:hover {
  background: var(--red-l);
}
.form-legal {
  font-size: 0.62rem;
  color: var(--mid);
  font-style: italic;
  margin-top: 0.75rem;
  text-align: center;
}
.ci-item {
  margin-bottom: 2.25rem;
}
.ci-label {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.ci-val {
  font-size: 0.88rem;
  color: var(--chalk);
}
.ci-sub {
  font-size: 0.68rem;
  color: var(--mid);
  margin-top: 0.2rem;
}
.contact-promise {
  background: var(--red);
  padding: 2rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.contact-promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
}
.cp-text {
  font-family: var(--dp);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--chalk);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.cp-src {
  font-size: 0.6rem;
  color: rgba(242, 238, 248, 0.6);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
.ns-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.ns-item:last-child {
  border-bottom: none;
}
.ns-num {
  font-family: var(--dp);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--red);
  opacity: 0.52;
  flex-shrink: 0;
  min-width: 18px;
}
.ns-title {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--chalk);
  margin-bottom: 0.18rem;
}
.ns-body {
  font-size: 0.68rem;
  color: var(--mid);
  line-height: 1.6;
}
.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
}
.trust-cell {
  background: var(--ink3);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.trust-ico {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.trust-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--chalk);
}
.trust-sub {
  font-size: 0.6rem;
  color: var(--mid);
  margin-top: 0.1rem;
}

/* footer */
.footer {
  background: #050404;
  padding: 5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.footer-logo-name {
  font-family: var(--dp);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--chalk);
}
.footer-desc {
  font-size: 0.74rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 290px;
  margin-bottom: 1.5rem;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-social {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--mid);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.footer-social:hover {
  border-color: var(--red);
  color: var(--red);
}
.footer-col-title {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.footer-link {
  display: block;
  font-size: 0.74rem;
  color: var(--mid);
  padding: 0.3rem 0;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--chalk);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  font-size: 0.6rem;
  color: rgba(100, 90, 90, 0.6);
}
.footer-tagline {
  font-family: var(--dp);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(100, 90, 90, 0.45);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s var(--ease),
    transform 0.72s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}
.reveal-d5 {
  transition-delay: 0.5s;
}
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* success toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--ink3);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green, #16a34a);
  padding: 1rem 1.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.2rem;
}
.toast-body {
  font-size: 0.7rem;
  color: var(--mid);
}

/* responsive */

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .proj-mosaic {
    grid-template-columns: 1fr;
  }
  .proj-card.feat {
    grid-column: auto;
  }
  .pf-grid {
    grid-template-columns: 1fr;
  }
  .team-grid,
  .val-grid,
  .incl-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .cf-col,
  .ci-col {
    padding: 3rem 1.5rem;
  }
  .form-row2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 4.5rem 0;
  }
  .about-content {
    padding: 3rem 1.5rem;
  }
  .story-split {
    gap: 2.5rem;
  }
}

/* WhatsApp float button */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6);
}
.wa-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.wa-float-tip {
  position: absolute;
  right: 66px;
  background: rgba(6, 5, 10, 0.9);
  color: var(--fg);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 211, 102, 0.2);
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
.wa-float:hover .wa-float-tip {
  opacity: 1;
  transform: translateX(0);
}

/* Cookie / NDPR notice */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 980;
  background: rgba(13, 11, 18, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid #1e1c2e;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-bar.show {
  transform: translateY(0);
}
.cookie-text {
  font-size: 0.74rem;
  color: rgba(242, 238, 248, 0.5);
  max-width: 680px;
  line-height: 1.65;
}
.cookie-text a {
  color: #c8181e;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-accept {
  padding: 0.55rem 1.4rem;
  background: #c8181e;
  color: var(--fg);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  font-family: inherit;
}
.cookie-accept:hover {
  background: #e03030;
}
.cookie-decline {
  padding: 0.55rem 1.4rem;
  background: transparent;
  color: rgba(242, 238, 248, 0.4);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(242, 238, 248, 0.15);
  transition:
    color 0.2s,
    border-color 0.2s;
  font-family: inherit;
}
.cookie-decline:hover {
  color: var(--fg);
  border-color: rgba(242, 238, 248, 0.3);
}

/* Thank-You state (overlay within contact page) */
.ty-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 970;
  background: rgba(6, 5, 10, 0.96);
  backdrop-filter: blur(24px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}
.ty-overlay.show {
  display: flex;
}
.ty-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  border: 1.5px solid rgba(22, 163, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 2rem;
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.ty-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.ty-sub {
  font-size: 0.9rem;
  color: rgba(242, 238, 248, 0.45);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.ty-steps {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.ty-step {
  background: #141220;
  border: 1px solid #1e1c2e;
  padding: 1.25rem 1.5rem;
  min-width: 180px;
  text-align: left;
}
.ty-step-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #c8181e;
  opacity: 0.6;
  margin-bottom: 0.35rem;
}
.ty-step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.ty-step-body {
  font-size: 0.7rem;
  color: var(--mid);
}
.ty-close {
  padding: 0.75rem 2rem;
  background: #c8181e;
  color: var(--fg);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s;
}
.ty-close:hover {
  background: #e03030;
}

/* Honeypot (visually hidden) */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #c8181e;
  color: var(--fg);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Clickable contact details */
.contact-link {
  cursor: pointer;
  transition: color 0.2s;
}
.contact-link:hover {
  color: #c8181e;
}

/* ARIA live region */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print styles */
@media print {
  .nav,
  .ticker,
  .wa-float,
  .cookie-bar,
  .hero-scroll,
  .mob-nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .hero-bg-img,
  .ph-bg {
    display: none;
  }
  .hero-content {
    padding-top: 1rem;
  }
  h1.display,
  h2.display {
    color: #000;
  }
  em.accent {
    color: #b91c1c;
  }
  .btn-primary,
  .btn-outline {
    border: 1px solid #b91c1c;
    color: #b91c1c;
    background: none;
    clip-path: none;
    print-color-adjust: exact;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }
}

/* ── Focus visible (WCAG 2.4.7) ── */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid #c8181e;
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #c8181e;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(200, 24, 30, 0.18);
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #c8181e;
  outline-offset: 0;
  border-color: #c8181e;
}
.nav-link:focus-visible,
.mob-link:focus-visible {
  outline: 2px solid #c8181e;
  outline-offset: 2px;
}

/* Real logo image handling */
.logo-img-nav {
  display: block;
  width: 44px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* screen blend makes white PNG background invisible on dark surfaces */
  mix-blend-mode: screen;
}
.logo-img-footer {
  display: block;
  width: 38px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: screen;
}
/* Light mode – multiply hides white PNG bg on light nav */
[data-theme="light"] .logo-img-nav {
  mix-blend-mode: multiply;
}
/* Footer logo stays visible on dark bg in both modes */
[data-theme="light"] .logo-img-footer {
  mix-blend-mode: screen;
}

/* ════════════════════════════════════════════════════════════
   THEME SYSTEM – Light & Dark
   Default: dark (existing). Light activated via [data-theme="light"]
════════════════════════════════════════════════════════════ */

/* ── Dark mode vars (default — existing values) ── */
:root,
[data-theme="dark"] {
  --bg: #06050a;
  --bg2: #0d0b12;
  --bg3: #141220;
  --bg4: #1c192a;
  --bg5: #050404;
  --fg: #f2eef8;
  --fg2: rgba(242, 238, 248, 0.72);
  --fg3: rgba(242, 238, 248, 0.45);
  --fg4: rgba(242, 238, 248, 0.25);
  --fg5: rgba(242, 238, 248, 0.12);
  --mid: #6e6880;
  --faint: #3a3650;
  --rule: #1e1c2e;
  --rule2: #2a2840;
  --shadow: rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(6, 5, 10, 0.92);
  --nav-scrolled: rgba(6, 5, 10, 0.94);
  --hero-overlay: linear-gradient(
    90deg,
    #06050a 0%,
    rgba(6, 5, 10, 0.5) 45%,
    rgba(6, 5, 10, 0.18) 100%
  );
  --ticker-text: rgba(242, 238, 248, 0.85);
  --toast-bg: rgba(13, 11, 18, 0.97);
  --cookie-bg: rgba(13, 11, 18, 0.97);
  --footer-bg: #050404;
  --card-hover: #141220;
  --quote-border: rgba(200, 24, 30, 0.5);
  --ty-step-bg: #141220;
}

/* ── Light mode vars ── */
[data-theme="light"] {
  --chalk: #14120e; /* light mode: dark text */
  --bg: #fafaf8;
  --bg2: #f4efe8;
  --bg3: #ede7de;
  --bg4: #e5ddd2;
  --bg5: #f0ebe4;
  --fg: #14120e;
  --fg2: rgba(20, 18, 14, 0.8);
  --fg3: rgba(20, 18, 14, 0.55);
  --fg4: rgba(20, 18, 14, 0.32);
  --fg5: rgba(20, 18, 14, 0.1);
  --mid: #6b6050;
  --faint: #9e9080;
  --rule: #ddd6ca;
  --rule2: #ccc4b5;
  --shadow: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(250, 250, 248, 0.92);
  --nav-scrolled: rgba(250, 250, 248, 0.97);
  --hero-overlay: linear-gradient(
    90deg,
    rgba(250, 250, 248, 0.92) 0%,
    rgba(250, 250, 248, 0.55) 45%,
    rgba(250, 250, 248, 0.15) 100%
  );
  --ticker-text: rgba(255, 255, 255, 0.92);
  --toast-bg: rgba(250, 250, 248, 0.98);
  --cookie-bg: rgba(244, 239, 232, 0.98);
  --footer-bg: #14120e;
  --card-hover: #ede7de;
  --quote-border: rgba(200, 24, 30, 0.6);
  --ty-step-bg: #ede7de;
}

/* ── Existing var aliases → new semantic vars ── */
:root,
[data-theme="dark"] {
  --ink: var(--bg);
  --ink2: var(--bg2);
  --ink3: var(--bg3);
  --ink4: var(--bg4);
  --chalk: var(--fg);
}

/* ════════════════════════════════════════════════════════════
   LIGHT MODE COMPONENT OVERRIDES
   (covers inline hardcoded colors the var() system can't reach)
════════════════════════════════════════════════════════════ */

[data-theme="light"] body {
  background: var(--bg);
  color: var(--fg);
}

/* Nav */
[data-theme="light"] .nav {
  border-bottom-color: transparent;
}
[data-theme="light"] .nav.scrolled {
  background: var(--nav-scrolled);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .nav-link {
  color: var(--mid);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--fg);
}
[data-theme="light"] .nav-logo-name {
  color: var(--fg);
}
[data-theme="light"] .nav-logo-sub {
  color: var(--mid);
}

/* Mobile nav */
[data-theme="light"] .mob-nav {
  background: var(--bg2);
}
[data-theme="light"] .mob-link {
  color: rgba(20, 18, 14, 0.75);
  border-bottom-color: var(--rule);
}
[data-theme="light"] .mob-link:hover {
  color: var(--fg);
}

/* Hero — keep dramatic image but light side panel */
[data-theme="light"] .hero-bg {
  background: var(--bg2);
}
[data-theme="light"] .hero-bg-img::after {
  background: var(--hero-overlay);
}

[data-theme="light"] .hero-stats-bar {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--rule);
}
[data-theme="light"] .stat-val {
  color: var(--fg);
}
[data-theme="light"] .stat-lbl {
  color: var(--fg4);
}

/* Sections */
[data-theme="light"] .section-alt {
  background: var(--bg2);
}
[data-theme="light"] .section-dark {
  background: var(--bg3);
}

/* About */
[data-theme="light"] .about-content {
  background: var(--bg);
}
[data-theme="light"] .about-quote {
  color: var(--fg2);
  border-left-color: var(--red);
}

/* Service cards */
[data-theme="light"] .svc-card {
  background: var(--bg);
  border-color: var(--rule);
}
[data-theme="light"] .svc-card:hover {
  background: var(--bg2);
}
[data-theme="light"] .svc-num {
  color: rgba(200, 24, 30, 0.1);
}
[data-theme="light"] .svc-title {
  color: var(--fg);
}
[data-theme="light"] .svc-body {
  color: var(--mid);
}
[data-theme="light"] .svc-grid {
  background: var(--rule);
}

/* Why us */
[data-theme="light"] .why-panel {
  background: var(--bg);
  border-color: var(--rule);
}
[data-theme="light"] .cert-cell {
  background: var(--bg);
}
[data-theme="light"] .cert-cell:hover {
  background: var(--bg2);
}
[data-theme="light"] .cert-name {
  color: rgba(20, 18, 14, 0.35);
}
[data-theme="light"] .diff-title {
  color: var(--fg);
}
[data-theme="light"] .diff-body {
  color: var(--mid);
}
[data-theme="light"] .diff-item {
  border-bottom-color: var(--rule);
}
[data-theme="light"] .big-stat .sv {
  color: var(--fg);
}
[data-theme="light"] .big-stat {
  border-top-color: var(--rule);
}

/* Testimonials */
[data-theme="light"] .testi-grid {
  background: var(--rule);
}
[data-theme="light"] .testi-card {
  background: var(--bg);
  border-top-color: transparent;
}
[data-theme="light"] .testi-card.feat,
[data-theme="light"] .testi-card:hover {
  background: var(--bg2);
  border-top-color: var(--red);
}
[data-theme="light"] .testi-body {
  color: var(--fg3);
}
[data-theme="light"] .testi-card.feat .testi-body {
  color: var(--fg2);
}
[data-theme="light"] .testi-author {
  color: var(--fg);
}
[data-theme="light"] .testi-role {
  color: var(--mid);
}
[data-theme="light"] .testi-q {
  color: rgba(200, 24, 30, 0.12);
}

/* Process */
[data-theme="light"] .proc-circ {
  background: var(--bg);
  border-color: var(--rule);
  box-shadow: 0 0 0 5px var(--bg);
}
[data-theme="light"] .proc-circ.act {
  background: var(--red);
  border-color: var(--red);
  box-shadow:
    0 0 0 5px var(--bg),
    0 0 28px rgba(200, 24, 30, 0.22);
}
[data-theme="light"] .proc-title {
  color: var(--fg);
}
[data-theme="light"] .proc-body {
  color: var(--mid);
}
[data-theme="light"] .proc-grid::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rule) 20%,
    var(--rule) 80%,
    transparent
  );
}

[data-theme="light"] .cta-banner::before {
  background-image:
    linear-gradient(rgba(200, 24, 30, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 24, 30, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .cta-trust-item {
  color: rgba(250, 250, 248, 0.65);
}

/* Page hero (inner pages) */
[data-theme="light"] .page-hero {
  background: var(--bg3);
}
[data-theme="light"] .ph-bg img {
  filter: brightness(0.25);
}
[data-theme="light"] .ph-bg::after {
  background: linear-gradient(
    to top,
    rgba(237, 231, 222, 0.97) 0%,
    rgba(237, 231, 222, 0.65) 60%,
    transparent 100%
  );
}
[data-theme="light"] .breadcrumb {
  color: var(--mid);
}
[data-theme="light"] .ph-content h1 {
  color: var(--fg);
}

/* About page specifics */
[data-theme="light"] .mv-cell {
  background: var(--bg3);
}
[data-theme="light"] .mv-cell.light {
  background: var(--bg);
}
[data-theme="light"] .mv-text {
  color: var(--fg2);
}
[data-theme="light"] .val-grid {
  background: var(--rule);
}
[data-theme="light"] .val-card {
  background: var(--bg);
}
[data-theme="light"] .val-card:hover {
  background: var(--bg2);
  border-bottom-color: var(--red);
}
[data-theme="light"] .val-title {
  color: var(--fg);
}
[data-theme="light"] .val-body {
  color: var(--mid);
}
[data-theme="light"] .team-grid {
  background: var(--rule);
}
[data-theme="light"] .team-card {
  background: var(--bg2);
}
[data-theme="light"] .team-info {
  background: var(--bg2);
}
[data-theme="light"] .team-card:hover .team-info {
  background: var(--bg3);
}
[data-theme="light"] .team-name {
  color: var(--fg);
}
[data-theme="light"] .story-img-wrap {
  border: 1px solid var(--rule);
}

/* Services page */
[data-theme="light"] .sfc {
  background: var(--bg3);
}
[data-theme="light"] .sfc-bg-img img {
  filter: brightness(0.55);
}
[data-theme="light"] .sfc:hover .sfc-bg-img img {
  filter: brightness(0.35);
}
[data-theme="light"] .sfc-title {
  color: #fafaf8;
}
[data-theme="light"] .sfc-body {
  color: rgba(250, 250, 248, 0.6);
}
[data-theme="light"] .incl-grid {
  background: var(--rule);
}
[data-theme="light"] .incl-card {
  background: var(--bg);
}
[data-theme="light"] .incl-card:hover {
  background: var(--bg2);
}
[data-theme="light"] .incl-title {
  color: var(--fg);
}
[data-theme="light"] .incl-body {
  color: var(--mid);
}

/* Projects page */
[data-theme="light"] .pf-grid {
  background: var(--rule);
}
[data-theme="light"] .pfc {
  background: var(--bg3);
}
[data-theme="light"] .pf-filters {
  background: transparent;
}
[data-theme="light"] .pf-btn {
  border-color: var(--rule);
  color: var(--mid);
  background: var(--bg);
}
[data-theme="light"] .pf-btn:hover {
  border-color: var(--rule2);
  color: var(--fg);
}
[data-theme="light"] .pf-btn.active {
  background: var(--red);
  color: #fafaf8;
  border-color: var(--red);
}

/* Contact page */
[data-theme="light"] .contact-layout {
  background: var(--rule);
}
[data-theme="light"] .cf-col {
  background: var(--bg);
}
[data-theme="light"] .ci-col {
  background: var(--bg2);
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: var(--bg2);
  border-color: var(--rule);
  color: var(--fg);
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  background: var(--bg);
  border-color: var(--red);
}
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: var(--faint);
}
[data-theme="light"] .form-select option {
  background: var(--bg);
  color: var(--fg);
}
[data-theme="light"] .form-label {
  color: var(--mid);
}
[data-theme="light"] .ci-val {
  color: var(--fg);
}
[data-theme="light"] .ci-sub {
  color: var(--mid);
}
[data-theme="light"] .ns-item {
  border-bottom-color: var(--rule);
}
[data-theme="light"] .ns-title {
  color: var(--fg);
}
[data-theme="light"] .ns-body {
  color: var(--mid);
}
[data-theme="light"] .trust-bar {
  background: var(--rule);
}
[data-theme="light"] .trust-cell {
  background: var(--bg2);
}
[data-theme="light"] .trust-title {
  color: var(--fg);
}
[data-theme="light"] .trust-sub {
  color: var(--mid);
}
[data-theme="light"] .form-legal {
  color: var(--mid);
}

/* Project mosaic */
[data-theme="light"] .proj-mosaic {
  background: var(--rule);
}
[data-theme="light"] .proj-count-cell {
  background: var(--red);
}

/* Toast */
[data-theme="light"] .toast {
  background: var(--bg);
  border-color: var(--rule);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .toast-title {
  color: var(--fg);
}
[data-theme="light"] .toast-body {
  color: var(--mid);
}

/* Cookie bar */
[data-theme="light"] .cookie-bar {
  background: var(--cookie-bg);
  border-top-color: var(--rule);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cookie-text {
  color: var(--fg3);
}
[data-theme="light"] .cookie-decline {
  color: var(--mid);
  border-color: var(--rule);
}

/* Thank You overlay */
[data-theme="light"] .ty-overlay {
  background: rgba(250, 250, 248, 0.97);
}
[data-theme="light"] .ty-title {
  color: var(--fg);
}
[data-theme="light"] .ty-sub {
  color: var(--fg3);
}
[data-theme="light"] .ty-step {
  background: var(--bg2);
  border-color: var(--rule);
}
[data-theme="light"] .ty-step-num {
  color: var(--red);
}
[data-theme="light"] .ty-step-title {
  color: var(--fg);
}
[data-theme="light"] .ty-step-body {
  color: var(--mid);
}

/* Cert row tags */
[data-theme="light"] .cert-tag {
  border-color: rgba(200, 24, 30, 0.3);
  color: var(--red);
  background: rgba(200, 24, 30, 0.06);
}

/* Dividers */
[data-theme="light"] .divider {
  background: var(--rule);
}
[data-theme="light"] .divider-red {
  background: linear-gradient(90deg, var(--red), transparent 70%);
}

/* Scroll indicator */
[data-theme="light"] .hero-scroll-text {
  color: rgba(20, 18, 14, 0.25);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  flex-shrink: 0;
  margin-right: 0.75rem;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--red);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
  position: absolute;
  color: #fff;
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
  color: #050404;
}
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}
[data-theme="light"] .theme-toggle {
  border-color: var(--rule);
}
[data-theme="light"] .theme-toggle:hover {
  border-color: var(--red);
  background: var(--red2);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE ADDITIONS — mobile/tablet passes
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .about-split,
  .why-split,
  .story-split {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .mv-grid {
    grid-template-columns: 1fr !important;
  }
  .svc-full-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cert-grid,
  .svc-full-grid,
  .mv-grid,
  .about-split,
  .why-split,
  .story-split {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  [style*="max-width:780px"],
  [style*="max-width:720px"],
  [style*="max-width:700px"],
  [style*="max-width:600px"],
  [style*="max-width:580px"],
  [style*="max-width:560px"],
  [style*="max-width:500px"],
  [style*="max-width:460px"] {
    max-width: 100% !important;
  }
  .pf-grid,
  .testi-grid,
  .val-grid,
  .incl-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }
  .proj-mosaic {
    grid-template-columns: 1fr !important;
  }
  .proj-card {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 260px !important;
  }
  .cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .trust-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .container,
  .container-wide {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .section {
    padding: 3.5rem 0 !important;
  }
  .form-row2 {
    grid-template-columns: 1fr !important;
  }
  .hero-h1 {
    font-size: clamp(2rem, 7vw, 3.2rem) !important;
  }
  .display {
    font-size: clamp(1.8rem, 6vw, 3rem) !important;
  }
  .wa-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 1rem !important;
    right: 1rem !important;
  }
  .proc-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 380px) {
  .proc-grid {
    grid-template-columns: 1fr !important;
  }
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .trust-bar {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-socials {
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
}
/* KingsChat — brand blue on hover, scoped to just this one social link
   (a stray unscoped `.footer-social:hover` duplicate used to live here and
   accidentally overrode every other social icon's hover color — removed) */
/* `a` + !important needed so this beats the light-theme catch-all
   `.footer-social:hover` override below on both specificity and
   !important — otherwise this icon goes red like every other social
   link instead of staying KingsChat blue */
a.footer-social[href*="kingschat"]:hover {
  border-color: #00a8e0 !important;
  color: #00a8e0 !important;
}
/* meta theme-color already in HTML */

/* ═══════════════════════════════════════════════════
   DESKTOP OVERRIDES — ensure grids never collapse
   on screens wider than 960px
   ═══════════════════════════════════════════════════ */
@media (min-width: 961px) {
  /* Footer always 4 columns on desktop */
  .footer-top {
    display: grid !important;
    grid-template-columns: 2.2fr 1fr 1fr 1fr !important;
    gap: 4rem !important;
  }
  /* Projects grid always 3 columns on desktop */
  .pf-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Testimonials always 3 columns on desktop */
  .testi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Values always 3 columns on desktop */
  .val-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Inclusions 3 columns on desktop */
  .incl-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Team 3 columns on desktop */
  .team-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Footer bottom stays flex row on desktop */
  .footer-bottom {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2rem !important;
  }
}

/* ═══════════════════════════════════════════════════
   DEFINITIVE LIGHT MODE OVERRIDES
   Rule 1: Dark-bg sections → literal white text + literal dark bg
   Rule 2: Light-bg sections → dark text via CSS vars (auto from :root)
   All colors use literal values where needed to avoid var() chain bugs
   ═══════════════════════════════════════════════════ */

/* ── HERO (dark image bg — always white text) ──────────── */
[data-theme="light"] .hero-h1 {
  color: var(--fg);
}
[data-theme="light"] .kicker-text {
  color: var(--mid);
}
[data-theme="light"] .hero-sub {
  color: var(--fg3);
}
[data-theme="light"] .hero-scroll-text {
  color: rgba(20, 18, 14, 0.25);
}

/* ph-content: uses original var(--fg) rules — no override needed */

/* ── TICKER (dark strip bg — always white text) ─────────── */
[data-theme="light"] .ticker-item,
[data-theme="light"] .ticker-sep {
  color: rgba(250, 250, 248, 0.88) !important;
}

/* ── CTA BANNER (literal dark bg — literal white text) ──── */
[data-theme="light"] .cta-banner {
  background: #0d0b12 !important;
}
[data-theme="light"] .cta-banner .display,
[data-theme="light"] .cta-banner h2,
[data-theme="light"] .cta-banner p,
[data-theme="light"] .cta-banner .body-lg,
[data-theme="light"] .cta-banner .eyebrow {
  color: rgba(250, 250, 248, 0.92) !important;
}
[data-theme="light"] .cta-banner .accent {
  color: #c8181e !important;
}
[data-theme="light"] .cta-trust-item {
  color: rgba(250, 250, 248, 0.6) !important;
}
[data-theme="light"] .cta-trust-item span {
  color: #c8181e !important;
}

/* ── HERO STATS (on dark hero) ──────────────────────────── */
[data-theme="light"] .ib-val {
  color: var(--fg);
}
[data-theme="light"] .ib-lbl {
  color: var(--mid);
}

/* ── PROJECT MOSAIC CARDS (dark image overlay text) ──────── */
[data-theme="light"] .proj-cat,
[data-theme="light"] .proj-title,
[data-theme="light"] .proj-meta {
  color: rgba(250, 250, 248, 0.92) !important;
}

/* ── PORTFOLIO FILTER CARDS (dark image overlay text) ──── */
[data-theme="light"] .pfc-cat,
[data-theme="light"] .pfc-name,
[data-theme="light"] .pfc-loc,
[data-theme="light"] .pfc-view {
  color: rgba(250, 250, 248, 0.92) !important;
}

/* ── FOOTER (literal dark bg — literal white text) ────────── */
[data-theme="light"] .footer {
  background: #050404;
}
[data-theme="light"] .footer-logo-name {
  color: rgba(250, 250, 248, 0.95) !important;
}
[data-theme="light"] .footer-desc {
  color: rgba(250, 250, 248, 0.5) !important;
}
[data-theme="light"] .footer-col-title {
  color: #c8181e !important;
}
[data-theme="light"] .footer-link {
  color: rgba(250, 250, 248, 0.5) !important;
}
[data-theme="light"] .footer-link:hover {
  color: rgba(250, 250, 248, 0.88) !important;
}
[data-theme="light"] .footer-social {
  color: rgba(250, 250, 248, 0.45) !important;
  border-color: rgba(250, 250, 248, 0.12) !important;
}
[data-theme="light"] .footer-social:hover {
  color: #c8181e !important;
  border-color: #c8181e !important;
}
[data-theme="light"] .footer-legal {
  color: rgba(250, 250, 248, 0.28) !important;
}
[data-theme="light"] .footer-tagline {
  color: rgba(250, 250, 248, 0.22) !important;
}
[data-theme="light"] .footer-top {
  border-color: rgba(250, 250, 248, 0.07) !important;
}
[data-theme="light"] .footer-bottom {
  border-color: rgba(250, 250, 248, 0.07) !important;
}

/* ── LIGHT-BG SECTIONS — readable dark text ───────────────
   (vars --fg, --mid etc. are already set dark in light mode
   but some elements need explicit overrides for specificity) */
[data-theme="light"] .display {
  color: #14120e;
}
[data-theme="light"] .eyebrow {
  color: #c8181e;
}
[data-theme="light"] p,
[data-theme="light"] .body-md,
[data-theme="light"] .body-lg {
  color: rgba(20, 18, 14, 0.78);
}
[data-theme="light"] .accent {
  color: #c8181e;
}
[data-theme="light"] .mob-link {
  color: rgba(20, 18, 14, 0.75) !important;
}
[data-theme="light"] .mob-link:hover {
  color: #c8181e !important;
}

/* ── STORY IMAGE BADGE ─────────────────────────────────── */
[data-theme="light"] .sib {
  background: #c8181e;
}

/* privacy/terms page-hero uses original var(--fg) rules */

/* ── Stats / Badge colours — correct for both modes ── */
/* Dark mode: sv uses --chalk (light), sl uses muted light */
.sv {
  color: var(--chalk);
}
.sl {
  color: var(--mid);
}
/* Light mode: sv uses dark fg (visible on light bg), sl uses mid */
[data-theme="light"] .sv {
  color: var(--fg) !important;
}
[data-theme="light"] .sl {
  color: var(--mid) !important;
}
/* The % and em inside sv always stays red */
.sv em,
.big-stat em {
  color: var(--red);
  font-style: normal;
}
/* Hero stats bar numbers */
[data-theme="light"] .ib-val {
  color: var(--fg) !important;
}
[data-theme="light"] .ib-lbl {
  color: var(--mid) !important;
}
/* Cert tags — ensure visible in light mode */
[data-theme="light"] .cert-tag {
  color: var(--red) !important;
  border-color: rgba(200, 24, 30, 0.4) !important;
  background: rgba(200, 24, 30, 0.06) !important;
}
/* Stat vals in about page big stats */
[data-theme="light"] .stat-val {
  color: var(--fg) !important;
}
[data-theme="light"] .stat-lbl {
  color: var(--mid) !important;
}

/* ── btn-outline: always visible in light mode ── */
[data-theme="light"] .btn-outline {
  border-color: var(--fg) !important;
  color: var(--fg) !important;
}
[data-theme="light"] .btn-outline:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
}
/* ── Service card numbering — bold and legible ── */
.sfc-num {
  font-family: var(--ss);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 1;
  margin-bottom: 0.65rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .sfc-num {
  color: var(--red) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* ═══════════════════════════════════════════════════
   SCREEN MODE ENFORCEMENT — overrides print styles
   ═══════════════════════════════════════════════════ */

.page {
  display: block;
}

/* btn-primary on dark sections always needs white text */
.cta-banner .btn-primary,
[data-theme="light"] .cta-banner .btn-primary {
  color: rgba(250, 250, 248, 0.95) !important;
}
[data-theme="light"] .cta-banner .btn-primary {
  background: var(--red) !important;
}

/* Extra small screens */

/* ═══════════════════════════════════════════════
   MASTER LAYOUT FIX — All breakpoints
   ═══════════════════════════════════════════════ */

/* ── BASE: prevent ALL horizontal scroll ─────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
img,
video,
iframe {
  max-width: 100%;
}

/* ── CONTAINER: safe padding on all screens ──── */
.container,
.container-wide {
  box-sizing: border-box;
  width: 100%;
}

/* ── 960px TABLET ────────────────────────────── */
@media (max-width: 960px) {
  .container,
  .container-wide {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .about-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .story-split,
  .why-split,
  .svc-full-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
  .testi-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .proc-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 2rem !important;
  }
  .sfc {
    min-height: 380px !important;
  }
  .pf-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .proj-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

/* ── 768px MOBILE-TABLET ─────────────────────── */
@media (max-width: 768px) {
  .container,
  .container-wide {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* All 2-column grids → single column */
  .about-split,
  .story-split,
  .why-split,
  .contact-layout,
  .mv-grid,
  .svc-full-grid,
  .cert-grid,
  .val-grid,
  .incl-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .about-split {
    min-height: auto !important;
  }

  /* Process steps → 2 columns */
  .proc-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  .proc-grid::before {
    display: none !important;
  }

  /* Testimonials → 1 column */
  .testi-grid {
    grid-template-columns: 1fr !important;
  }

  /* Portfolio filter → 1 column */
  .pf-grid {
    grid-template-columns: 1fr !important;
  }

  /* Project mosaic → 1 column */
  .proj-mosaic {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  /* Service cards — stack nicely */
  .sfc {
    min-height: 320px !important;
  }

  /* Footer → 2 column then 1 */
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  /* Buttons: full width */
  .btn-primary,
  .btn-outline {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .cta-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Hero */
  .hero {
    min-height: 85vh !important;
  }
  .hero-h1 {
    font-size: clamp(1.9rem, 8vw, 3rem) !important;
  }

  /* story image: limit height */
  .story-img-wrap {
    aspect-ratio: 4/3 !important;
    max-height: 350px !important;
  }

  /* CTA banner */
  .cta-banner {
    padding: 4rem 0 !important;
  }

  /* Page hero */
  .page-hero {
    min-height: 45vh !important;
  }

  /* Section padding */
  .section,
  .section-alt {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* About split image hide on mobile for cleaner look */
  .about-split .story-img-wrap {
    display: none !important;
  }

  /* Nav: collapse links + CTA into burger menu (mob-nav already repeats both) */
  .nav-links,
  .nav-cta {
    display: none !important;
  }
  .nav-burger {
    display: flex !important;
  }
}

/* ── 640px SMALL MOBILE ──────────────────────── */
@media (max-width: 640px) {
  .container,
  .container-wide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Process → 1 column */
  .proc-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Footer → 1 column */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Remove clip-path on buttons (looks bad on small screens) */
  .btn-primary {
    clip-path: none !important;
    border-radius: 2px !important;
  }

  /* Testimonial card padding */
  .testi-card {
    padding: 1.5rem 1.25rem !important;
  }

  /* Headings */
  .display {
    font-size: clamp(1.6rem, 8vw, 2.5rem) !important;
  }
  h2.display {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  /* Hero stats: 2 cols */
  .hero-stats-inner {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── 380px VERY SMALL ────────────────────────── */
@media (max-width: 380px) {
  .container,
  .container-wide {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .display {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
  }
  .proc-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-stats-inner {
    grid-template-columns: 1fr !important;
  }
}

/* ── LIGHT MODE btn text on dark sections ──── */
[data-theme="light"] .cta-banner .btn-primary,
.cta-banner .btn-primary {
  color: rgba(250, 250, 248, 0.95) !important;
  background: var(--red) !important;
}
/* btn-outline on the dark cta-banner section — same translucent-light
   treatment in both themes since the banner itself is always dark */
.cta-banner .btn-outline {
  border-color: rgba(250, 250, 248, 0.5) !important;
  color: rgba(250, 250, 248, 0.9) !important;
  background: transparent !important;
}

/* ── Hero "View Projects" button — sits directly over a photo whose
   brightness varies, so a plain translucent outline disappears in the
   bright regions. A frosted dark chip keeps it legible everywhere. ── */
.hero .btn-outline,
[data-theme="light"] .hero .btn-outline {
  background: rgba(6, 5, 10, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn-outline:hover,
[data-theme="light"] .hero .btn-outline:hover {
  background: rgba(6, 5, 10, 0.75) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
