:root {
  --page-bg: #f5f3e5;
  --ink: #101010;
  --muted: #5f5f5d;
  --line: #111111;
  --soft-line: #d7d7d2;
  --card-bg: #d9d9d9;
  --footer-bg: #141414;
  --footer-ink: #f1f1ec;
  --accent: #111111;
  --section-width: 1168px;
  --section-pad: 24px;
  --landing-card-height: 453px;

  /* Fine controls: change any of these by 1px when you replace images. */
  --hero-gradient-x: 0px;
  --hero-gradient-y: 0px;
  --hero-gradient-height: 119px;
  --intro-photo-x: 12px;
  --intro-photo-y: 8px;
  --intro-photo-scale: 1;
  --skill-image-x: 0px;
  --skill-image-y: 0px;
  --portrait-x: 0px;
  --portrait-y: 0px;
  --portrait-scale: 1;
  --play-photo-x: 0px;
  --play-photo-y: 0px;
  --photo-tilt-x: 0deg;
  --photo-tilt-y: 0deg;
  --photo-glow-x: 50%;
  --photo-glow-y: 50%;
  --quote-photo-x: 0px;
  --quote-photo-y: 0px;
  --quote-photo-scale: 1;
  --about-name-x: 0px;

  /* Icon controls: SVG and PNG files inside .icon-slot use these sizes. */
  --title-icon-width: 43px;
  --title-icon-height: 34px;
  --inline-icon-size: 23px;
  --social-icon-size: 18px;
  --footer-icon-size: 20px;
  --app-icon-size: 48px;
  --card-icon-size: 48px;
  --feature-icon-size: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

body.is-lab-mode::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.06) 50%) 0
      0 / 100% 6px,
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 0, 170, 0.16),
      transparent 22%
    ),
    radial-gradient(
      circle at 80% 35%,
      rgba(0, 210, 255, 0.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 82%,
      rgba(255, 214, 0, 0.12),
      transparent 26%
    );
  opacity: 1;
  mix-blend-mode: multiply;
  animation: lab-scan 7s linear infinite;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  --nav-radar-x: 50%;
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(var(--section-width), calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(12px);
}

.nav-radar {
  position: absolute;
  bottom: 4px;
  left: var(--nav-radar-x);
  width: 9px;
  height: 9px;
  border: 1px solid #111;
  border-radius: 50%;
  background: #f5f3e5;
  box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.08);
  transform: translateX(-50%);
  transition:
    left 220ms ease,
    box-shadow 220ms ease;
}

.site-nav.is-visible .nav-radar {
  animation: radar-pulse 1.8s ease-in-out infinite;
}

.site-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-nav nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav nav {
  justify-content: flex-end;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.site-nav-brand img {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(17, 17, 17, 0.24);
  border-radius: 10px;
  object-fit: cover;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.site-nav-brand span {
  display: grid;
  line-height: 1.05;
}

.site-nav-brand strong {
  font-size: 0.98rem;
  font-weight: 880;
}

.site-nav-brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.site-nav-brand:hover img,
.site-nav-brand:focus-visible img {
  box-shadow: 4px 4px 0 rgba(225, 160, 224, 0.42);
  transform: rotate(-4deg) translateY(-1px);
}

.site-nav nav a,
.footer-links a {
  position: relative;
  font-size: 0.94rem;
}

.site-nav nav a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(225, 160, 224, 0.42);
  content: "";
  transform: scaleX(0.42);
  transform-origin: center;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.footer-links a::after {
  border-radius: 0;
  background: rgba(17, 17, 17, 0.08);
  transform-origin: left;
}

.site-nav nav a:hover::after,
.site-nav nav a.is-active::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  color: #5f5f5d;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 520ms ease var(--reveal-delay, 0ms);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.magnetic-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.magnetic-card::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.34),
    transparent 27%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.magnetic-card.is-magnetic::before {
  opacity: 1;
}

.magnetic-card > * {
  position: relative;
  z-index: 1;
}

.lab-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border: 1px solid rgba(245, 243, 229, 0.34);
  border-radius: 10px;
  background: #111;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  color: var(--page-bg);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.lab-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lab-panel {
  position: fixed;
  right: 18px;
  bottom: 68px;
  z-index: 39;
  display: grid;
  gap: 6px;
  width: min(276px, calc(100% - 36px));
  border: 1px solid rgba(245, 243, 229, 0.2);
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  color: var(--page-bg);
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.lab-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lab-panel strong {
  font-size: 1.02rem;
}

.lab-panel span {
  color: rgba(245, 243, 229, 0.74);
  font-size: 0.86rem;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(245, 243, 229, 0.18),
      transparent 24%
    ),
    #101010;
  color: var(--page-bg);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.page-transition.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.page-transition div {
  display: grid;
  gap: 12px;
  width: min(420px, calc(100% - 36px));
  text-align: center;
}

.page-transition span {
  color: rgba(245, 243, 229, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-transition strong {
  max-width: 12ch;
  justify-self: center;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.page-transition i {
  position: relative;
  display: block;
  width: min(100%, 320px);
  height: 7px;
  margin: 0 auto;
  border: 1px solid rgba(245, 243, 229, 0.42);
  border-radius: 999px;
  overflow: hidden;
}

.page-transition i::before {
  position: absolute;
  inset: 0;
  width: 38%;
  border-radius: inherit;
  background: var(--page-bg);
  content: "";
  animation: transition-load 720ms ease-in-out infinite;
}

body.is-lab-mode .site-nav,
body.is-lab-mode .service-card:hover,
body.is-lab-mode .feature-links a:hover,
body.is-lab-mode .portfolio-card {
  box-shadow: 8px 8px 0 rgba(186, 122, 56, 0.2);
}

.os-preview {
  position: fixed;
  top: 132px;
  left: calc(50% - 180px);
  z-index: 50;
  display: none;
  width: min(360px, calc(100% - 28px));
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #d9d9d9;
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.16);
  overflow: hidden;
}

.os-preview.is-visible {
  display: block;
  animation: os-pop 180ms ease both;
}

.os-preview.is-minimized {
  width: min(320px, calc(100% - 28px));
}

.os-preview.is-minimized .os-preview-body {
  display: none;
}

.os-preview.is-maximized {
  top: 18px !important;
  right: 18px;
  bottom: 18px;
  left: 18px !important;
  display: grid;
  width: auto;
  max-width: none;
}

.os-preview.is-maximized .os-preview-body {
  align-content: center;
  padding: clamp(20px, 5vw, 54px);
}

.os-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(#f8f8f4, #deded8);
  padding: 10px 12px;
  cursor: grab;
}

.os-window-control {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid rgba(17, 17, 17, 0.24);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 1px 1px rgba(0, 0, 0, 0.12);
}

.os-window-control.is-close {
  background: #ff5f57;
}

.os-window-control.is-minimize {
  background: #febc2e;
}

.os-window-control.is-maximize {
  background: #28c840;
}

.os-window-control::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.58);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}

.os-preview:hover .os-window-control::before,
.os-window-control:focus-visible::before {
  opacity: 1;
}

.os-window-control.is-close::before {
  content: "x";
}

.os-window-control.is-minimize::before {
  content: "-";
  transform: translateY(-1px);
}

.os-window-control.is-maximize::before {
  content: "+";
}

.os-preview-bar strong {
  margin: 0 auto;
  padding-right: 55px;
  font-size: 0.92rem;
  font-weight: 840;
}

.os-preview-body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.os-preview-body p,
.os-preview-body h2,
.os-preview-body h3 {
  margin: 0;
}

.os-preview-body [data-os-status] {
  width: max-content;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.36);
  color: #000;
  font-size: 0.78rem;
  font-weight: 820;
}

.os-preview-body h2 {
  font-size: 2rem;
  line-height: 1;
}

.os-preview-body h3 {
  color: var(--muted);
  font-size: 1rem;
}

.os-preview-screen {
  display: grid;
  height: 92px;
  grid-template-columns: 1fr 0.8fr 0.6fr;
  gap: 8px;
  align-items: end;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.06) 1px, transparent 1px) 0 0 /
      18px 18px,
    rgba(245, 243, 229, 0.6);
  padding: 10px;
}

.os-preview-screen i {
  display: block;
  border: 1px solid rgba(17, 17, 17, 0.4);
  border-radius: 6px;
  background: #fff;
  animation: os-bars 1.6s ease-in-out infinite;
}

.os-preview-screen i:nth-child(1) {
  height: 72%;
}

.os-preview-screen i:nth-child(2) {
  height: 48%;
  animation-delay: 180ms;
}

.os-preview-screen i:nth-child(3) {
  height: 62%;
  animation-delay: 320ms;
}

.os-preview-body a {
  justify-self: start;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 8px 13px;
  font-weight: 820;
}

.guide-chat {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 38;
}

.guide-chat-toggle {
  width: 52px;
  height: 52px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #e5a5e9;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.14);
}

.guide-chat-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  display: none;
  width: min(300px, calc(100vw - 36px));
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #d9d9d9;
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.12);
  padding: 16px;
}

.guide-chat.is-open .guide-chat-panel {
  display: grid;
  gap: 12px;
  animation: os-pop 160ms ease both;
}

.guide-chat-panel strong,
.guide-chat-panel p {
  margin: 0;
}

.guide-chat-panel div {
  display: grid;
  gap: 8px;
}

.guide-chat-panel button {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 243, 229, 0.58);
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
  font-weight: 780;
}

.command-console {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: start center;
  background: rgba(0, 0, 0, 0.34);
  padding-top: min(18vh, 120px);
}

.command-console.is-visible {
  display: grid;
}

.command-card {
  display: grid;
  gap: 10px;
  width: min(520px, calc(100% - 28px));
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f5f3e5;
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.18);
  padding: 18px;
}

.command-card label {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-card input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  outline: 0;
  font-weight: 760;
}

.command-list {
  display: grid;
  gap: 8px;
}

.command-list button {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  background: #d9d9d9;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.command-list button strong {
  font-weight: 820;
}

.command-list button span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.25;
}

.command-list button:hover,
.command-list button:focus-visible {
  background: #f5f3e5;
  outline: 0;
}

.section-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(17, 17, 17, 0.7);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(
    calc(var(--cursor-x) - 50%),
    calc(var(--cursor-y) - 50%)
  );
  transition:
    width 140ms ease,
    height 140ms ease,
    opacity 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
  mix-blend-mode: multiply;
}

.section-cursor.is-visible {
  opacity: 1;
}

body[data-cursor-mode="landing"] .section-cursor {
  width: 42px;
  height: 42px;
  background: rgba(229, 165, 233, 0.28);
}

body[data-cursor-mode="about"] .section-cursor {
  border-color: rgba(255, 0, 178, 0.72);
  background:
    radial-gradient(circle, rgba(255, 0, 178, 0.28), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(0, 194, 255, 0.28), transparent 42%);
}

body[data-cursor-mode="service"] .section-cursor {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(#111, #111) center / 18px 1.5px no-repeat,
    linear-gradient(#111, #111) center / 1.5px 18px no-repeat;
}

body[data-cursor-mode="gallery"] .section-cursor {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.08);
}

body[data-cursor-mode="gallery"] .section-cursor::after {
  position: absolute;
  inset: 7px;
  border: 2px solid #111;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  content: "";
  clip-path: polygon(
    0 46%,
    0 100%,
    100% 100%,
    100% 46%,
    82% 46%,
    82% 24%,
    18% 24%,
    18% 46%
  );
}

.is-protected-blur {
  animation: protected-blur 900ms ease both;
}

.is-missing-image {
  position: relative;
}

.is-missing-image::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(17, 17, 17, 0.36);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  content: attr(data-fallback-label);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

.landing {
  width: min(var(--section-width), calc(100% - (var(--section-pad) * 2)));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 70px;
}

.top-gradient {
  position: relative;
  width: 100vw;
  height: var(--hero-gradient-height);
  margin: 0 0 47px calc(50% - 50vw);
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(90deg, rgba(14, 33, 45, 0.7), rgba(12, 13, 15, 0.75)),
    url("../assets/hero-gradient.jpg") center / cover no-repeat;
  background-position:
    center,
    calc(50% + var(--hero-gradient-x)) calc(50% + var(--hero-gradient-y));
  overflow: hidden;
}

.top-gradient::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 243, 229, 0.1),
    transparent
  );
  content: "";
  opacity: 0.45;
  mix-blend-mode: screen;
  transform: translateX(-100%);
  animation: mood-sweep 8s ease-in-out infinite;
}

body[data-time-mood="morning"] .top-gradient::after {
  background: linear-gradient(
    90deg,
    rgba(255, 214, 120, 0.22),
    rgba(159, 214, 255, 0.22),
    transparent
  );
}

body[data-time-mood="day"] .top-gradient::after {
  background: linear-gradient(
    90deg,
    rgba(120, 190, 255, 0.18),
    transparent,
    rgba(255, 255, 255, 0.2)
  );
}

body[data-time-mood="evening"] .top-gradient::after {
  background: linear-gradient(
    90deg,
    rgba(229, 165, 233, 0.24),
    rgba(186, 122, 56, 0.18),
    transparent
  );
}

body[data-time-mood="night"] .top-gradient::after {
  background: linear-gradient(
    90deg,
    rgba(120, 100, 255, 0.2),
    rgba(0, 194, 255, 0.13),
    transparent
  );
}

.portfolio-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 30px;
  margin-bottom: 48px;
}

.portfolio-title-wrap h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
}

.creative-title {
  -webkit-user-select: none;
  user-select: none;
  --creative-title-easing: linear(
    0,
    1.42406 3.67%,
    1.65745 4.64%,
    1.71709 5.111%,
    1.74059 5.591%,
    1.70302 6.361%,
    0.68765 10.781%,
    0.53175 12.451%,
    0.63817 14.071%,
    1.19719 17.652%,
    1.2961 19.322%,
    0.81279 26.183%,
    1.11838 33.053%,
    0.92516 39.914%,
    1.04731 46.775%,
    0.97009 53.635%,
    1.0189 60.486%,
    0.98996 68.807%,
    1.00753 74.157%,
    0.99812 94.579%,
    1
  );
  display: inline-block;
  cursor: default;
}

.creative-title,
.creative-title * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

.creative-title-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.34em;
  row-gap: 0.08em;
}

.creative-title-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
}

.creative-title-letter {
  display: inline-block;
  transform: translateY(calc(var(--elastic-y, 0) * 1px))
    rotate(calc(var(--elastic-rotate, 0) * 1deg));
  transition:
    transform 1.15s var(--creative-title-easing),
    color 240ms ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .creative-title-letter {
    transform: none !important;
    transition: color 160ms ease;
  }
}

.title-image {
  width: var(--title-icon-width);
  height: var(--title-icon-height);
  object-fit: contain;
  border-radius: 5px;
}

.title-fire-wrap {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(34px, 3.4vw, 48px);
  height: clamp(34px, 3.4vw, 48px);
}

.title-fire-wrap::before {
  position: absolute;
  inset: 18% 10% -12%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 153, 67, 0.46),
    rgba(255, 74, 43, 0.22) 46%,
    transparent 72%
  );
  content: "";
  filter: blur(8px);
}

.title-fire-icon {
  position: relative;
  z-index: 1;
  width: clamp(34px, 3.4vw, 48px);
  height: clamp(34px, 3.4vw, 48px);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  clip-path: circle(49% at 50% 50%);
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(28, 18, 8, 0.18));
}

.icon-slot {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(17, 17, 17, 0.35);
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.icon-slot:has(img) {
  border: 0;
  background: transparent;
}

.site-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.small-icon,
.social-icon,
.footer-icon {
  width: var(--footer-icon-size);
  height: var(--footer-icon-size);
  border-radius: 6px;
}

.social-icon {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
}

.app-icon,
.card-icon,
.feature-icon {
  width: var(--app-icon-size);
  height: var(--app-icon-size);
  border-radius: 8px;
}

.card-icon {
  width: var(--card-icon-size);
  height: var(--card-icon-size);
}

.feature-icon {
  width: var(--feature-icon-size);
  height: var(--feature-icon-size);
}

.landing-grid {
  display: grid;
  grid-template-columns: 493px 506px;
  gap: 168px;
  align-items: stretch;
}

.intro-card,
.portfolio-card,
.service-card,
.feature-links a {
  border: 2px solid var(--line);
  background: var(--card-bg);
}

.intro-card {
  display: block;
  min-width: 0;
  height: var(--landing-card-height);
  min-height: var(--landing-card-height);
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  padding: 18px;
}

.intro-card-inner {
  display: grid;
  grid-template-columns: 157px 1fr;
  gap: 34px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-items: start;
  background: #d9d9d9;
  padding: 28px 18px 18px;
}

.media-slot {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(17, 17, 17, 0.36);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 0.88rem;
}

.intro-photo-frame {
  position: relative;
  display: block;
  width: 157px;
  height: 156px;
  min-height: 0;
  border-radius: 5px;
  justify-self: start;
  overflow: hidden;
  transform: translate(var(--intro-photo-x), var(--intro-photo-y))
    scale(var(--intro-photo-scale));
  transition:
    filter 180ms ease,
    transform 180ms ease;
  will-change: transform, filter;
}

.intro-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.intro-photo-frame.is-changing {
  filter: saturate(1.18) contrast(1.05);
  transform: translate(var(--intro-photo-x), var(--intro-photo-y))
    scale(calc(var(--intro-photo-scale) * 1.035));
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.intro-copy p:not(.eyebrow),
.service-copy p,
.about-copy p,
.skill-preview p,
.portfolio-card p,
.feature-links p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.intro-copy .eyebrow {
  color: #000;
  font-size: 1.38rem;
  line-height: 1.08;
}

.intro-copy p:not(.eyebrow) {
  color: #000;
  font-size: 1.26rem;
  line-height: 1.2;
}

.primary-action,
.service-card,
.feature-links a,
.tab-button,
.skill-pill,
.more-panel,
.software-icons button,
.dialog-close,
.mail-form button {
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 25px;
  border: 0;
  border-radius: 8px;
  padding: 4px 10px;
  background: #7f7f7f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  max-width: 100%;
  white-space: nowrap;
}

.calendar-glyph {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #f6f6f6;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.calendar-glyph::before {
  width: 14px;
  height: 13px;
  border: 1.5px solid #f6f6f6;
  border-radius: 2px;
  background: linear-gradient(#f6f6f6 0 3px, transparent 3px);
  content: "";
}

.calendar-glyph::after {
  position: absolute;
  top: 9px;
  left: 5px;
  width: 8px;
  height: 1.5px;
  background: #f6f6f6;
  box-shadow: 0 4px 0 #f6f6f6;
  content: "";
}

.primary-action:hover {
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.18);
  transform: translate(-2px, -2px);
}

.portfolio-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: var(--landing-card-height);
  min-height: var(--landing-card-height);
  padding: 24px 27px 20px;
  border: 2px solid #000;
  border-radius: 7px;
  background: transparent;
  overflow: hidden;
}

.skill-tools-title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  margin-bottom: 25px;
  padding-left: 0;
}

.skill-tools-title h2 {
  margin: 0;
  font-size: 2.28rem;
  line-height: 1.18;
  font-weight: 800;
}

.portfolio-tabs {
  position: absolute;
  top: 162px;
  left: 36px;
  z-index: 2;
  display: grid;
  width: 430px;
  grid-template-columns: max-content max-content;
  gap: 18px;
  margin-bottom: 0;
  padding: 0 0 10px 18px;
  border-bottom: 1px solid #555;
}

.tab-button,
.skill-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  min-height: 28px;
  padding: 0;
  font-size: 1.16rem;
  text-align: left;
}

.inline-icon {
  display: block;
  width: var(--inline-icon-size);
  height: var(--inline-icon-size);
  object-fit: contain;
}

.tab-button.is-active,
.skill-pill.is-active {
  background: transparent;
  color: #000;
}

.tab-button::before {
  content: none;
}

.tab-button.is-active::after {
  position: absolute;
  right: -1px;
  bottom: -11px;
  left: 0;
  height: 2px;
  background: #000;
  content: "";
}

.tab-panel {
  display: none;
  width: 457px;
  height: 298px;
  min-height: 298px;
  border-radius: 8px;
  background: #d9d9d9;
}

.tab-panel.is-active {
  display: flex;
  flex-direction: column;
}

.landing-skill-panel {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 115px 27px 14px;
}

.skill-card-row {
  display: grid;
  grid-template-columns: repeat(3, 117px);
  gap: 20px;
}

.landing-skill-card {
  display: block;
  width: 117px;
  height: 121px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.landing-skill-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-more-link {
  align-self: center;
  margin-top: 26px;
  border: 0;
  border-bottom: 1px solid #000;
  background: transparent;
  padding: 0 0 1px;
  color: #000;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  line-height: 1;
  text-decoration: none;
}

.language-empty {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  border: 0;
  background: transparent;
}

.more-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.more-panel:hover {
  background: var(--ink);
  color: #fff;
}

.social-row {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-top: 82px;
  padding: 0 58px;
}

.soft-link.is-empty {
  width: 137px;
  text-decoration: none;
}

.soft-link.is-linkedin {
  width: 145px;
}

.soft-link.is-medium {
  width: 137px;
  text-decoration: none;
}

.soft-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  width: 130px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 8px;
  background: #e5a5e9;
  color: #251f8f;
  font-weight: 400;
  text-decoration: none !important;
  white-space: nowrap;

  box-shadow: none;
}

.soft-link-label {
  position: relative;
  display: inline-flex;
  letter-spacing: 0.32em;
  line-height: 1;
  color: inherit;

  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;

  transition:
    transform 180ms ease,
    letter-spacing 180ms ease;
}

.social-icon {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);

  transition: transform 180ms ease;
}

.soft-link:hover .soft-link-label,
.soft-link:focus-visible .soft-link-label {
  transform: translateY(-3px);
  letter-spacing: 0.4em;
  color: #251f8f;
}

.soft-link:hover .social-icon,
.soft-link:focus-visible .social-icon {
  transform: translateY(-3px) rotate(-8deg) scale(1.12);
}

.section-divider {
  position: relative;
  width: 100vw;
  height: 64px;
  margin: 14px 0 30px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: url("../assets/divider-shadow.png") center / 100% 64px no-repeat;
}

.section-divider::before {
  content: none;
}

.section-divider::after {
  content: none;
}

.about-section,
.service-section,
.feature-section,
.carousel-section {
  width: min(var(--section-width), calc(100% - (var(--section-pad) * 2)));
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.about-section {
  padding-top: 34px;
}

.name-stage {
  min-height: 82px;
  margin-bottom: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  transform: none;
}

.language-name {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1;
  font-weight: 760;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.language-name:hover,
.language-name.is-changing {
  transform: translateY(-3px);
}

.status-strip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: min(100%, 560px);
  max-width: min(100%, 560px);
  gap: 8px;
  transform: none;
}

.status-strip span {
  position: relative;
  min-width: 86px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 999px;
  padding: 5px 10px 5px 27px;
  background: rgba(217, 217, 217, 0.48);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1;
  text-align: center;
}

.status-strip span::before {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ba7a38;
  box-shadow: 0 0 0 0 rgba(186, 122, 56, 0.34);
  content: "";
  transform: translateY(-50%);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.status-strip span:nth-child(2)::before {
  animation-delay: 260ms;
}

.status-strip span:nth-child(3)::before {
  animation-delay: 520ms;
}

.status-strip span:nth-child(4)::before {
  animation-delay: 780ms;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(280px, 0.72fr);
  grid-template-areas:
    "info portrait"
    "software portrait"
    "education experience";
  gap: 22px 46px;
  align-items: start;
  padding-bottom: 34px;
}

.portrait-frame {
  grid-area: portrait;
  position: relative;
  min-height: 470px;
  perspective: 900px;
  border: 0;
  border-radius: 14px;
  overflow: visible;
  isolation: isolate;
}

.portrait-frame::before {
  position: absolute;
  right: 8%;
  bottom: 4%;
  left: 8%;
  z-index: -1;
  height: 42%;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at var(--photo-glow-x) var(--photo-glow-y),
      rgba(255, 78, 210, 0.95),
      transparent 23%
    ),
    radial-gradient(
      circle at calc(var(--photo-glow-x) + 16%) calc(var(--photo-glow-y) + 8%),
      rgba(20, 255, 220, 0.9),
      transparent 28%
    ),
    radial-gradient(
      circle at calc(var(--photo-glow-x) - 18%) calc(var(--photo-glow-y) + 10%),
      rgba(255, 214, 56, 0.86),
      transparent 26%
    ),
    linear-gradient(
      90deg,
      rgba(114, 89, 255, 0.7),
      rgba(255, 88, 88, 0.68),
      rgba(44, 255, 151, 0.64)
    );
  content: "";
  filter: blur(30px);
  opacity: 0;
  transform: translateY(24px) scale(0.86);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.portrait-frame::after {
  position: absolute;
  top: var(--photo-glow-y);
  left: var(--photo-glow-x);
  z-index: 2;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.82) 0 8%,
    rgba(255, 0, 178, 0.72) 9% 20%,
    rgba(0, 194, 255, 0.64) 21% 33%,
    rgba(255, 214, 0, 0.56) 34% 47%,
    transparent 62%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.25);
}

.portrait-frame.is-playing::before {
  opacity: 1;
  transform: translateY(10px) scale(1);
}

.portrait-frame.is-pouring::after {
  animation: color-pour 760ms ease-out forwards;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: translate(var(--portrait-x), var(--portrait-y))
    scale(var(--portrait-scale));
}

.portrait-frame.is-playing img {
  filter: saturate(1.22) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.about-copy {
  grid-area: info;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: transparent;
}

.software-block {
  grid-area: software;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  background: transparent;
}

.education-block {
  grid-area: education;
}

.experience-block {
  grid-area: experience;
}

.about-copy h2,
.software-block h3,
.education-block h3,
.experience-block h3,
.service-copy h2 {
  margin: 0 0 14px;
  font-weight: 790;
}

.about-copy h2,
.education-block h3,
.experience-block h3 {
  font-size: 2rem;
}

.software-icons {
  display: grid;
  grid-template-columns: repeat(5, 48px);
  gap: 30px;
  margin: 14px 0;
}

.software-icons button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.software-icons button.is-active .app-icon {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.software-note {
  min-height: 46px;
}

.education-block article,
.experience-block article {
  margin-bottom: 20px;
}

.education-block h4,
.experience-block h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 760;
}

.education-block p,
.experience-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.service-section {
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(420px, 1fr);
  gap: 58px;
  align-items: start;
  padding: 16px 0 46px;
}

.service-copy {
  position: sticky;
  top: 110px;
}

.service-copy h2 {
  max-width: 420px;
  font-size: 3.15rem;
  line-height: 1.02;
}

.service-subtitle {
  max-width: 420px;
  font-size: 1.2rem;
  font-weight: 650;
}

.service-copy p:last-child {
  max-width: 410px;
  margin-top: 16px;
}

.service-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.service-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.service-demo {
  display: block;
  width: 100%;
  height: 42px;
  margin: -4px 0 2px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  background: rgba(245, 243, 229, 0.42);
  overflow: hidden;
}

.service-demo-automation {
  position: relative;
}

.service-demo-automation i {
  position: absolute;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  animation: workflow-dot 1.7s linear infinite;
}

.service-demo-automation i:nth-child(1) {
  left: 12%;
}

.service-demo-automation i:nth-child(2) {
  left: 34%;
  animation-delay: 180ms;
}

.service-demo-automation i:nth-child(3) {
  left: 58%;
  animation-delay: 360ms;
}

.service-demo-automation i:nth-child(4) {
  left: 80%;
  animation-delay: 540ms;
}

.service-demo-web {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  padding: 6px;
}

.service-demo-web i {
  border-radius: 4px;
  background: #111;
  opacity: 0.18;
  animation: responsive-block 1.8s ease-in-out infinite;
}

.service-demo-web i:first-child {
  grid-row: span 2;
}

.service-demo-web i:nth-child(2) {
  animation-delay: 200ms;
}

.service-demo-web i:nth-child(3) {
  animation-delay: 400ms;
}

.service-demo-seo {
  display: flex;
  align-items: end;
  gap: 7px;
  padding: 7px;
}

.service-demo-seo i {
  width: 24%;
  border-radius: 5px 5px 0 0;
  background: #111;
  opacity: 0.18;
  animation: rank-rise 1.9s ease-in-out infinite;
}

.service-demo-seo i:nth-child(1) {
  height: 30%;
}

.service-demo-seo i:nth-child(2) {
  height: 54%;
  animation-delay: 180ms;
}

.service-demo-seo i:nth-child(3) {
  height: 78%;
  animation-delay: 360ms;
}

.service-demo-network {
  position: relative;
}

.service-demo-network::before,
.service-demo-network::after {
  position: absolute;
  top: 20px;
  right: 18px;
  left: 18px;
  height: 1.5px;
  background: rgba(17, 17, 17, 0.26);
  content: "";
}

.service-demo-network::after {
  top: 12px;
  transform: rotate(9deg);
}

.service-demo-network i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid #111;
  border-radius: 50%;
  background: #f5f3e5;
}

.service-demo-network i:nth-child(1) {
  top: 16px;
  left: 14px;
}

.service-demo-network i:nth-child(2) {
  top: 8px;
  left: 42%;
}

.service-demo-network i:nth-child(3) {
  top: 22px;
  left: 58%;
}

.service-demo-network i:nth-child(4) {
  top: 16px;
  right: 14px;
  animation: packet-pulse 1.2s ease-in-out infinite;
}

.service-card.offset-card {
  margin-top: -22px;
}

.service-card:nth-child(3) {
  margin-top: 24px;
}

.service-card:nth-child(4) {
  margin-top: 2px;
}

.service-card .service-demo i {
  animation-play-state: running;
}

.service-card:hover,
.service-card.is-active {
  background: #fff;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.16);
  transform: translate(-2px, -2px);
}

.service-card:hover .service-demo i,
.service-card.is-active .service-demo i {
  animation-play-state: running;
}

.service-card strong {
  font-size: 1.24rem;
}

.service-card span:not(.icon-slot) {
  color: var(--muted);
  font-weight: 650;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(340px, 0.64fr);
  gap: 58px;
  align-items: center;
  padding: 8px 0 34px;
}

.quote-block {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: center;
}

.quote-photo-frame {
  position: relative;
  width: 188px;
  height: 188px;
  min-height: 188px;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
}

.quote-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--quote-photo-x), var(--quote-photo-y))
    scale(var(--quote-photo-scale));
}

blockquote {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.18;
  font-weight: 720;
}

.feature-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-links a {
  position: relative;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.feature-card-title,
.feature-card-meta {
  position: relative;
  z-index: 1;
}

.feature-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(245, 243, 229, 0.62);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.feature-card-meta::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ba7a38;
  content: "";
}

.feature-links a[data-feature="gallery"]::after {
  position: absolute;
  top: -42%;
  bottom: -42%;
  left: -48%;
  z-index: 0;
  width: 32%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(18deg);
}

.feature-links a[data-feature="gallery"]:hover::after,
.feature-links a[data-feature="gallery"].is-shaking::after {
  animation: gallery-scan 980ms ease-out;
  opacity: 1;
}

.feature-links a[data-feature="gallery"] .feature-card-meta::before {
  border-radius: 2px;
  background:
    linear-gradient(#111 0 0) center 58% / 9px 6px no-repeat,
    linear-gradient(#111 0 0) center 0 / 7px 6px no-repeat;
}

.feature-links a[data-feature="projects"] {
  background:
    linear-gradient(135deg, rgba(245, 243, 229, 0.78) 0 28px, transparent 29px),
    var(--card-bg);
}

.feature-links a[data-feature="projects"]::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 72px;
  z-index: 0;
  height: 36px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.14) 0 0) 0 0 / 74% 1px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.12) 0 0) 0 12px / 54% 1px no-repeat,
    linear-gradient(rgba(17, 17, 17, 0.1) 0 0) 0 24px / 64% 1px no-repeat;
  content: "";
  opacity: 0.65;
  pointer-events: none;
}

.feature-links a.is-shaking {
  animation: locked-shake 620ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.feature-links p {
  min-height: 46px;
}

.carousel-section {
  padding: 12px 0 48px;
  overflow: hidden;
}

.logo-carousel {
  overflow: hidden;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  padding: 15px 0;
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee 18s linear infinite;
  animation-play-state: running;
}

.logo-carousel:hover .carousel-track,
.logo-carousel:focus-within .carousel-track {
  animation-play-state: paused;
}

.carousel-track span {
  min-width: 128px;
  border: 1px dashed rgba(17, 17, 17, 0.3);
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.35);
  text-align: center;
  font-weight: 680;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes radar-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.08);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(186, 122, 56, 0.14);
  }
}

@keyframes mood-sweep {
  0%,
  42% {
    transform: translateX(-100%);
  }
  72%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes os-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes os-bars {
  0%,
  100% {
    transform: scaleY(0.78);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes workflow-dot {
  0%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-8px) scale(1.25);
    opacity: 1;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(186, 122, 56, 0);
    opacity: 0.72;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(186, 122, 56, 0.16);
    opacity: 1;
  }
}

@keyframes responsive-block {
  0%,
  100% {
    transform: scaleX(0.74);
    opacity: 0.18;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.34;
  }
}

@keyframes rank-rise {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.18;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.38;
  }
}

@keyframes packet-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.22);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(17, 17, 17, 0.02);
  }
}

@keyframes protected-blur {
  0%,
  100% {
    filter: none;
  }
  35%,
  70% {
    filter: blur(5px) saturate(0.45);
  }
}

@keyframes transition-load {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(330%);
  }
}

@keyframes gallery-scan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(390%);
  }
}

@keyframes gallery-cell {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(0.96);
  }
}

@keyframes web-morph {
  0%,
  100% {
    transform: scaleX(0.86);
  }
  50% {
    transform: scaleX(1);
  }
}

@keyframes packet-travel {
  0% {
    left: 10%;
    top: 42%;
  }
  45% {
    left: 41%;
    top: 24%;
  }
  75% {
    left: 60%;
    top: 61%;
  }
  100% {
    left: 88%;
    top: 43%;
  }
}

@keyframes automation-step {
  0%,
  100% {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.62);
  }
  50% {
    transform: translateY(-7px);
    background: #f5f3e5;
  }
}

@keyframes automation-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(560px);
  }
}

@keyframes seo-rise {
  0%,
  100% {
    transform: scaleY(0.74);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes file-stamp {
  0%,
  100% {
    transform: rotate(-3deg) scale(1);
  }
  50% {
    transform: rotate(-3deg) scale(1.04);
  }
}

@keyframes file-line {
  0%,
  100% {
    transform: scaleX(0.82);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes skill-node {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(186, 122, 56, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(186, 122, 56, 0.12);
    transform: scale(1.08);
  }
}

@keyframes color-pour {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  30% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.05);
  }
}

@keyframes gallery-scan {
  from {
    left: -48%;
  }
  to {
    left: 118%;
  }
}

@keyframes locked-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  12%,
  36%,
  60%,
  84% {
    transform: translateX(-10px);
  }
  24%,
  48%,
  72% {
    transform: translateX(10px);
  }
}

@keyframes lab-scan {
  from {
    background-position:
      0 0,
      center,
      center,
      center;
  }
  to {
    background-position:
      0 96px,
      center,
      center,
      center;
  }
}

.site-footer {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto 18px;
  border-radius: 10px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr) 116px;
  gap: 22px;
  align-items: start;
}

.mail-form {
  display: grid;
  gap: 10px;
}

.mail-form label {
  font-weight: 720;
}

.mail-form div {
  display: flex;
  width: min(100%, 360px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.mail-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  outline: 0;
}

.mail-form input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.mail-form button {
  border: 0;
  background: #f1f1ec;
  color: #111;
  padding: 10px 14px;
  font-weight: 760;
}

.mail-form [data-mail-message] {
  min-height: 1.1em;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 760;
}

.footer-links {
  justify-content: center;
  color: var(--footer-ink);
}

.footer-links a::after {
  background: rgba(255, 255, 255, 0.14);
}

.qr-slot {
  display: flex;
  width: 104px;
  height: 104px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  padding: 6px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.94);
  text-decoration: none;
}

.qr-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 28px;
  min-height: 44px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-icon {
  border-color: rgba(255, 255, 255, 0.38);
}

.footer-brand {
  color: rgba(255, 255, 255, 0.1);
  font-size: 4.6rem;
  letter-spacing: 0.07em;
  line-height: 0.08;
  white-space: nowrap;
}

.footer-bottom p {
  justify-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  margin: 0;
  text-align: right;
}

.booking-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.booking-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.booking-card {
  position: relative;
  display: grid;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 24px;
}

.booking-card h2,
.booking-card p {
  margin: 0;
}

.booking-card label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.booking-card input,
.booking-card textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  outline: 0;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.booking-message {
  min-height: 22px;
  color: var(--muted);
}

.photo-warning-dialog {
  width: min(430px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.photo-warning-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
}

.photo-warning-card {
  display: grid;
  gap: 18px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 26px;
  text-align: center;
}

.photo-warning-card.is-shaking {
  animation: locked-shake 620ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.photo-warning-card.is-unlocking {
  box-shadow: 0 0 0 6px rgba(186, 122, 56, 0.16);
}

.photo-warning-card.is-granted {
  background: #ded6bd;
}

.photo-warning-card h2,
.photo-warning-card p {
  margin: 0;
}

.photo-warning-card h2 {
  font-size: 2rem;
  line-height: 1;
  font-weight: 820;
}

.photo-warning-card p {
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-scan {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid rgba(17, 17, 17, 0.2);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.04) 0 8px,
      transparent 8px 16px
    ),
    rgba(245, 243, 229, 0.42);
  padding: 8px;
}

.gallery-scan span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(186, 122, 56, 0.74),
    transparent
  );
  opacity: 0;
}

.photo-warning-card.is-unlocking .gallery-scan span {
  opacity: 1;
  animation: gallery-scan 820ms ease-in-out infinite;
}

.photo-warning-card.is-granted .gallery-scan span {
  left: 0;
  width: 100%;
  opacity: 0.3;
  animation: none;
}

.gallery-scan strong {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-warning-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.photo-warning-actions button {
  min-width: 94px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 8px 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.photo-warning-actions button:last-child {
  background: var(--ink);
  color: #fff;
}

.photo-warning-exit {
  appearance: none;
  -webkit-appearance: none;
  justify-self: center;
  min-width: auto;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  color: #000;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.1;
  box-shadow: none;
}

.detail-body {
  min-height: 100vh;
  background: var(--page-bg);
  overflow-x: hidden;
}

.detail-shell {
  width: min(1060px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  padding: 42px 0 64px;
}

.detail-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
}

.detail-back::before {
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  height: auto;
  background: none;
  content: "<";
  opacity: 1;
  pointer-events: none;
  transform: none;
  transition: none;
}

.detail-card {
  width: 100%;
  max-width: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.08);
  padding: clamp(22px, 5vw, 52px);
}

.detail-card h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2.15rem, 5.8vw, 4.15rem);
  line-height: 0.98;
  font-weight: 820;
  text-wrap: balance;
}

.detail-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: #000;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.35;
  font-weight: 620;
}

.detail-system-demo {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 116px;
  margin-top: 28px;
  overflow: hidden;
  border: 1.8px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px) 0 0 /
      24px 24px,
    rgba(245, 243, 229, 0.5);
}

.detail-system-demo i,
.detail-system-demo span,
.detail-system-demo strong {
  position: relative;
  z-index: 1;
}

.detail-system-gallery {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.detail-system-gallery i {
  min-height: 34px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
  animation: gallery-cell 2.4s ease-in-out infinite;
}

.detail-system-gallery i:nth-child(2n) {
  animation-delay: 180ms;
}

.detail-system-gallery span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(186, 122, 56, 0.5),
    transparent
  );
  animation: gallery-scan 2.2s ease-in-out infinite;
}

.detail-system-web {
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}

.detail-system-web i {
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  animation: web-morph 2.6s ease-in-out infinite;
}

.detail-system-web i:first-child {
  grid-row: span 2;
}

.detail-system-web i:nth-child(2) {
  animation-delay: 160ms;
}

.detail-system-web i:nth-child(3) {
  animation-delay: 320ms;
}

.detail-system-web i:nth-child(4) {
  animation-delay: 480ms;
}

.detail-system-network {
  min-height: 126px;
}

.detail-system-network::before,
.detail-system-network::after {
  position: absolute;
  right: 12%;
  left: 12%;
  height: 2px;
  background: rgba(17, 17, 17, 0.22);
  content: "";
}

.detail-system-network::before {
  top: 38%;
  transform: rotate(7deg);
}

.detail-system-network::after {
  top: 62%;
  transform: rotate(-6deg);
}

.detail-system-network i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #111;
  border-radius: 50%;
  background: var(--page-bg);
}

.detail-system-network i:nth-child(1) {
  top: 34%;
  left: 10%;
}

.detail-system-network i:nth-child(2) {
  top: 22%;
  left: 38%;
}

.detail-system-network i:nth-child(3) {
  top: 62%;
  left: 58%;
}

.detail-system-network i:nth-child(4) {
  top: 42%;
  right: 10%;
}

.detail-system-network span {
  position: absolute;
  top: 42%;
  left: 10%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ba7a38;
  animation: packet-travel 2.4s ease-in-out infinite;
}

.detail-system-automation {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px;
}

.detail-system-automation::before {
  position: absolute;
  right: 13%;
  left: 13%;
  height: 2px;
  background: rgba(17, 17, 17, 0.24);
  content: "";
}

.detail-system-automation i {
  width: 32px;
  height: 32px;
  border: 2px solid #111;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  animation: automation-step 1.8s ease-in-out infinite;
}

.detail-system-automation i:nth-child(2) {
  animation-delay: 160ms;
}

.detail-system-automation i:nth-child(3) {
  animation-delay: 320ms;
}

.detail-system-automation i:nth-child(4) {
  animation-delay: 480ms;
}

.detail-system-automation span {
  position: absolute;
  left: 13%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  animation: automation-flow 1.8s linear infinite;
}

.detail-system-seo {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 16px;
}

.detail-system-seo i {
  flex: 1;
  border: 1.5px solid rgba(17, 17, 17, 0.3);
  border-radius: 9px 9px 0 0;
  background: rgba(17, 17, 17, 0.14);
  transform-origin: bottom;
  animation: seo-rise 2.4s ease-in-out infinite;
}

.detail-system-seo i:nth-child(1) {
  height: 32%;
}

.detail-system-seo i:nth-child(2) {
  height: 48%;
  animation-delay: 160ms;
}

.detail-system-seo i:nth-child(3) {
  height: 68%;
  animation-delay: 320ms;
}

.detail-system-seo i:nth-child(4) {
  height: 86%;
  animation-delay: 480ms;
}

.detail-system-projects {
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.detail-system-projects strong {
  justify-self: start;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 6px 10px;
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  transform: rotate(-3deg);
  animation: file-stamp 2.8s ease-in-out infinite;
}

.detail-system-projects i {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.16);
  animation: file-line 2.2s ease-in-out infinite;
}

.detail-system-projects i:nth-child(3) {
  width: 72%;
  animation-delay: 180ms;
}

.detail-system-projects i:nth-child(4) {
  width: 54%;
  animation-delay: 360ms;
}

.detail-system-more {
  min-height: 132px;
}

.detail-system-more::before,
.detail-system-more::after {
  position: absolute;
  inset: 32px 16% auto;
  height: 2px;
  background: rgba(17, 17, 17, 0.2);
  content: "";
  transform: rotate(12deg);
  transform-origin: left;
}

.detail-system-more::after {
  top: 82px;
  transform: rotate(-11deg);
}

.detail-system-more i {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #111;
  border-radius: 50%;
  background: var(--page-bg);
  animation: skill-node 2.4s ease-in-out infinite;
}

.detail-system-more i:nth-child(1) {
  top: 24px;
  left: 12%;
}

.detail-system-more i:nth-child(2) {
  top: 34px;
  left: 36%;
  animation-delay: 160ms;
}

.detail-system-more i:nth-child(3) {
  top: 74px;
  left: 52%;
  animation-delay: 320ms;
}

.detail-system-more i:nth-child(4) {
  top: 42px;
  right: 14%;
  animation-delay: 480ms;
}

.detail-system-more i:nth-child(5) {
  bottom: 18px;
  left: 22%;
  animation-delay: 640ms;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin-top: clamp(28px, 5vw, 54px);
}

.detail-block,
.detail-slot {
  border: 1.8px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 243, 229, 0.42);
  padding: 18px;
}

.detail-block h2,
.detail-slot strong {
  margin: 0 0 12px;
  color: #000;
  font-size: 1.2rem;
  font-weight: 820;
}

.detail-block p,
.detail-slot p {
  margin: 0;
  color: var(--muted);
}

.detail-slot {
  min-height: 220px;
}

.detail-slot-grid {
  display: grid;
  gap: 14px;
}

.detail-media {
  position: relative;
  display: grid;
  min-height: 170px;
  place-items: center;
  border: 1.5px dashed rgba(17, 17, 17, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--muted);
  font-weight: 760;
}

.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-chip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  padding: 7px 12px;
  color: #000;
  font-size: 0.9rem;
  font-weight: 760;
}

.detail-empty {
  min-height: 320px;
}

.local-seo-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(39, 119, 196, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(42, 171, 210, 0.14),
      transparent 23%
    ),
    var(--page-bg);
}

.local-seo-nav,
.local-seo-footer,
.local-seo-shell {
  width: min(var(--section-width), calc(100% - 32px));
  margin-inline: auto;
}

.local-seo-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  padding: 12px 16px;
  backdrop-filter: blur(12px);
}

.local-seo-nav nav,
.local-seo-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.local-service-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.local-service-brand img {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(17, 17, 17, 0.24);
  border-radius: 10px;
  object-fit: cover;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.local-service-brand span {
  display: grid;
  line-height: 1.05;
}

.local-service-brand strong {
  font-size: 0.98rem;
  font-weight: 880;
}

.local-service-brand small {
  color: #456171;
  font-size: 0.72rem;
  font-weight: 760;
}

.local-service-brand:hover img {
  box-shadow: 4px 4px 0 rgba(39, 119, 196, 0.24);
  transform: rotate(-4deg) translateY(-1px);
}

.local-seo-nav a,
.local-seo-footer a,
.local-seo-shell a {
  color: inherit;
  font-weight: 820;
  text-underline-offset: 4px;
}

.local-seo-nav nav a {
  position: relative;
  border-radius: 999px;
  padding: 7px 2px;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.local-seo-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(39, 119, 196, 0.18);
  content: "";
  transform: scaleX(0.36);
  transform-origin: center;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.local-seo-nav nav a:hover,
.local-seo-nav nav a:focus-visible {
  color: #1d5f9f;
  transform: translateY(-1px);
}

.local-seo-nav nav a:hover::after,
.local-seo-nav nav a:focus-visible::after {
  background: rgba(39, 119, 196, 0.3);
  transform: scaleX(1);
}

.topic-faq-body .automation-service-nav,
.topic-faq-body .web-dev-nav,
.topic-faq-body .local-seo-nav {
  width: min(720px, calc(100% - 32px));
  margin: 16px auto 0;
  gap: 18px;
  padding: 12px 16px;
}

.topic-faq-body .automation-service-nav nav,
.topic-faq-body .web-dev-nav nav,
.topic-faq-body .local-seo-nav nav {
  gap: 18px;
}

.local-seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 34px;
  align-items: stretch;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(217, 217, 217, 0.72)
  );
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.08);
  padding: clamp(24px, 5vw, 58px);
}

.local-seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #456171;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.local-seo-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2777c4;
  content: "";
}

.local-seo-hero h1,
.local-text-block h2,
.local-section-head h2,
.local-process h2,
.local-pricing h2,
.local-schedule h2,
.local-faq h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.8vw, 4.7rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.local-seo-lead,
.local-text-block p,
.local-section-head p,
.local-feature-card p,
.local-signal-row p,
.local-compare li,
.local-steps p,
.local-pricing p,
.local-schedule p,
.local-schedule li,
.local-faq p,
.local-clean-list li {
  color: var(--muted);
}

.local-seo-lead {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  font-weight: 620;
  line-height: 1.55;
}

.local-seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.local-seo-button {
  display: inline-flex;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.local-seo-button.is-primary {
  background: #2777c4;
  color: #fff;
}

.local-seo-hero-media {
  display: grid;
  gap: 14px;
}

.local-seo-image-slot {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border: 2px dashed rgba(17, 17, 17, 0.35);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(39, 119, 196, 0.18), rgba(42, 171, 210, 0.16)),
    rgba(255, 255, 255, 0.7);
  padding: 20px;
  color: #50606a;
  font-weight: 850;
  text-align: center;
}

.local-seo-image-slot::after {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(39, 119, 196, 0.16);
  content: "";
}

.local-seo-image-slot.is-compact {
  min-height: 220px;
}

.local-seo-image-slot.is-large {
  min-height: 320px;
}

.local-search-preview {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--page-bg);
  padding: 18px;
}

.local-search-bar {
  height: 38px;
  margin-bottom: 14px;
  border: 1.5px solid rgba(17, 17, 17, 0.25);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(39, 119, 196, 0.22), rgba(42, 171, 210, 0.18)),
    #fff;
}

.local-rating {
  color: #2777c4;
  font-weight: 900;
}

.local-search-preview strong {
  display: block;
  margin: 6px 0;
  font-size: 1.25rem;
}

.local-search-preview p,
.local-search-preview strong {
  margin-bottom: 0;
}

.local-trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.local-trust-strip span {
  border: 1.5px solid rgba(39, 119, 196, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px 12px;
  font-weight: 820;
  text-align: center;
}

.local-seo-split,
.local-section-head,
.local-process,
.local-schedule {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
}

.local-snapshot {
  align-items: center;
}

.local-visual-card,
.local-signal-row article,
.local-compare article {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.local-visual-card {
  box-shadow: 8px 8px 0 rgba(39, 119, 196, 0.16);
}

.local-mini-report {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.local-mini-report i {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #2777c4 var(--bar-width),
    rgba(17, 17, 17, 0.14) var(--bar-width)
  );
}

.local-section {
  display: grid;
  gap: 22px;
}

.local-section-head {
  align-items: end;
  border-bottom: 1.5px solid rgba(17, 17, 17, 0.22);
  padding-bottom: 18px;
}

.local-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.local-feature-card {
  display: grid;
  gap: 12px;
  border-top: 2px solid var(--line);
  padding-top: 16px;
}

.local-feature-card h3,
.local-signal-row h3,
.local-compare h3,
.local-steps h3,
.local-pricing h3,
.local-schedule h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.local-thumb {
  display: grid;
  height: 150px;
  place-items: center;
  border: 2px dashed rgba(17, 17, 17, 0.3);
  border-radius: 10px;
  padding: 12px;
  color: #50606a;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.local-feature-card:nth-child(1) .local-thumb,
.local-feature-card:nth-child(3) .local-thumb {
  background: rgba(39, 119, 196, 0.16);
}

.local-feature-card:nth-child(2) .local-thumb,
.local-feature-card:nth-child(4) .local-thumb {
  background: rgba(42, 171, 210, 0.16);
}

.local-clean-list {
  padding-left: 20px;
}

.local-signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.local-signal-grid span {
  border: 1.5px solid rgba(39, 119, 196, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 7px 12px;
  font-weight: 780;
}

.local-signal-row,
.local-compare,
.local-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.local-signal-row article strong {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(39, 119, 196, 0.15);
  padding: 5px 10px;
}

.local-compare {
  grid-template-columns: 1fr 1fr;
}

.local-compare article.is-after,
.local-pricing article.is-featured {
  background:
    linear-gradient(135deg, rgba(39, 119, 196, 0.18), rgba(42, 171, 210, 0.14)),
    #fff;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.1);
}

.local-process {
  align-items: start;
}

.local-steps {
  display: grid;
  border-left: 2px solid var(--line);
  padding-left: 24px;
}

.local-steps article {
  position: relative;
  padding-bottom: 22px;
}

.local-steps article::before {
  position: absolute;
  top: 4px;
  left: -33px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #2777c4;
  content: "";
}

.local-pricing {
  background: #fff;
  padding: clamp(22px, 4vw, 42px);
}

.local-pricing-grid {
  margin-top: 22px;
}

.local-pricing article {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--page-bg);
  padding: 20px;
}

.local-price {
  color: var(--ink) !important;
  font-size: 1.8rem;
  font-weight: 920;
}

.local-pricing ul,
.local-schedule ul,
.local-compare ul {
  padding-left: 20px;
}

.local-schedule {
  background:
    linear-gradient(135deg, rgba(39, 119, 196, 0.32), rgba(42, 171, 210, 0.2)),
    var(--ink);
  color: #fff;
  padding: clamp(24px, 4vw, 44px);
}

.local-schedule .local-seo-kicker,
.local-schedule p {
  color: rgba(255, 255, 255, 0.78);
}

.local-schedule aside {
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 20px;
}

.local-faq details {
  border-bottom: 1.5px solid rgba(17, 17, 17, 0.22);
  padding: 16px 0;
}

.local-faq summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 850;
}

.local-seo-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 18px;
}

@media (max-width: 960px) {
  .local-seo-hero,
  .local-seo-split,
  .local-section-head,
  .local-process,
  .local-schedule {
    grid-template-columns: 1fr;
  }

  .local-trust-strip,
  .local-feature-grid,
  .local-signal-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .local-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .local-seo-nav,
  .local-seo-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .local-seo-nav nav,
  .local-seo-footer nav {
    gap: 10px;
  }

  .local-seo-nav nav {
    justify-content: space-between;
  }

  .local-service-brand {
    justify-content: center;
  }

  .local-trust-strip,
  .local-feature-grid,
  .local-signal-row,
  .local-compare {
    grid-template-columns: 1fr;
  }

  .local-seo-hero {
    padding: 22px;
  }

  .local-seo-image-slot {
    min-height: 210px;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  :root {
    --section-pad: 20px;
    --landing-card-height: clamp(412px, 42vw, 453px);
  }

  .portfolio-title-wrap {
    margin-bottom: 38px;
  }

  .landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 4vw, 64px);
  }

  .intro-card {
    padding: clamp(14px, 1.6vw, 18px);
  }

  .intro-card-inner {
    grid-template-columns: clamp(120px, 14vw, 157px) minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 34px);
    padding: clamp(20px, 2.2vw, 28px) clamp(14px, 1.6vw, 18px) 18px;
  }

  .intro-photo-frame {
    width: clamp(120px, 14vw, 157px);
    height: clamp(120px, 14vw, 156px);
  }

  .intro-copy {
    gap: clamp(8px, 1.1vw, 14px);
  }

  .intro-copy .eyebrow {
    font-size: clamp(1.1rem, 1.75vw, 1.38rem);
  }

  .intro-copy p:not(.eyebrow) {
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1.23;
  }

  .primary-action {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.82rem;
  }

  .portfolio-card {
    padding: clamp(18px, 2vw, 24px) clamp(20px, 2vw, 27px) 18px;
  }

  .skill-tools-title {
    margin-bottom: clamp(16px, 2vw, 25px);
  }

  .skill-tools-title h2 {
    font-size: clamp(1.85rem, 3vw, 2.28rem);
  }

  .portfolio-tabs {
    top: clamp(137px, 14.6vw, 162px);
    right: clamp(22px, 3vw, 36px);
    left: clamp(22px, 3vw, 36px);
    width: auto;
  }

  .tab-panel {
    width: 100%;
    height: calc(var(--landing-card-height) - 155px);
    min-height: 250px;
  }

  .landing-skill-panel {
    padding: clamp(92px, 10vw, 115px) clamp(16px, 2vw, 27px) 14px;
  }

  .skill-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 20px);
  }

  .landing-skill-card {
    width: 100%;
    height: auto;
    aspect-ratio: 117 / 121;
  }
}

@media (max-width: 980px) {
  :root {
    --section-pad: 18px;
    --hero-gradient-height: 140px;
    --about-name-x: 0px;
  }

  .landing-grid,
  .service-section,
  .feature-section {
    grid-template-columns: 1fr;
  }

  .landing-grid {
    gap: 34px;
  }

  .intro-card {
    grid-template-columns: 1fr;
  }

  .intro-card,
  .portfolio-card {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }

  .social-row {
    margin-top: 34px;
    padding: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "info"
      "software"
      "education"
      "experience";
  }

  .education-block,
  .experience-block {
    grid-column: span 1;
  }

  .service-copy {
    position: static;
  }

  .service-card.offset-card {
    margin-top: 0;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    margin-top: 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .qr-slot {
    justify-self: start;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    min-height: 92px;
  }

  .footer-brand,
  .footer-bottom p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-nav {
    top: 10px;
    width: calc(100% - 20px);
    align-items: flex-start;
  }

  .site-nav nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .nav-radar {
    bottom: 3px;
    width: 7px;
    height: 7px;
  }

  .section-cursor {
    display: none;
  }

  .os-preview {
    right: 14px;
    left: 14px !important;
    width: auto;
  }

  .guide-chat {
    right: 14px;
    bottom: 14px;
    left: auto;
  }

  .guide-chat-panel {
    right: 0;
    left: auto;
  }

  .service-demo {
    height: 34px;
  }

  .landing {
    padding-bottom: 22px;
  }

  .top-gradient {
    margin-bottom: 24px;
  }

  .portfolio-title-wrap {
    margin-bottom: 28px;
  }

  .portfolio-title-wrap h1 {
    font-size: 1.75rem;
  }

  .intro-card {
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .intro-card-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
    padding: 16px;
  }

  .intro-photo-frame {
    width: 120px;
    height: 120px;
    min-height: 0;
  }

  .intro-copy {
    align-items: flex-start;
    text-align: left;
  }

  .intro-copy .eyebrow {
    font-size: 1rem;
  }

  .intro-copy p:not(.eyebrow) {
    font-size: 0.94rem;
    line-height: 1.36;
  }

  .portfolio-card {
    height: auto;
    min-height: 0;
    padding: 16px;
  }

  .skill-tools-title {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-left: 0;
  }

  .skill-tools-title h2 {
    font-size: 1.55rem;
  }

  .portfolio-tabs {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, max-content));
    margin-bottom: 14px;
    padding-left: 0;
  }

  .tab-panel {
    width: 100%;
    height: auto;
    min-height: 260px;
  }

  .landing-skill-panel {
    padding: 86px 16px 16px;
  }

  .skill-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-skill-card {
    width: 100%;
    height: auto;
    aspect-ratio: 117 / 121;
  }

  .social-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 28px;
    padding: 0;
  }

  .soft-link {
    width: 100%;
    height: 34px;
    min-height: 34px;
    flex-direction: row;
    gap: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .soft-link.is-empty,
  .soft-link.is-linkedin,
  .soft-link.is-medium {
    width: 100%;
  }

  .social-icon {
    width: 17px;
    height: 17px;
  }

  .section-divider {
    height: 58px;
    margin: 8px 0 18px;
    margin-left: calc(50% - 50vw);
    background-size: 100% 58px;
  }

  .section-divider::before {
    top: 16px;
    height: 24px;
  }

  .section-divider::after {
    top: 38px;
    height: 14px;
  }

  .name-stage {
    min-height: 72px;
    margin-bottom: 62px;
  }

  .language-name {
    font-size: 2.28rem;
  }

  .status-strip {
    gap: 6px;
  }

  .status-strip span {
    min-width: 72px;
    padding: 5px 8px 5px 23px;
    font-size: 0.68rem;
  }

  .status-strip span::before {
    left: 9px;
    width: 7px;
    height: 7px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    min-height: 430px;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .portrait-frame img {
    position: absolute;
    top: 0;
    left: 50%;
    bottom: auto;
    width: min(88%, 320px);
    max-width: 320px;
    height: auto;
    transform: translate(calc(-50% + var(--play-photo-x)), var(--play-photo-y))
      rotateX(var(--photo-tilt-x)) rotateY(var(--photo-tilt-y));
    object-fit: contain;
  }

  .about-copy {
    grid-area: info;
  }

  .education-block {
    grid-area: education;
  }

  .experience-block {
    grid-area: experience;
  }

  .software-block {
    grid-area: software;
  }

  .software-icons {
    grid-template-columns: repeat(5, 42px);
    gap: 10px;
  }

  .software-icons button,
  .app-icon {
    width: 42px;
    height: 42px;
  }

  .about-copy h2,
  .education-block h3,
  .experience-block h3 {
    font-size: 1.55rem;
  }

  .service-section {
    gap: 24px;
    padding-bottom: 30px;
  }

  .service-copy h2 {
    font-size: 2.2rem;
  }

  .service-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 230px;
    padding: 13px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
  }

  .service-card strong {
    font-size: 1.02rem;
  }

  .service-card p,
  .service-card span:not(.icon-slot) {
    font-size: 0.84rem;
  }

  .feature-section {
    gap: 18px;
  }

  .quote-block {
    grid-template-columns: 128px 1fr;
    gap: 14px;
  }

  .quote-photo-frame {
    min-height: 128px;
  }

  blockquote {
    font-size: 1.12rem;
  }

  .feature-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-links a {
    min-height: 128px;
    padding: 13px;
    font-size: 0.9rem;
  }

  .feature-card-meta {
    padding: 4px 8px;
    font-size: 0.66rem;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
  }

  .quote-photo-frame {
    width: 128px;
    height: 128px;
    min-height: 128px;
  }

  .carousel-section {
    padding-bottom: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-brand {
    font-size: 3rem;
    letter-spacing: 0.06em;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    width: min(100% - 24px, 1060px);
    padding: 26px 0 42px;
  }

  .detail-card {
    min-height: auto;
    padding: 22px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-slot {
    min-height: 180px;
  }

  .detail-media {
    min-height: 140px;
  }
}

@media (max-width: 430px) {
  :root {
    --section-pad: 12px;
    --hero-gradient-height: 122px;
  }

  .site-nav {
    top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
  }

  .site-nav nav {
    justify-content: space-between;
  }

  .site-nav nav a {
    font-size: 0.78rem;
  }

  .portfolio-title-wrap {
    gap: 10px;
  }

  .portfolio-title-wrap h1 {
    font-size: 1.45rem;
  }

  .portfolio-tabs {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .service-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    min-height: 250px;
  }

  .footer-brand {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* Automation service page */
.automation-service-body {
  --automation-bg: #f5f3e5;
  --automation-panel: #d9d9d9;
  --automation-paper: #fffdf4;
  --automation-ink: #101010;
  --automation-muted: #5f5f5d;
  --automation-soft-line: #d7d7d2;
  --automation-purple: #9b7cf6;
  --automation-cyan: #59c8d8;
  --automation-mint: #bde8d0;
  --automation-peach: #efb47d;
  --automation-rose: #e6a7d8;
  --automation-deep-purple: #49346f;
  --automation-deep-wine: #4a252e;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    var(--automation-bg);
  background-size: 100% 44px;
  color: var(--automation-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.automation-service-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  width: min(720px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 2px solid var(--automation-ink);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(12px);
}

.automation-service-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.automation-service-brand img {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(17, 17, 17, 0.24);
  border-radius: 10px;
  object-fit: cover;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.automation-service-brand span {
  display: grid;
  line-height: 1.05;
}

.automation-service-brand strong {
  font-size: 0.98rem;
  font-weight: 880;
}

.automation-service-brand small {
  color: var(--automation-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.automation-service-brand:hover img,
.automation-service-brand:focus-visible img {
  box-shadow: 4px 4px 0 rgba(155, 124, 246, 0.32);
  transform: rotate(-4deg) translateY(-1px);
}

.automation-service-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.automation-service-nav nav a {
  position: relative;
  font-size: 0.94rem;
}

.automation-service-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(155, 124, 246, 0.4),
    rgba(89, 200, 216, 0.34)
  );
  content: "";
  transform: scaleX(0.42);
  transform-origin: center;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.automation-service-nav nav a:hover::after,
.automation-service-nav nav a:focus-visible::after {
  transform: scaleX(1);
}

.automation-service-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 80px;
}

.automation-hero,
.automation-chat-band {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: center;
  border: 2px solid var(--automation-ink);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 66% 54%,
      rgba(155, 124, 246, 0.18),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      var(--automation-deep-purple),
      var(--automation-deep-wine)
    );
  color: var(--automation-paper);
  overflow: hidden;
}

.automation-hero {
  min-height: 640px;
  padding: 54px;
}

.automation-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #b799ff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.automation-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.automation-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.automation-hero-copy > p:not(.automation-kicker):not(.automation-note),
.automation-chat-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  line-height: 1.55;
}

.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.automation-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--automation-ink);
  border-radius: 999px;
  background: var(--automation-paper);
  box-shadow: 0 4px 0 rgba(16, 16, 16, 0.12);
  color: var(--automation-ink);
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.automation-button:hover,
.automation-button:focus-visible {
  box-shadow: 0 7px 0 rgba(16, 16, 16, 0.14);
  transform: translateY(-2px);
}

.automation-button.is-primary {
  background: var(--automation-ink);
  color: #fff;
}

.automation-button.is-purple {
  background: var(--automation-purple);
  color: #fff;
}

.automation-note {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.5;
}

.automation-flow-canvas {
  position: relative;
  min-height: 450px;
  border: 2px solid var(--automation-ink);
  border-radius: 28px;
  background:
    linear-gradient(rgba(16, 16, 16, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.05) 1px, transparent 1px),
    rgba(255, 253, 244, 0.82);
  background-size: 30px 30px;
  color: var(--automation-ink);
  overflow: hidden;
}

.automation-flow-canvas::before {
  position: absolute;
  inset: 24px;
  border: 2px dashed rgba(16, 16, 16, 0.18);
  border-radius: 22px;
  content: "";
}

.automation-node {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 13px 16px;
  border: 2px solid var(--automation-ink);
  border-radius: 999px;
  background: var(--automation-paper);
  font-weight: 900;
  text-align: center;
}

.automation-node.is-request {
  top: 13%;
  left: 8%;
  background: #f1e9ff;
}

.automation-node.is-check {
  top: 20%;
  right: 8%;
  background: #e8fbff;
}

.automation-node.is-sort {
  top: 48%;
  left: 13%;
  background: #fff1df;
}

.automation-node.is-send {
  right: 15%;
  bottom: 23%;
  background: #e9faef;
}

.automation-node.is-done {
  bottom: 9%;
  left: 38%;
  background: #ffe9f8;
}

.automation-line {
  position: absolute;
  z-index: 1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--automation-purple),
    var(--automation-cyan),
    var(--automation-peach)
  );
  opacity: 0.9;
  animation: automation-service-glow 2.8s ease-in-out infinite;
}

.automation-line.line-one {
  top: 25%;
  left: 23%;
  width: 52%;
  transform: rotate(8deg);
}

.automation-line.line-two {
  top: 46%;
  left: 29%;
  width: 42%;
  animation-delay: 0.3s;
  transform: rotate(-23deg);
}

.automation-line.line-three {
  bottom: 31%;
  left: 35%;
  width: 46%;
  animation-delay: 0.6s;
  transform: rotate(11deg);
}

.automation-line.line-four {
  bottom: 16%;
  left: 41%;
  width: 34%;
  animation-delay: 0.9s;
  transform: rotate(-12deg);
}

.automation-pulse {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 2px solid var(--automation-ink);
  border-radius: 50%;
  background: var(--automation-cyan);
  box-shadow: 0 0 24px rgba(89, 200, 216, 0.9);
  animation: automation-service-travel 6s linear infinite;
}

.automation-section,
.automation-proof-section,
.automation-story,
.automation-process,
.automation-carousel-section,
.automation-chat-band {
  margin-top: 78px;
}

.automation-section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.automation-section-head h2,
.automation-proof-copy h2,
.automation-story-card h2,
.automation-side-note h2,
.automation-process h2,
.automation-chat-band h2 {
  margin: 0 0 14px;
  font-size: clamp(2.45rem, 5.3vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.automation-section-head p,
.automation-proof-copy p,
.automation-story-card p,
.automation-side-note p,
.automation-process > p {
  color: var(--automation-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.automation-flow-rows {
  border-top: 2px solid rgba(16, 16, 16, 0.28);
}

.automation-flow-row {
  display: grid;
  grid-template-columns: 80px minmax(250px, 1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 2px solid rgba(16, 16, 16, 0.14);
}

.automation-flow-row strong {
  color: #7658d8;
  font-size: 1.35rem;
}

.automation-flow-row h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.automation-flow-row p {
  margin: 0;
  color: var(--automation-muted);
  font-size: 1.03rem;
  line-height: 1.5;
}

.automation-mini-flow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.automation-mini-flow span {
  flex: 1;
  min-width: 58px;
  padding: 11px 8px;
  border: 2px solid rgba(16, 16, 16, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.72);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.automation-proof-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  align-items: stretch;
  padding: 34px;
  border: 2px solid var(--automation-ink);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 16% 14%,
      rgba(155, 124, 246, 0.18),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(89, 200, 216, 0.2),
      transparent 28%
    ),
    linear-gradient(135deg, rgba(73, 52, 111, 0.96), rgba(74, 37, 46, 0.96));
  color: var(--automation-paper);
}

.automation-proof-copy {
  align-self: center;
}

.automation-proof-copy p {
  color: rgba(255, 255, 255, 0.8);
}

.automation-proof-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.automation-proof-points span {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 820;
}

.automation-proof-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.automation-proof-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.automation-proof-card.is-main {
  grid-row: span 2;
}

.automation-proof-image {
  position: relative;
  display: grid;
  min-height: 178px;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed rgba(255, 255, 255, 0.36);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(155, 124, 246, 0.36),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(89, 200, 216, 0.3),
      transparent 30%
    ),
    rgba(255, 253, 244, 0.1);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
  text-align: center;
}

.automation-proof-card.is-main .automation-proof-image {
  min-height: 282px;
}

.automation-proof-image::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  content: "";
  transform: skewX(-16deg);
  animation: automation-proof-scan 3.8s ease-in-out infinite;
}

.automation-proof-card figcaption {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.automation-proof-card figcaption strong {
  color: var(--automation-paper);
}

.automation-story {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 30px;
  align-items: stretch;
}

.automation-story-card,
.automation-side-note,
.automation-process {
  border: 2px solid var(--automation-ink);
  border-radius: 28px;
}

.automation-story-card,
.automation-side-note {
  padding: 42px;
  background:
    radial-gradient(
      circle at 88% 22%,
      rgba(155, 124, 246, 0.15),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.54),
      rgba(217, 217, 217, 0.62)
    ),
    var(--automation-panel);
}

.automation-soft-steps {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.automation-soft-steps div {
  padding: 16px 18px;
  border-left: 7px solid var(--automation-purple);
  border-radius: 14px;
  background: rgba(255, 253, 244, 0.62);
  font-weight: 900;
}

.automation-soft-steps div:nth-child(2) {
  border-left-color: var(--automation-cyan);
}

.automation-soft-steps div:nth-child(3) {
  border-left-color: var(--automation-peach);
}

.automation-process {
  padding: 44px;
  background:
    radial-gradient(
      circle at 85% 22%,
      rgba(189, 232, 208, 0.74),
      transparent 30%
    ),
    linear-gradient(135deg, #fffaf0, #e9f8f5);
}

.automation-process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.automation-process-line::before {
  position: absolute;
  top: 28px;
  right: 6%;
  left: 6%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--automation-purple),
    var(--automation-cyan),
    var(--automation-peach),
    var(--automation-rose)
  );
  content: "";
}

.automation-process-line article {
  position: relative;
  z-index: 1;
  padding-top: 58px;
}

.automation-process-line article::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 34px;
  height: 34px;
  border: 2px solid var(--automation-ink);
  border-radius: 50%;
  background: var(--automation-paper);
  content: "";
}

.automation-process-line h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.automation-process-line p {
  margin: 0;
  color: var(--automation-muted);
  line-height: 1.45;
}

.automation-carousel-section {
  padding: 12px 0 48px;
  overflow: hidden;
}

.automation-logo-carousel {
  overflow: hidden;
  border-top: 1px solid var(--automation-soft-line);
  border-bottom: 1px solid var(--automation-soft-line);
  padding: 15px 0;
}

.automation-carousel-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: automation-service-marquee 18s linear infinite;
  animation-play-state: running;
  animation-direction: normal;
}

.automation-logo-carousel:hover .automation-carousel-track,
.automation-logo-carousel:focus-within .automation-carousel-track {
  animation-play-state: paused;
}

.automation-carousel-track span {
  min-width: 150px;
  padding: 12px 18px;
  border: 1px dashed rgba(17, 17, 17, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  font-weight: 680;
  text-align: center;
}

.automation-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.automation-pricing-grid article {
  padding: 26px;
  border: 2px solid var(--automation-ink);
  border-radius: 22px;
  background: rgba(255, 253, 244, 0.62);
}

.automation-pricing-grid article.is-featured {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(89, 200, 216, 0.34),
      transparent 35%
    ),
    #efe7ff;
  transform: translateY(-10px);
}

.automation-pricing-grid h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.automation-pricing-grid p {
  color: var(--automation-muted);
  line-height: 1.5;
}

.automation-price {
  margin: 16px 0;
  font-size: 2.1rem;
  font-weight: 900;
}

.automation-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.automation-faq-list details {
  padding: 18px 20px;
  border: 2px solid rgba(16, 16, 16, 0.2);
  border-radius: 16px;
  background: rgba(255, 253, 244, 0.58);
}

.automation-faq-list summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.automation-faq-list p {
  margin: 14px 0 0;
  color: var(--automation-muted);
  line-height: 1.5;
}

.automation-chat-band {
  padding: 52px;
}

.automation-chat-band h2 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 6rem);
}

.automation-workflow-check {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: var(--automation-ink);
}

.automation-workflow-check h3 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.automation-workflow-check li {
  margin: 8px 0;
  color: #565656;
  font-size: 1.05rem;
}

.automation-service-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 auto 24px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(217, 217, 217, 0.7);
  color: #555;
}

@keyframes automation-service-glow {
  50% {
    box-shadow: 0 0 24px rgba(89, 200, 216, 0.5);
    filter: brightness(1.35);
  }
}

@keyframes automation-service-travel {
  0% {
    top: 17%;
    left: 10%;
  }
  25% {
    top: 22%;
    left: 70%;
  }
  50% {
    top: 51%;
    left: 24%;
  }
  75% {
    top: 67%;
    left: 74%;
  }
  100% {
    top: 84%;
    left: 44%;
  }
}

@keyframes automation-proof-scan {
  0%,
  35% {
    left: -35%;
  }
  70%,
  100% {
    left: 110%;
  }
}

@keyframes automation-service-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .automation-service-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .automation-service-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .automation-hero,
  .automation-proof-section,
  .automation-story,
  .automation-chat-band,
  .automation-message-panel {
    grid-template-columns: 1fr;
  }

  .automation-hero {
    min-height: auto;
    padding: 28px;
  }

  .automation-flow-canvas {
    min-height: 350px;
  }

  .automation-flow-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .automation-proof-grid {
    grid-template-columns: 1fr;
  }

  .automation-proof-card.is-main {
    grid-row: auto;
  }

  .automation-proof-card.is-main .automation-proof-image,
  .automation-proof-image {
    min-height: 190px;
  }

  .automation-process-line,
  .automation-pricing-grid {
    grid-template-columns: 1fr;
  }

  .automation-process-line::before {
    display: none;
  }

  .automation-process-line article {
    padding-top: 0;
    padding-left: 54px;
  }

  .automation-process-line article::before {
    top: 2px;
    left: 0;
  }

  .automation-pricing-grid article.is-featured {
    transform: none;
  }
}

@media (max-width: 560px) {
  .automation-service-shell {
    width: min(100% - 22px, 1180px);
    margin-top: 34px;
  }

  .automation-service-nav nav a {
    font-size: 0.9rem;
  }

  .automation-hero,
  .automation-proof-section,
  .automation-story-card,
  .automation-side-note,
  .automation-process,
  .automation-chat-band,
  .automation-message-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .automation-hero h1 {
    font-size: 3rem;
  }

  .automation-section-head h2,
  .automation-proof-copy h2,
  .automation-story-card h2,
  .automation-side-note h2,
  .automation-process h2,
  .automation-chat-band h2,
  .automation-message-panel h2 {
    font-size: 2.4rem;
  }

  .automation-mini-flow {
    flex-wrap: wrap;
  }

  .automation-carousel-track span {
    min-width: 128px;
  }
}

/* Shared color theme control */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: max-content;
  min-height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 6px 10px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.12);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, #101010 50%, #f5f3e5 50%);
}

:root[data-theme="dark"] {
  --page-bg: #18141f;
  --ink: #f5f3e5;
  --muted: #d4cdbc;
  --line: #f5f3e5;
  --soft-line: rgba(245, 243, 229, 0.18);
  --card-bg: #2d2634;
  --footer-bg: #0f0d14;
  --footer-ink: #f5f3e5;
}

:root[data-theme="dark"] body {
  color: var(--ink);
}

:root[data-theme="dark"] .site-nav,
:root[data-theme="dark"] .local-seo-nav,
:root[data-theme="dark"] .automation-service-nav {
  background: rgba(28, 23, 35, 0.82);
  border-color: rgba(245, 243, 229, 0.92);
  color: var(--ink);
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(245, 243, 229, 0.12);
}

:root[data-theme="dark"] .theme-toggle-icon {
  background: linear-gradient(90deg, #f5f3e5 50%, #101010 50%);
}

:root[data-theme="dark"] .local-seo-body {
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(39, 119, 196, 0.24),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(42, 171, 210, 0.2),
      transparent 23%
    ),
    var(--page-bg);
}

:root[data-theme="dark"] .local-seo-hero,
:root[data-theme="dark"] .local-visual-card,
:root[data-theme="dark"] .local-text-block,
:root[data-theme="dark"] .local-pricing,
:root[data-theme="dark"] .local-schedule,
:root[data-theme="dark"] .local-faq details {
  background-color: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .local-seo-lead,
:root[data-theme="dark"] .local-text-block p,
:root[data-theme="dark"] .local-faq p,
:root[data-theme="dark"] .local-schedule p {
  color: var(--muted);
}

:root[data-theme="dark"] .local-search-preview,
:root[data-theme="dark"] .local-trust-strip span,
:root[data-theme="dark"] .local-feature-card,
:root[data-theme="dark"] .local-signal-row article,
:root[data-theme="dark"] .local-compare article,
:root[data-theme="dark"] .local-steps article,
:root[data-theme="dark"] .local-pricing article,
:root[data-theme="dark"] .local-signal-grid span {
  border-color: rgba(245, 243, 229, 0.22);
  background: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .local-feature-card p,
:root[data-theme="dark"] .local-signal-row p,
:root[data-theme="dark"] .local-compare li,
:root[data-theme="dark"] .local-steps p,
:root[data-theme="dark"] .local-pricing p,
:root[data-theme="dark"] .local-search-preview p {
  color: var(--muted);
}

:root[data-theme="dark"] .local-mini-report,
:root[data-theme="dark"] .local-search-bar,
:root[data-theme="dark"] .local-seo-image-slot,
:root[data-theme="dark"] .local-thumb {
  border-color: rgba(245, 243, 229, 0.22);
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(39, 119, 196, 0.18),
      transparent 28%
    ),
    rgba(245, 243, 229, 0.08);
}

:root[data-theme="dark"] .local-mini-report i,
:root[data-theme="dark"] .local-thumb::after {
  background: linear-gradient(
    90deg,
    rgba(39, 119, 196, 0.75),
    rgba(42, 171, 210, 0.72)
  );
}

:root[data-theme="dark"] .automation-service-body {
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(155, 124, 246, 0.22),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(89, 200, 216, 0.14),
      transparent 24%
    ),
    #17121f;
}

/* Automation page dark refinements */
.automation-service-nav {
  width: min(var(--section-width), calc(100% - 32px));
}

.automation-service-nav nav a::after {
  background: linear-gradient(
    90deg,
    rgba(73, 52, 111, 0.68),
    rgba(74, 37, 46, 0.6)
  );
}

.automation-service-nav nav a:hover::after,
.automation-service-nav nav a:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(155, 124, 246, 0.68),
    rgba(89, 200, 216, 0.46)
  );
}

.automation-section#services,
.automation-story-card,
.automation-side-note,
.automation-process,
.automation-pricing-grid article,
.automation-faq-list details {
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(155, 124, 246, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 14% 88%,
      rgba(89, 200, 216, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(73, 52, 111, 0.97), rgba(74, 37, 46, 0.97));
  color: var(--automation-paper);
}

.automation-section#services {
  padding: 34px;
  border: 2px solid var(--automation-ink);
  border-radius: 30px;
}

.automation-section#services .automation-section-head p,
.automation-section#services .automation-flow-row p,
.automation-story-card p,
.automation-side-note p,
.automation-process > p,
.automation-process-line p,
.automation-pricing-grid article p,
.automation-faq-list p {
  color: rgba(255, 255, 255, 0.78);
}

.automation-section#services .automation-flow-rows {
  border-top-color: rgba(255, 255, 255, 0.26);
}

.automation-section#services .automation-flow-row {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.automation-section#services .automation-flow-row strong,
.automation-process .automation-kicker,
.automation-pricing-grid .automation-kicker,
.automation-faq-list .automation-kicker {
  color: #b799ff;
}

.automation-process-line::before {
  opacity: 0.86;
}

.automation-process-line article::before {
  border-color: var(--automation-paper);
  background: var(--automation-deep-purple);
}

.automation-pricing-grid article.is-featured {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(89, 200, 216, 0.28),
      transparent 35%
    ),
    linear-gradient(135deg, #5a3d89, #4a252e);
}

.automation-faq-list summary {
  color: var(--automation-paper);
}

/* Phone-only compact nav: no logo, old simple link row */
@media (max-width: 560px) {
  .site-nav,
  .local-seo-nav,
  .automation-service-nav {
    top: 8px;
    display: flex;
    width: calc(100% - 20px);
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .site-nav-brand,
  .local-service-brand,
  .automation-service-brand {
    display: none;
  }

  .site-nav nav,
  .local-seo-nav nav,
  .automation-service-nav nav {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
  }

  .site-nav nav a,
  .local-seo-nav nav a,
  .automation-service-nav nav a {
    padding: 5px 0;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 30px;
    min-width: 30px;
    min-height: 28px;
    padding: 0;
  }

  .theme-toggle-text {
    display: none;
  }

  .theme-toggle-icon {
    width: 13px;
    height: 13px;
  }

  .nav-radar {
    display: none;
  }
}

/* Refinements after dark-mode pass: lighter rhythm, darker dark-mode cards */
.landing {
  position: relative;
}

.landing-theme-toggle {
  position: absolute;
  top: calc(var(--hero-gradient-height) + 18px);
  right: clamp(12px, 3vw, 34px);
  z-index: 4;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-color: rgba(17, 17, 17, 0.34);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 4px 4px 0 rgba(225, 160, 224, 0.28);
  padding: 0;
}

.landing-theme-toggle .theme-toggle-text {
  display: none;
}

.landing-theme-toggle .theme-toggle-icon {
  width: 16px;
  height: 16px;
}

.landing-theme-toggle:hover,
.landing-theme-toggle:focus-visible {
  box-shadow: 5px 5px 0 rgba(155, 124, 246, 0.34);
  transform: translate(-1px, -1px) rotate(-5deg);
}

.automation-section#services {
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(155, 124, 246, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(61, 47, 82, 0.96), rgba(64, 43, 52, 0.96));
}

.automation-story-card {
  background:
    radial-gradient(
      circle at 88% 22%,
      rgba(155, 124, 246, 0.16),
      transparent 31%
    ),
    linear-gradient(135deg, #4a405c, #3b3445);
  color: var(--automation-paper);
}

.automation-side-note {
  background:
    radial-gradient(
      circle at 15% 22%,
      rgba(239, 180, 125, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #58404a, #493943);
  color: var(--automation-paper);
}

.automation-process {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(89, 200, 216, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, #2f4248, #42374f);
  color: var(--automation-paper);
}

.automation-pricing-grid article {
  background:
    radial-gradient(
      circle at 84% 14%,
      rgba(155, 124, 246, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, #d3cfdd, #c9c4d0);
  color: var(--automation-ink);
}

.automation-pricing-grid article p {
  color: #4c4654;
}

.automation-pricing-grid article.is-featured {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(89, 200, 216, 0.26),
      transparent 35%
    ),
    linear-gradient(135deg, #5a3d89, #4a252e);
  color: var(--automation-paper);
}

.automation-pricing-grid article.is-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.automation-faq-list details {
  background: rgba(73, 52, 111, 0.14);
  color: var(--automation-ink);
}

.automation-faq-list summary {
  color: var(--automation-ink);
}

.automation-faq-list p {
  color: var(--automation-muted);
}

.automation-proof-section,
.automation-chat-band,
.automation-hero {
  background:
    radial-gradient(
      circle at 66% 54%,
      rgba(155, 124, 246, 0.18),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      var(--automation-deep-purple),
      var(--automation-deep-wine)
    );
}

:root[data-theme="dark"] .landing-theme-toggle {
  border-color: rgba(245, 243, 229, 0.48);
  background: rgba(245, 243, 229, 0.12);
  box-shadow: 4px 4px 0 rgba(89, 200, 216, 0.2);
}

:root[data-theme="dark"] .top-gradient {
  background:
    linear-gradient(90deg, rgba(73, 52, 111, 0.72), rgba(16, 14, 20, 0.82)),
    url("../assets/hero-gradient.jpg") center / cover no-repeat;
}

:root[data-theme="dark"] .intro-card {
  background: rgba(245, 243, 229, 0.1);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .intro-card-inner,
:root[data-theme="dark"] .tab-panel,
:root[data-theme="dark"] .language-empty {
  background: rgba(245, 243, 229, 0.1);
}

:root[data-theme="dark"] .intro-copy .eyebrow,
:root[data-theme="dark"] .intro-copy p:not(.eyebrow),
:root[data-theme="dark"] .tab-button,
:root[data-theme="dark"] .tab-button.is-active,
:root[data-theme="dark"] .landing-more-link,
:root[data-theme="dark"] .more-panel {
  color: var(--ink);
}

:root[data-theme="dark"] .portfolio-card,
:root[data-theme="dark"] .about-copy,
:root[data-theme="dark"] .software-block,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .feature-links a {
  border-color: rgba(245, 243, 229, 0.8);
  background: rgba(245, 243, 229, 0.08);
}

:root[data-theme="dark"] .portfolio-tabs {
  border-bottom-color: rgba(245, 243, 229, 0.44);
}

:root[data-theme="dark"] .tab-button.is-active::after,
:root[data-theme="dark"] .landing-more-link {
  border-color: var(--ink);
  background: var(--ink);
}

:root[data-theme="dark"] .landing-more-link {
  background: transparent;
}

:root[data-theme="dark"] .soft-link {
  background: rgba(155, 124, 246, 0.38);
  color: #f5f3e5;
}

:root[data-theme="dark"] .social-icon {
  background: rgba(245, 243, 229, 0.22);
}

:root[data-theme="dark"] .status-strip span,
:root[data-theme="dark"] .software-icons button.is-active .app-icon,
:root[data-theme="dark"] .carousel-track span,
:root[data-theme="dark"] .automation-carousel-track span {
  border-color: rgba(245, 243, 229, 0.28);
  background: rgba(245, 243, 229, 0.1);
  color: var(--ink);
}

:root[data-theme="dark"] .service-demo {
  border-color: rgba(245, 243, 229, 0.2);
  background: rgba(245, 243, 229, 0.08);
}

:root[data-theme="dark"] .service-card:hover,
:root[data-theme="dark"] .service-card.is-active,
:root[data-theme="dark"] .feature-links a:hover {
  background: rgba(245, 243, 229, 0.14);
  box-shadow: 8px 8px 0 rgba(155, 124, 246, 0.18);
}

:root[data-theme="dark"] .service-demo-automation i,
:root[data-theme="dark"] .service-demo-web i,
:root[data-theme="dark"] .service-demo-seo i {
  background: #b799ff;
  opacity: 0.72;
}

:root[data-theme="dark"] .service-demo-network::before,
:root[data-theme="dark"] .service-demo-network::after {
  background: rgba(89, 200, 216, 0.38);
}

:root[data-theme="dark"] .service-demo-network i {
  border-color: #b799ff;
  background: #17121f;
}

:root[data-theme="dark"] .portrait-frame::before {
  filter: blur(36px) saturate(0.82);
}

:root[data-theme="dark"] .portrait-frame.is-playing::before {
  opacity: 0.78;
}

:root[data-theme="dark"] .os-preview {
  border-color: rgba(245, 243, 229, 0.8);
  background: #2d2634;
  color: var(--ink);
}

:root[data-theme="dark"] .os-preview-bar {
  border-bottom-color: rgba(245, 243, 229, 0.74);
  background: linear-gradient(#3a3346, #2d2634);
}

:root[data-theme="dark"] .os-preview-screen,
:root[data-theme="dark"] .os-preview-body [data-os-status],
:root[data-theme="dark"] .photo-warning-card {
  background: rgba(245, 243, 229, 0.1);
  color: var(--ink);
}

:root[data-theme="dark"] .photo-warning-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

:root[data-theme="dark"] .photo-warning-actions button {
  background: rgba(245, 243, 229, 0.12);
  color: var(--ink);
}

:root[data-theme="dark"] .photo-warning-actions button:last-child {
  background: var(--ink);
  color: #17121f;
}

@media (max-width: 560px) {
  .landing-theme-toggle {
    top: calc(var(--hero-gradient-height) + 10px);
    right: 12px;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

/* Final theme balance pass */
.automation-section#services {
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(155, 124, 246, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(89, 200, 216, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(217, 217, 217, 0.82), rgba(203, 195, 216, 0.8));
  color: var(--automation-ink);
}

.automation-section#services .automation-section-head p,
.automation-section#services .automation-flow-row p {
  color: var(--automation-muted);
}

.automation-section#services .automation-flow-rows {
  border-top-color: rgba(16, 16, 16, 0.24);
}

.automation-section#services .automation-flow-row {
  border-bottom-color: rgba(16, 16, 16, 0.14);
}

.automation-section#services .automation-flow-row strong {
  color: #5a3d89;
}

.automation-story-card {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(155, 124, 246, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #d9d9d9, #cbc5d4);
  color: var(--automation-ink);
}

.automation-side-note {
  background:
    radial-gradient(
      circle at 16% 20%,
      rgba(239, 180, 125, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #d9d9d9, #d8c7ce);
  color: var(--automation-ink);
}

.automation-story-card p,
.automation-side-note p {
  color: var(--automation-muted);
}

.automation-process {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(89, 200, 216, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, #43535a, #4c425f);
  color: var(--automation-paper);
}

.automation-process > p,
.automation-process-line p {
  color: rgba(255, 255, 255, 0.76);
}

.automation-process .automation-kicker {
  color: #b799ff;
}

.automation-pricing-grid article {
  background:
    radial-gradient(
      circle at 84% 14%,
      rgba(155, 124, 246, 0.11),
      transparent 30%
    ),
    rgba(255, 253, 244, 0.62);
  color: var(--automation-ink);
}

.automation-pricing-grid article p {
  color: var(--automation-muted);
}

.automation-faq-list details {
  background: rgba(255, 253, 244, 0.48);
  color: var(--automation-ink);
}

.automation-faq-list summary {
  color: var(--automation-ink);
}

.automation-faq-list p {
  color: var(--automation-muted);
}

:root[data-theme="dark"] .automation-section#services {
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(155, 124, 246, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(55, 45, 72, 0.94), rgba(43, 36, 51, 0.94));
  border-color: rgba(245, 243, 229, 0.78);
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-story-card {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(155, 124, 246, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, #30293b, #27212f);
  border-color: rgba(245, 243, 229, 0.72);
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-side-note {
  background:
    radial-gradient(
      circle at 16% 20%,
      rgba(239, 180, 125, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #3a2930, #2d222b);
  border-color: rgba(245, 243, 229, 0.72);
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-process {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(89, 200, 216, 0.14),
      transparent 32%
    ),
    linear-gradient(135deg, #22343a, #302842);
  border-color: rgba(245, 243, 229, 0.72);
}

:root[data-theme="dark"] .automation-pricing-grid article {
  background:
    radial-gradient(
      circle at 84% 14%,
      rgba(155, 124, 246, 0.12),
      transparent 30%
    ),
    rgba(245, 243, 229, 0.08);
  border-color: rgba(245, 243, 229, 0.72);
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-pricing-grid article.is-featured {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(89, 200, 216, 0.24),
      transparent 35%
    ),
    linear-gradient(135deg, #5a3d89, #4a252e);
}

:root[data-theme="dark"] .automation-faq-list details {
  background: rgba(245, 243, 229, 0.08);
  border-color: rgba(245, 243, 229, 0.28);
  color: var(--automation-paper);
}

:root[data-theme="dark"]
  .automation-section#services
  .automation-section-head
  p,
:root[data-theme="dark"] .automation-section#services .automation-flow-row p,
:root[data-theme="dark"] .automation-story-card p,
:root[data-theme="dark"] .automation-side-note p,
:root[data-theme="dark"] .automation-pricing-grid article p,
:root[data-theme="dark"] .automation-faq-list p {
  color: rgba(255, 255, 255, 0.76);
}

:root[data-theme="dark"] .automation-section#services .automation-flow-rows {
  border-top-color: rgba(255, 255, 255, 0.24);
}

:root[data-theme="dark"] .automation-section#services .automation-flow-row {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .automation-faq-list summary {
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-mini-flow span,
:root[data-theme="dark"] .automation-carousel-track span {
  border-color: rgba(245, 243, 229, 0.26);
  background: rgba(245, 243, 229, 0.1);
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-flow-canvas,
:root[data-theme="dark"] .automation-workflow-check {
  background:
    linear-gradient(rgba(245, 243, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 229, 0.06) 1px, transparent 1px),
    rgba(245, 243, 229, 0.1);
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-flow-canvas::before {
  border-color: rgba(245, 243, 229, 0.2);
}

:root[data-theme="dark"] .automation-node {
  border-color: rgba(245, 243, 229, 0.74);
  background: #292235;
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-workflow-check li {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .booking-card,
:root[data-theme="dark"] .command-card,
:root[data-theme="dark"] .guide-chat-panel,
:root[data-theme="dark"] .guide-chat-toggle,
:root[data-theme="dark"] .lab-toast {
  border-color: rgba(245, 243, 229, 0.78);
  background: #2d2634;
  color: var(--ink);
}

:root[data-theme="dark"] .booking-card input,
:root[data-theme="dark"] .booking-card textarea,
:root[data-theme="dark"] .command-card input,
:root[data-theme="dark"] .command-list button {
  border-color: rgba(245, 243, 229, 0.22);
  background: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .guide-chat-panel p,
:root[data-theme="dark"] .command-list button span,
:root[data-theme="dark"] .booking-message {
  color: var(--muted);
}

:root[data-theme="dark"] .primary-action,
:root[data-theme="dark"] .mail-form button {
  background: #b799ff;
  color: #17121f;
}

:root[data-theme="dark"] .media-slot,
:root[data-theme="dark"] .feature-card-meta,
:root[data-theme="dark"] .detail-media,
:root[data-theme="dark"] .detail-chip,
:root[data-theme="dark"] .detail-empty {
  border-color: rgba(245, 243, 229, 0.24);
  background: rgba(245, 243, 229, 0.1);
  color: var(--ink);
}

:root[data-theme="dark"] .detail-body {
  background:
    radial-gradient(
      circle at 12% 16%,
      rgba(155, 124, 246, 0.18),
      transparent 26%
    ),
    var(--page-bg);
}

:root[data-theme="dark"] .detail-card,
:root[data-theme="dark"] .detail-block,
:root[data-theme="dark"] .detail-slot,
:root[data-theme="dark"] .detail-system-demo {
  border-color: rgba(245, 243, 229, 0.78);
  background: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .detail-lead,
:root[data-theme="dark"] .detail-block p,
:root[data-theme="dark"] .detail-slot p {
  color: var(--muted);
}

:root[data-theme="dark"] .detail-back {
  border-color: rgba(245, 243, 229, 0.66);
  background: rgba(245, 243, 229, 0.1);
  color: var(--ink);
}

:root[data-theme="dark"] .detail-system-demo i,
:root[data-theme="dark"] .detail-system-demo span,
:root[data-theme="dark"] .detail-system-demo strong {
  border-color: rgba(245, 243, 229, 0.26);
  background-color: rgba(245, 243, 229, 0.16);
}

/* Floating theme toggle for service pages */
.page-theme-toggle {
  position: fixed;
  top: 86px;
  right: clamp(12px, 3vw, 34px);
  z-index: 35;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-color: rgba(17, 17, 17, 0.34);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.1);
  padding: 0;
}

.page-theme-toggle .theme-toggle-text {
  display: none;
}

.page-theme-toggle .theme-toggle-icon {
  width: 16px;
  height: 16px;
}

.page-theme-toggle:hover,
.page-theme-toggle:focus-visible {
  box-shadow: 5px 5px 0 rgba(39, 119, 196, 0.18);
  transform: translate(-1px, -1px) rotate(-5deg);
}

.automation-service-body .page-theme-toggle:hover,
.automation-service-body .page-theme-toggle:focus-visible {
  box-shadow: 5px 5px 0 rgba(155, 124, 246, 0.28);
}

:root[data-theme="dark"] .page-theme-toggle {
  border-color: rgba(245, 243, 229, 0.48);
  background: rgba(245, 243, 229, 0.12);
  box-shadow: 4px 4px 0 rgba(89, 200, 216, 0.18);
}

/* Local SEO dark theme polish */
:root[data-theme="dark"] .local-seo-body {
  background:
    radial-gradient(
      circle at 9% 10%,
      rgba(39, 119, 196, 0.26),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(42, 171, 210, 0.2),
      transparent 24%
    ),
    linear-gradient(180deg, #101923, #15141e 62%, #10141b);
}

:root[data-theme="dark"] .local-service-brand small {
  color: rgba(245, 243, 229, 0.72);
}

:root[data-theme="dark"] .local-seo-nav nav a::after {
  background: rgba(98, 176, 246, 0.22);
}

:root[data-theme="dark"] .local-seo-nav nav a:hover,
:root[data-theme="dark"] .local-seo-nav nav a:focus-visible {
  color: #9bd0ff;
}

:root[data-theme="dark"] .local-seo-nav nav a:hover::after,
:root[data-theme="dark"] .local-seo-nav nav a:focus-visible::after {
  background: rgba(98, 176, 246, 0.44);
}

:root[data-theme="dark"] .local-seo-hero {
  background:
    radial-gradient(
      circle at 76% 16%,
      rgba(42, 171, 210, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(18, 31, 44, 0.96), rgba(27, 32, 43, 0.95));
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .local-seo-kicker,
:root[data-theme="dark"] .local-rating {
  color: #8ac8ff;
}

:root[data-theme="dark"] .local-seo-kicker::before,
:root[data-theme="dark"] .local-steps article::before {
  border-color: rgba(245, 243, 229, 0.72);
  background: #62b0f6;
}

:root[data-theme="dark"] .local-seo-button {
  border-color: rgba(245, 243, 229, 0.68);
  color: var(--ink);
}

:root[data-theme="dark"] .local-seo-button.is-primary {
  border-color: #8ac8ff;
  background: #8ac8ff;
  color: #0d1822;
}

:root[data-theme="dark"] .local-seo-image-slot,
:root[data-theme="dark"] .local-thumb {
  border-color: rgba(245, 243, 229, 0.32);
  background:
    radial-gradient(
      circle at 22% 20%,
      rgba(39, 119, 196, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(42, 171, 210, 0.14),
      transparent 30%
    ),
    rgba(245, 243, 229, 0.08);
  color: rgba(245, 243, 229, 0.7);
}

:root[data-theme="dark"] .local-search-preview,
:root[data-theme="dark"] .local-visual-card,
:root[data-theme="dark"] .local-signal-row article,
:root[data-theme="dark"] .local-compare article,
:root[data-theme="dark"] .local-pricing,
:root[data-theme="dark"] .local-pricing article,
:root[data-theme="dark"] .local-schedule aside,
:root[data-theme="dark"] .local-faq details,
:root[data-theme="dark"] .local-trust-strip span,
:root[data-theme="dark"] .local-signal-grid span {
  border-color: rgba(245, 243, 229, 0.28);
  background: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .local-search-bar {
  border-color: rgba(245, 243, 229, 0.24);
  background:
    linear-gradient(90deg, rgba(98, 176, 246, 0.26), rgba(42, 171, 210, 0.18)),
    rgba(245, 243, 229, 0.08);
}

:root[data-theme="dark"] .local-compare article.is-after,
:root[data-theme="dark"] .local-pricing article.is-featured {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(42, 171, 210, 0.2),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(39, 119, 196, 0.22), rgba(245, 243, 229, 0.08));
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .local-section-head {
  border-bottom-color: rgba(245, 243, 229, 0.22);
}

:root[data-theme="dark"] .local-feature-card {
  border-top-color: rgba(245, 243, 229, 0.42);
}

:root[data-theme="dark"] .local-signal-row article strong {
  background: rgba(98, 176, 246, 0.18);
  color: #d7eeff;
}

:root[data-theme="dark"] .local-steps {
  border-left-color: rgba(245, 243, 229, 0.7);
}

:root[data-theme="dark"] .local-schedule {
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(42, 171, 210, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #102b44, #151f2d);
  color: var(--ink);
}

:root[data-theme="dark"] .local-schedule .local-seo-kicker,
:root[data-theme="dark"] .local-schedule p,
:root[data-theme="dark"] .local-schedule li {
  color: rgba(245, 243, 229, 0.78);
}

:root[data-theme="dark"] .local-feature-card p,
:root[data-theme="dark"] .local-signal-row p,
:root[data-theme="dark"] .local-compare li,
:root[data-theme="dark"] .local-steps p,
:root[data-theme="dark"] .local-pricing p,
:root[data-theme="dark"] .local-search-preview p,
:root[data-theme="dark"] .local-clean-list li {
  color: rgba(245, 243, 229, 0.72);
}

:root[data-theme="dark"] .local-mini-report i {
  background: linear-gradient(
    90deg,
    #62b0f6 var(--bar-width),
    rgba(245, 243, 229, 0.16) var(--bar-width)
  );
}

@media (max-width: 560px) {
  .page-theme-toggle {
    top: 62px;
    right: 12px;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

/* Dark-mode brand mark uses the real dark-background logo asset */
:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  object-fit: cover;
  border-color: rgba(245, 243, 229, 0.42);
  background: transparent;
  padding: 0;
  filter: none;
}

:root[data-theme="dark"] .site-nav-brand strong,
:root[data-theme="dark"] .local-service-brand strong,
:root[data-theme="dark"] .automation-service-brand strong {
  color: var(--ink);
}

:root[data-theme="dark"] .site-nav-brand small,
:root[data-theme="dark"] .local-service-brand small,
:root[data-theme="dark"] .automation-service-brand small {
  color: rgba(245, 243, 229, 0.72);
}

/* Web development service page */
.web-dev-service-body {
  --web-ink: #151718;
  --web-dark: #151718;
  --web-panel-dark: #2a302e;
  --web-primary: #52665e;
  --web-secondary: #8a6f4d;
  --web-accent: #c1a46f;
  --web-soft: #d8d0bf;
  --web-paper: #f0eadf;
  --web-panel: #e1d8c8;
  --web-muted: #5d625d;
  background:
    radial-gradient(circle at 8% 14%, rgba(82, 102, 94, 0.14), transparent 28%),
    radial-gradient(
      circle at 92% 18%,
      rgba(138, 111, 77, 0.12),
      transparent 24%
    ),
    linear-gradient(rgba(21, 23, 24, 0.038) 1px, transparent 1px) 0 0 / 100%
      54px,
    linear-gradient(90deg, rgba(21, 23, 24, 0.026) 1px, transparent 1px) 0 0 /
      54px 54px,
    #e5ddcc;
  color: var(--web-ink);
}

.web-dev-nav {
  position: sticky;
  top: 16px;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--section-width), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(240, 234, 223, 0.68);
  color: var(--web-ink);
  box-shadow: 14px 14px 32px rgba(21, 23, 24, 0.1);
  backdrop-filter: blur(14px);
}

.web-dev-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.web-dev-brand img {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(21, 23, 24, 0.24);
  border-radius: 9px;
  object-fit: cover;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.web-dev-brand:hover img,
.web-dev-brand:focus-visible img {
  transform: rotate(-4deg) translateY(-1px);
  box-shadow: 5px 5px 0 rgba(199, 255, 61, 0.72);
}

.web-dev-brand span {
  display: grid;
  line-height: 1.05;
}

.web-dev-brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.web-dev-brand small {
  color: var(--web-muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.web-dev-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 30px);
}

.web-dev-nav nav a {
  position: relative;
  font-size: 0.96rem;
  font-weight: 760;
}

.web-dev-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(82, 102, 94, 0.34),
    rgba(193, 164, 111, 0.28)
  );
  content: "";
  transform: scaleX(0.68);
  transform-origin: center;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.web-dev-nav nav a:hover::after,
.web-dev-nav nav a:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(82, 102, 94, 0.58),
    rgba(193, 164, 111, 0.52)
  );
  transform: scaleX(1);
}

.web-dev-shell {
  width: min(var(--section-width), calc(100% - 32px));
  margin: 28px auto 80px;
}

.web-dev-hero,
.web-dev-section,
.web-dev-proof-split,
.web-dev-direction,
.web-dev-pricing,
.web-dev-cta,
.web-dev-contact,
.web-dev-faq {
  margin-top: clamp(34px, 7vw, 72px);
}

.web-dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5.2vw, 66px);
  align-items: center;
  min-height: min(660px, calc(100vh - 132px));
  padding: clamp(32px, 4.6vw, 54px);
  border: 2px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 86% 88%,
      rgba(82, 102, 94, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at 14% 14%,
      rgba(193, 164, 111, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #ece6d9, #d7ccba);
  box-shadow: 12px 12px 0 rgba(21, 23, 24, 0.1);
}

.web-dev-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--web-muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.web-dev-kicker::before {
  width: 12px;
  height: 12px;
  border: 4px solid rgba(193, 164, 111, 0.34);
  border-radius: 999px;
  background: var(--web-primary);
  content: "";
}

.web-dev-hero h1,
.web-dev-section-head h2,
.web-dev-proof-card h2,
.web-dev-direction h2,
.web-dev-cta h2,
.web-dev-contact h2 {
  margin: 0;
  font-weight: 950;
  line-height: 0.92;
}

.web-dev-hero h1 {
  max-width: 660px;
  font-size: clamp(3.35rem, 6.45vw, 6.35rem);
  letter-spacing: 0;
}

.web-dev-hero-copy > p:not(.web-dev-kicker) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--web-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 760;
}

.web-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.web-dev-button,
.web-dev-price-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(240, 234, 223, 0.58);
  color: var(--web-ink);
  font-weight: 900;
  box-shadow: 0 0 0 rgba(17, 17, 17, 0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.web-dev-button:hover,
.web-dev-button:focus-visible,
.web-dev-price-grid a:hover,
.web-dev-price-grid a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.16);
}

.web-dev-button.is-primary {
  background: var(--web-primary);
  color: #f7f1e6;
  box-shadow: 4px 4px 0 rgba(193, 164, 111, 0.58);
}

.web-dev-window {
  min-height: clamp(390px, 45vw, 570px);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: #f0eadf;
  box-shadow: 12px 12px 0 rgba(21, 23, 24, 0.13);
  transform: rotate(0deg);
}

.web-window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-bottom: 2px solid var(--line);
}

.web-window-bar i {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.web-window-bar i:nth-child(1) {
  background: #ff6666;
}
.web-window-bar i:nth-child(2) {
  background: #ffd869;
}
.web-window-bar i:nth-child(3) {
  background: #65da7b;
}

.web-window-canvas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-height: calc(100% - 38px);
  padding: 38px 26px 28px;
  background:
    linear-gradient(rgba(21, 23, 24, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(21, 23, 24, 0.04) 1px, transparent 1px) 0 0 /
      40px 40px,
    #f2ede2;
}

.web-mock-card,
.web-mock-tile,
.web-window-note {
  border: 1.5px solid rgba(21, 23, 24, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.web-mock-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 118px;
  padding: 20px;
}

.web-mock-card.is-wide {
  grid-column: span 1;
}

.web-mock-card.is-side {
  grid-column: span 2;
}

.web-mock-card span {
  display: block;
  width: var(--line-width, 68%);
  height: 13px;
  border-radius: 999px;
  background: rgba(82, 102, 94, 0.22);
  animation: web-line-load 2.7s ease-in-out infinite;
}

.web-mock-card span:nth-child(2) {
  --line-width: 54%;
  animation-delay: 180ms;
}

.web-mock-card span:nth-child(3) {
  --line-width: 42%;
  animation-delay: 360ms;
}

.web-mock-tile {
  min-height: 92px;
  background: linear-gradient(
    135deg,
    rgba(82, 102, 94, 0.13),
    rgba(193, 164, 111, 0.16)
  );
}

.web-window-note {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 96px;
  border-color: rgba(82, 102, 94, 0.42);
  background: rgba(82, 102, 94, 0.12);
  color: var(--web-muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.web-dev-chip-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding: 20px 0;
  border-top: 1.5px solid rgba(21, 23, 24, 0.18);
  border-bottom: 1.5px solid rgba(21, 23, 24, 0.18);
}

.web-dev-chip-strip span {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 16px;
  border: 1.5px solid rgba(82, 102, 94, 0.44);
  border-radius: 999px;
  background: rgba(240, 234, 223, 0.58);
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
}

.web-dev-section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.web-dev-section-head h2,
.web-dev-proof-card h2,
.web-dev-direction h2,
.web-dev-cta h2,
.web-dev-contact h2 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
}

.web-dev-card-grid,
.web-dev-process-grid,
.web-dev-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.web-dev-card-grid article,
.web-dev-process-grid article,
.web-dev-price-grid article,
.web-dev-faq details {
  border: 1.5px solid rgba(21, 23, 24, 0.18);
  border-radius: 8px;
  background: rgba(240, 234, 223, 0.5);
  color: var(--web-ink);
}

.web-dev-card-grid article {
  min-height: 164px;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.web-dev-card-grid article:hover {
  border-color: rgba(82, 102, 94, 0.5);
  box-shadow: 7px 7px 0 rgba(193, 164, 111, 0.28);
  transform: translate(-2px, -2px);
}

.web-dev-card-grid span,
.web-dev-process-grid strong {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 16px;
  border: 1.5px solid rgba(82, 102, 94, 0.34);
  border-radius: 6px;
  background: rgba(82, 102, 94, 0.12);
  color: var(--web-primary);
  font-size: 0.8rem;
  font-weight: 900;
}

.web-dev-card-grid h3,
.web-dev-process-grid h3,
.web-dev-price-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
}

.web-dev-card-grid p,
.web-dev-process-grid p,
.web-dev-price-grid p,
.web-dev-direction p,
.web-dev-proof-card p,
.web-dev-cta p,
.web-dev-contact p,
.web-dev-faq p {
  margin: 0;
  color: var(--web-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.web-dev-proof-split,
.web-dev-direction,
.web-dev-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.web-dev-image-slot,
.web-dev-preview-slot,
.web-dev-contact-slot {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1.5px solid rgba(21, 23, 24, 0.24);
  border-radius: 6px;
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(82, 102, 94, 0.14),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(193, 164, 111, 0.18),
      transparent 30%
    ),
    rgba(240, 234, 223, 0.42);
  color: var(--web-muted);
  font-weight: 850;
  text-align: center;
  overflow: hidden;
  padding: 20px;
}

.web-dev-image-slot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.web-dev-proof-card {
  padding: clamp(28px, 5vw, 46px);
  border: 1.5px solid rgba(21, 23, 24, 0.24);
  border-radius: 6px;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(82, 102, 94, 0.14),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(240, 234, 223, 0.78),
      rgba(215, 204, 186, 0.68)
    );
}

.web-dev-direction {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.web-dev-preview-slot {
  min-height: 300px;
  background:
    radial-gradient(
      circle at 16% 20%,
      rgba(82, 102, 94, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 78% 80%,
      rgba(193, 164, 111, 0.22),
      transparent 34%
    ),
    linear-gradient(135deg, #d8d0bf, #eee7dc);
}

.web-dev-direction > div:last-child {
  padding: clamp(14px, 3vw, 36px);
}

.web-dev-process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.web-dev-process-grid article,
.web-dev-price-grid article {
  padding: 22px;
}

.web-dev-price-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 292px;
  border-color: var(--line);
}

.web-dev-price-grid article.is-featured {
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(82, 102, 94, 0.14),
      transparent 34%
    ),
    rgba(193, 164, 111, 0.13);
  box-shadow: 8px 8px 0 rgba(21, 23, 24, 0.09);
}

.web-dev-price-grid strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.web-dev-price-grid ul,
.web-dev-cta ul {
  margin: 0;
  padding-left: 18px;
  color: var(--web-muted);
}

.web-dev-price-grid li,
.web-dev-cta li {
  margin: 6px 0;
}

.web-dev-price-grid a {
  justify-self: start;
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.82rem;
}

.web-dev-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 46px);
  border: 2px solid rgba(21, 23, 24, 0.3);
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(193, 164, 111, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #52665e, #2a302e);
  color: #f7f1e6;
}

.web-dev-cta .web-dev-kicker,
.web-dev-cta p,
.web-dev-cta li {
  color: rgba(255, 255, 255, 0.84);
}

.web-dev-cta aside {
  padding: 26px;
  border-radius: 8px;
  background: rgba(248, 239, 225, 0.9);
  color: #17110d;
}

.web-dev-cta aside h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.web-dev-cta aside p,
.web-dev-cta aside li,
.web-dev-cta aside ul {
  color: #3f444d;
}

.web-dev-cta aside .web-dev-button {
  margin-top: 16px;
}

.web-dev-contact {
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  border: 1.5px solid rgba(21, 23, 24, 0.18);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(82, 102, 94, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 82%,
      rgba(193, 164, 111, 0.16),
      transparent 32%
    ),
    rgba(240, 234, 223, 0.52);
}

.web-dev-contact-copy {
  display: grid;
  gap: 28px;
}

.web-dev-contact form {
  display: grid;
  gap: 10px;
  align-self: start;
}

.web-dev-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.web-dev-contact input,
.web-dev-contact textarea {
  width: 100%;
  border: 1.5px solid rgba(21, 23, 24, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--web-ink);
  font: inherit;
  font-size: 0.86rem;
  padding: 12px;
}

.web-dev-contact textarea {
  resize: vertical;
}

.web-dev-contact button {
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--web-primary), #38463f);
  color: #f7f1e6;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.web-dev-contact-slot {
  min-height: 260px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.4);
}

.service-contact-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.service-contact-form input,
.service-contact-form textarea {
  width: 100%;
  border: 1.5px solid rgba(17, 17, 17, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #101116;
  font: inherit;
  padding: 12px 14px;
}

.service-contact-form textarea {
  resize: vertical;
}

.service-contact-form button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, #161611, #4d3a1d);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-contact-form button:hover,
.service-contact-form button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.16);
}

.automation-workflow-check p,
.local-schedule aside p {
  margin: 0 0 10px;
  color: #565656;
}

.automation-workflow-check .service-contact-form button {
  background: linear-gradient(90deg, #8d5af7, #3f2c66);
}

.local-schedule .service-contact-form button {
  background: linear-gradient(90deg, #2777c4, #2aabd2);
}

.automation-message-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
  margin-top: 78px;
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--automation-ink);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(155, 124, 246, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 86% 80%,
      rgba(89, 200, 216, 0.2),
      transparent 34%
    ),
    rgba(255, 253, 244, 0.64);
}

.automation-message-copy {
  display: grid;
  gap: 24px;
}

.automation-message-panel h2 {
  max-width: 650px;
  margin: 0;
  color: var(--automation-ink);
  font-size: clamp(2.7rem, 5.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 950;
}

.automation-message-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--automation-muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.automation-message-slot {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1.5px dashed rgba(16, 16, 16, 0.46);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(155, 124, 246, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(89, 200, 216, 0.14),
      transparent 32%
    ),
    rgba(255, 255, 255, 0.36);
  color: var(--automation-muted);
  font-weight: 850;
  text-align: center;
}

.automation-message-form {
  align-self: stretch;
  padding: clamp(20px, 3vw, 30px);
  border: 1.5px solid rgba(16, 16, 16, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 8px 8px 0 rgba(155, 124, 246, 0.12);
}

.automation-message-form h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.web-dev-faq {
  display: grid;
  gap: 12px;
}

.web-dev-faq details {
  padding: 18px 20px;
}

.web-dev-faq summary {
  cursor: pointer;
  font-weight: 900;
}

.web-dev-faq p {
  margin-top: 12px;
}

.web-dev-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(960px, calc(100% - 48px));
  margin: 0 auto 82px;
  padding: 24px 34px;
  border-radius: 12px;
  background: linear-gradient(90deg, #52665e, #2a302e);
  color: #f7f1e6;
  font-size: 0.9rem;
  font-weight: 900;
}

@keyframes web-line-load {
  0%,
  100% {
    opacity: 0.46;
    transform: scaleX(0.76);
    transform-origin: left;
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .web-dev-hero,
  .web-dev-proof-split,
  .web-dev-direction,
  .web-dev-cta,
  .web-dev-contact {
    grid-template-columns: 1fr;
  }

  .web-dev-hero {
    min-height: auto;
  }

  .web-dev-hero h1 {
    font-size: clamp(3rem, 8.8vw, 5.2rem);
  }

  .web-dev-window {
    min-height: 430px;
    transform: rotate(0deg);
  }

  .web-dev-chip-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .web-dev-card-grid,
  .web-dev-process-grid,
  .web-dev-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .web-dev-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .web-dev-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .web-dev-service-body {
    background:
      radial-gradient(
        circle at 8% 14%,
        rgba(82, 102, 94, 0.12),
        transparent 28%
      ),
      radial-gradient(
        circle at 92% 18%,
        rgba(138, 111, 77, 0.1),
        transparent 24%
      ),
      linear-gradient(rgba(21, 23, 24, 0.038) 1px, transparent 1px) 0 0 / 100%
        44px,
      #e5ddcc;
  }

  .web-dev-nav {
    top: 8px;
    width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .web-dev-brand {
    display: none;
  }

  .web-dev-nav nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: space-between;
    gap: 14px;
    scrollbar-width: none;
  }

  .web-dev-nav nav::-webkit-scrollbar {
    display: none;
  }

  .web-dev-nav nav a {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .web-dev-shell {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .web-dev-hero {
    padding: 24px 18px;
    border-radius: 10px;
    box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.12);
  }

  .web-dev-hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .web-dev-window {
    min-height: 320px;
  }

  .web-window-canvas {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .web-mock-card.is-side,
  .web-window-note {
    grid-column: auto;
  }

  .web-dev-chip-strip,
  .web-dev-card-grid,
  .web-dev-process-grid,
  .web-dev-price-grid,
  .web-dev-form-row {
    grid-template-columns: 1fr;
  }

  .web-dev-image-slot,
  .web-dev-preview-slot {
    min-height: 240px;
  }

  .web-dev-footer {
    width: calc(100% - 40px);
    margin-bottom: 52px;
    padding: 20px;
  }
}

:root[data-theme="dark"] .web-dev-service-body {
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(199, 255, 61, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(255, 138, 61, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #12120f, #1f1a12 62%, #11100c);
  color: var(--ink);
}

:root[data-theme="dark"] .web-dev-nav {
  border-color: rgba(245, 243, 229, 0.88);
  background: rgba(22, 23, 31, 0.72);
  color: var(--ink);
}

:root[data-theme="dark"] .web-dev-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  border-color: rgba(245, 243, 229, 0.38);
  background: transparent;
  object-fit: cover;
}

:root[data-theme="dark"] .web-dev-brand small,
:root[data-theme="dark"] .web-dev-kicker,
:root[data-theme="dark"] .web-dev-hero-copy > p:not(.web-dev-kicker),
:root[data-theme="dark"] .web-dev-card-grid p,
:root[data-theme="dark"] .web-dev-process-grid p,
:root[data-theme="dark"] .web-dev-price-grid p,
:root[data-theme="dark"] .web-dev-direction p,
:root[data-theme="dark"] .web-dev-proof-card p,
:root[data-theme="dark"] .web-dev-contact p,
:root[data-theme="dark"] .web-dev-faq p,
:root[data-theme="dark"] .web-dev-price-grid ul,
:root[data-theme="dark"] .web-dev-window-note,
:root[data-theme="dark"] .web-dev-image-slot,
:root[data-theme="dark"] .web-dev-contact-slot {
  color: rgba(245, 243, 229, 0.72);
}

:root[data-theme="dark"] .web-dev-nav nav a::after {
  background: linear-gradient(
    90deg,
    rgba(199, 255, 61, 0.22),
    rgba(255, 138, 61, 0.22)
  );
}

:root[data-theme="dark"] .web-dev-nav nav a:hover::after,
:root[data-theme="dark"] .web-dev-nav nav a:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(199, 255, 61, 0.62),
    rgba(255, 138, 61, 0.44)
  );
}

:root[data-theme="dark"] .web-dev-hero,
:root[data-theme="dark"] .web-dev-proof-card {
  background:
    radial-gradient(
      circle at 86% 14%,
      rgba(199, 255, 61, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(255, 138, 61, 0.11),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(25, 24, 18, 0.98), rgba(48, 35, 18, 0.94));
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .web-dev-window,
:root[data-theme="dark"] .web-dev-card-grid article,
:root[data-theme="dark"] .web-dev-process-grid article,
:root[data-theme="dark"] .web-dev-price-grid article,
:root[data-theme="dark"] .web-dev-faq details,
:root[data-theme="dark"] .web-dev-contact,
:root[data-theme="dark"] .web-dev-cta aside {
  border-color: rgba(245, 243, 229, 0.28);
  background: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .web-dev-cta aside p,
:root[data-theme="dark"] .web-dev-cta aside li,
:root[data-theme="dark"] .automation-workflow-check p,
:root[data-theme="dark"] .local-schedule aside p {
  color: rgba(245, 243, 229, 0.72);
}

:root[data-theme="dark"] .web-window-canvas {
  background:
    linear-gradient(rgba(245, 243, 229, 0.07) 1px, transparent 1px) 0 0 / 40px
      40px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.06) 1px, transparent 1px) 0 0 /
      40px 40px,
    rgba(245, 243, 229, 0.05);
}

:root[data-theme="dark"] .web-mock-card,
:root[data-theme="dark"] .web-mock-tile,
:root[data-theme="dark"] .web-window-note,
:root[data-theme="dark"] .web-dev-chip-strip span,
:root[data-theme="dark"] .web-dev-contact input,
:root[data-theme="dark"] .web-dev-contact textarea,
:root[data-theme="dark"] .service-contact-form input,
:root[data-theme="dark"] .service-contact-form textarea {
  border-color: rgba(245, 243, 229, 0.22);
  background: rgba(245, 243, 229, 0.1);
  color: var(--ink);
}

:root[data-theme="dark"] .web-mock-card span {
  background: rgba(199, 255, 61, 0.28);
}

:root[data-theme="dark"] .web-dev-price-grid article.is-featured {
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(199, 255, 61, 0.18),
      transparent 34%
    ),
    rgba(255, 138, 61, 0.09);
}

:root[data-theme="dark"] .web-dev-image-slot,
:root[data-theme="dark"] .web-dev-contact-slot {
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(255, 138, 61, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(199, 255, 61, 0.13),
      transparent 30%
    ),
    rgba(245, 243, 229, 0.06);
}

/* Separate FAQ pages for service topics */
.topic-faq-shell {
  width: min(var(--section-width), calc(100% - 32px));
  margin: 28px auto 64px;
}

.topic-faq-hero {
  padding: clamp(22px, 3.4vw, 38px);
  border: 2px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(199, 255, 61, 0.32),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 86%,
      rgba(255, 138, 61, 0.12),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 250, 240, 0.78),
      rgba(247, 237, 210, 0.72)
    );
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.1);
}

.topic-faq-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 0.96;
  font-weight: 950;
}

.topic-faq-hero
  p:not(.web-dev-kicker):not(.automation-kicker):not(.local-seo-kicker) {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  font-weight: 650;
}

.topic-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.topic-faq-list details {
  border: 1.5px solid rgba(17, 17, 17, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  padding: 20px 24px;
}

.topic-faq-list summary {
  cursor: pointer;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 900;
}

.topic-faq-list p {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.topic-faq-automation .topic-faq-hero {
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(155, 124, 246, 0.28),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 86%,
      rgba(89, 200, 216, 0.16),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 253, 244, 0.72),
      rgba(237, 227, 255, 0.66)
    );
}

.topic-faq-local .topic-faq-hero {
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(42, 171, 210, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 18% 84%,
      rgba(39, 119, 196, 0.14),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(225, 245, 255, 0.66)
    );
}

@media (max-width: 560px) {
  .topic-faq-shell {
    width: calc(100% - 20px);
    margin-top: 20px;
  }

  .topic-faq-hero {
    padding: 20px 16px;
  }

  .topic-faq-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .topic-faq-list details {
    padding: 17px 16px;
  }
}

:root[data-theme="dark"] .topic-faq-hero {
  border-color: rgba(245, 243, 229, 0.36);
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(199, 255, 61, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 86%,
      rgba(255, 138, 61, 0.1),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(25, 24, 18, 0.96), rgba(48, 35, 18, 0.9));
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .topic-faq-list details {
  border-color: rgba(245, 243, 229, 0.24);
  background: rgba(245, 243, 229, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"]
  .topic-faq-hero
  p:not(.web-dev-kicker):not(.automation-kicker):not(.local-seo-kicker),
:root[data-theme="dark"] .topic-faq-list p {
  color: rgba(245, 243, 229, 0.72);
}

:root[data-theme="dark"] .automation-message-panel {
  border-color: rgba(245, 243, 229, 0.32);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(155, 124, 246, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 86% 80%,
      rgba(89, 200, 216, 0.14),
      transparent 34%
    ),
    rgba(245, 243, 229, 0.07);
}

:root[data-theme="dark"] .automation-message-panel h2,
:root[data-theme="dark"] .automation-message-form h3 {
  color: var(--automation-paper);
}

:root[data-theme="dark"] .automation-message-panel p,
:root[data-theme="dark"] .automation-message-slot {
  color: rgba(245, 243, 229, 0.72);
}

/* ==================================================
   UI / UX Service
================================================== */

.page-uiux {
  --web-ink: #1d1417;
  --web-dark: #1d1417;
  --web-panel-dark: #2b2024;
  --web-primary: #7b63e8;
  --web-secondary: #ee7b4d;
  --web-accent: #efc8a1;
  --web-soft: #eadfff;
  --web-paper: #fbf2e9;
  --web-panel: #f1e3d7;
  --web-muted: #715d64;
  --service-nav-accent: #b78cff;
  --service-nav-accent-soft: rgba(183, 140, 255, 0.32);
  background:
    radial-gradient(
      circle at 10% 14%,
      rgba(123, 99, 232, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 16%,
      rgba(238, 123, 77, 0.12),
      transparent 26%
    ),
    linear-gradient(rgba(29, 20, 23, 0.034) 1px, transparent 1px) 0 0 / 100%
      54px,
    linear-gradient(90deg, rgba(29, 20, 23, 0.026) 1px, transparent 1px) 0 0 /
      54px 54px,
    #eadccc;
  color: var(--web-ink);
}

.page-uiux .web-dev-nav {
  background: rgba(251, 242, 233, 0.74);
}

.page-uiux .web-dev-nav nav a::after {
  background: linear-gradient(
    90deg,
    rgba(123, 99, 232, 0.28),
    rgba(238, 123, 77, 0.26)
  );
}

.page-uiux .web-dev-nav nav a:hover::after,
.page-uiux .web-dev-nav nav a:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(123, 99, 232, 0.58),
    rgba(238, 123, 77, 0.48)
  );
}

.page-uiux .web-dev-hero {
  background:
    radial-gradient(
      circle at 84% 84%,
      rgba(123, 99, 232, 0.14),
      transparent 32%
    ),
    radial-gradient(
      circle at 16% 16%,
      rgba(238, 123, 77, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #f7efe6, #e9dccd);
}

.page-uiux .web-dev-button.is-primary {
  background: var(--web-primary);
  box-shadow: 4px 4px 0 rgba(238, 123, 77, 0.4);
}

.page-uiux .web-dev-chip-strip span {
  border-color: rgba(123, 99, 232, 0.34);
  background: rgba(251, 242, 233, 0.72);
}

.page-uiux .web-window-canvas {
  background:
    linear-gradient(rgba(29, 20, 23, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(29, 20, 23, 0.04) 1px, transparent 1px) 0 0 /
      40px 40px,
    #fbf4ec;
}

.page-uiux .web-mock-card span,
.page-uiux .uiux-mini-panel span {
  background: rgba(123, 99, 232, 0.22);
}

.page-uiux .web-mock-tile {
  background: linear-gradient(
    135deg,
    rgba(123, 99, 232, 0.14),
    rgba(238, 123, 77, 0.14)
  );
}

.page-uiux .web-window-note {
  border-color: rgba(123, 99, 232, 0.34);
  background: rgba(123, 99, 232, 0.08);
}

.page-uiux .service-price-preview .is-featured {
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(123, 99, 232, 0.14),
      transparent 28%
    ),
    linear-gradient(135deg, rgba(251, 242, 233, 0.8), rgba(234, 223, 255, 0.56));
}

.page-uiux .service-site-footer {
  background:
    radial-gradient(
      circle at 86% 80%,
      rgba(123, 99, 232, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 16%,
      rgba(238, 123, 77, 0.16),
      transparent 24%
    ),
    #171112;
}

.uiux-window-canvas {
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: auto auto 1fr;
}

.uiux-mini-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 96px;
  padding: 18px;
  border: 1.5px solid rgba(29, 20, 23, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.uiux-mini-panel.is-accent {
  background: rgba(238, 123, 77, 0.08);
}

.uiux-mini-panel span {
  display: block;
  width: 70%;
  height: 11px;
  border-radius: 999px;
}

.uiux-mini-panel span:nth-child(2) {
  width: 54%;
}

.uiux-mini-panel span:nth-child(3) {
  width: 42%;
}

.uiux-shot-note img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.uiux-proof-slot,
.uiux-preview-slot {
  padding: 24px;
}

.uiux-browser-shot {
  width: min(100%, 520px);
  border: 1.5px solid rgba(29, 20, 23, 0.18);
  border-radius: 18px;
  background: rgba(255, 249, 243, 0.96);
  box-shadow: 10px 10px 0 rgba(29, 20, 23, 0.12);
  overflow: hidden;
}

.uiux-browser-shot.is-soft {
  width: min(100%, 460px);
}

.uiux-browser-top {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1.5px solid rgba(29, 20, 23, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.uiux-browser-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.uiux-browser-top i:nth-child(1) {
  background: #ff8f66;
}

.uiux-browser-top i:nth-child(2) {
  background: #a785ff;
}

.uiux-browser-top i:nth-child(3) {
  background: #8de7d4;
}

.uiux-browser-shot img {
  display: block;
  width: 100%;
  height: auto;
  padding: 18px;
  object-fit: contain;
}

.uiux-visual-frame {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(238, 123, 77, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 18% 84%,
      rgba(123, 99, 232, 0.12),
      transparent 30%
    ),
    rgba(251, 242, 233, 0.54);
}

.topic-faq-uiux .topic-faq-hero {
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(123, 99, 232, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 18% 84%,
      rgba(238, 123, 77, 0.16),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(255, 248, 240, 0.74),
      rgba(243, 229, 255, 0.66)
    );
}

:root[data-theme="dark"] .page-uiux {
  background:
    radial-gradient(
      circle at 10% 14%,
      rgba(155, 124, 246, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 16%,
      rgba(255, 138, 96, 0.1),
      transparent 26%
    ),
    linear-gradient(rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 / 100%
      54px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.03) 1px, transparent 1px) 0 0 /
      54px 54px,
    #151018;
}

:root[data-theme="dark"] .page-uiux .web-dev-hero {
  background:
    radial-gradient(
      circle at 84% 84%,
      rgba(155, 124, 246, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 16% 16%,
      rgba(255, 138, 96, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(29, 20, 23, 0.96), rgba(46, 30, 35, 0.92));
}

:root[data-theme="dark"] .page-uiux .web-dev-chip-strip span,
:root[data-theme="dark"] .page-uiux .web-dev-card-grid article,
:root[data-theme="dark"] .page-uiux .web-dev-process-grid article,
:root[data-theme="dark"] .page-uiux .web-dev-price-grid article {
  background: rgba(255, 240, 223, 0.08);
}

:root[data-theme="dark"] .page-uiux .web-window-canvas {
  background:
    linear-gradient(rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 / 40px
      40px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 /
      40px 40px,
    #20181c;
}

:root[data-theme="dark"] .page-uiux .uiux-browser-shot {
  border-color: rgba(245, 243, 229, 0.18);
  background: rgba(34, 26, 30, 0.96);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .page-uiux .uiux-browser-top {
  border-bottom-color: rgba(245, 243, 229, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .page-uiux .uiux-shot-note img,
:root[data-theme="dark"] .page-uiux .uiux-browser-shot img {
  filter: brightness(0.98);
}

@media (max-width: 560px) {
  .page-uiux .uiux-window-canvas {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .page-uiux .uiux-mini-panel {
    min-height: 76px;
    padding: 14px;
  }

  .page-uiux .uiux-proof-slot,
  .page-uiux .uiux-preview-slot,
  .page-uiux .uiux-visual-frame {
    padding: 16px;
  }

  .page-uiux .uiux-browser-shot img {
    padding: 12px;
  }
}

:root[data-theme="dark"] .automation-message-form,
:root[data-theme="dark"] .automation-message-slot {
  border-color: rgba(245, 243, 229, 0.24);
  background: rgba(245, 243, 229, 0.08);
}

@media (max-width: 900px) {
  .automation-message-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .automation-message-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .automation-message-panel h2 {
    font-size: 2.4rem;
  }

  .automation-message-slot {
    min-height: 210px;
  }
}

/* Cyber / networking notes page */
.cyber-page-body {
  --cyber-ink: #12191b;
  --cyber-muted: #4d5a59;
  --cyber-bg: #e7e3d4;
  --cyber-paper: #f3eedf;
  --cyber-panel: #d7ddcf;
  --cyber-panel-strong: #c3d4c7;
  --cyber-line: #171d1f;
  --cyber-signal: #315f59;
  --cyber-blue: #566f82;
  --cyber-accent: #b99353;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(86, 111, 130, 0.14),
      transparent 28%
    ),
    radial-gradient(circle at 18% 18%, rgba(49, 95, 89, 0.11), transparent 26%),
    radial-gradient(
      circle at 72% 78%,
      rgba(185, 147, 83, 0.11),
      transparent 30%
    ),
    linear-gradient(rgba(18, 25, 27, 0.035) 1px, transparent 1px) 0 0 / 100%
      46px,
    linear-gradient(90deg, rgba(18, 25, 27, 0.026) 1px, transparent 1px) 0 0 /
      46px 46px,
    var(--cyber-bg);
  color: var(--cyber-ink);
}

.cyber-nav {
  position: sticky;
  top: 12px;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--section-width), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 18px;
  border: 2px solid var(--cyber-line);
  border-radius: 12px;
  background: rgba(243, 238, 223, 0.72);
  box-shadow: 14px 14px 30px rgba(18, 25, 27, 0.1);
  backdrop-filter: blur(14px);
}

.cyber-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cyber-brand img {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(18, 25, 27, 0.28);
  border-radius: 9px;
  object-fit: cover;
}

.cyber-brand span {
  display: grid;
  line-height: 1.05;
}

.cyber-brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.cyber-brand small {
  color: var(--cyber-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.cyber-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.cyber-nav nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 800;
}

.cyber-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(49, 95, 89, 0.3),
    rgba(185, 147, 83, 0.22)
  );
  content: "";
  transform: scaleX(0.64);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.cyber-nav nav a:hover::after,
.cyber-nav nav a:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(49, 95, 89, 0.7),
    rgba(185, 147, 83, 0.44)
  );
  transform: scaleX(1);
}

.cyber-shell,
.cyber-footer {
  width: min(var(--section-width), calc(100% - 32px));
  margin-inline: auto;
}

.cyber-shell {
  display: grid;
  gap: clamp(42px, 7vw, 84px);
  padding: clamp(42px, 7vw, 88px) 0 56px;
}

.cyber-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.8fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  min-height: 560px;
}

.cyber-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--cyber-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cyber-kicker::before {
  width: 10px;
  height: 10px;
  border: 3px solid rgba(49, 95, 89, 0.34);
  border-radius: 50%;
  background: var(--cyber-accent);
  content: "";
}

.cyber-hero h1,
.cyber-section-head h2,
.cyber-signal-copy h2,
.cyber-why h2,
.cyber-roadmap h2 {
  margin: 0;
  color: var(--cyber-ink);
  font-size: clamp(2.9rem, 7vw, 7.4rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
}

.cyber-hero p:not(.cyber-kicker),
.cyber-section-head p:not(.cyber-kicker),
.cyber-card-grid p,
.cyber-lab-grid p,
.cyber-signal-copy p:not(.cyber-kicker),
.cyber-why p:not(.cyber-kicker),
.cyber-note-grid p {
  color: var(--cyber-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.52;
}

.cyber-hero-copy > p:not(.cyber-kicker) {
  max-width: 620px;
  margin: 20px 0 0;
}

.cyber-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cyber-actions a,
.cyber-roadmap-list span,
.cyber-pill-grid span {
  border: 2px solid var(--cyber-line);
  border-radius: 999px;
  background: rgba(243, 238, 223, 0.8);
  box-shadow: 4px 4px 0 rgba(18, 25, 27, 0.08);
  font-weight: 900;
}

.cyber-actions a {
  padding: 11px 18px;
}

.cyber-actions a:first-child {
  background: var(--cyber-ink);
  color: var(--cyber-paper);
}

.cyber-console {
  position: relative;
  min-height: 390px;
  border: 3px solid var(--cyber-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 38%, rgba(49, 95, 89, 0.2), transparent 34%),
    linear-gradient(rgba(243, 238, 223, 0.07) 1px, transparent 1px) 0 0 / 36px
      36px,
    linear-gradient(90deg, rgba(243, 238, 223, 0.05) 1px, transparent 1px) 0 0 /
      36px 36px,
    #172326;
  box-shadow: 18px 18px 0 rgba(49, 95, 89, 0.13);
  color: #eaf4e6;
  overflow: hidden;
}

.cyber-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  border-bottom: 2px solid rgba(243, 238, 223, 0.14);
}

.cyber-console-bar i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border-radius: 50%;
  background: #df6965;
}

.cyber-console-bar i:nth-child(2) {
  background: #d5b862;
}

.cyber-console-bar i:nth-child(3) {
  background: #70c17f;
}

.cyber-console-bar span {
  color: rgba(234, 244, 230, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
}

.cyber-map {
  position: relative;
  height: 236px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(234, 244, 230, 0.62);
  border-radius: 13px;
  background: rgba(16, 28, 31, 0.9);
  color: #eaf4e6;
  font-size: 0.78rem;
  font-weight: 900;
  animation: cyberPulse 2.8s ease-in-out infinite;
}

.pc {
  top: 118px;
  left: 58px;
}
.dns {
  top: 54px;
  left: 46%;
}
.fw {
  top: 142px;
  left: 47%;
  border-color: #b8c96a;
  color: #d8ec7f;
}
.web {
  top: 96px;
  right: 64px;
}
.log {
  right: 42px;
  bottom: 22px;
}

.wire {
  position: absolute;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 164, 154, 0.78),
    transparent
  );
  transform-origin: left center;
  animation: cyberWire 2.6s linear infinite;
}

.wire-a {
  top: 118px;
  left: 108px;
  width: 148px;
  transform: rotate(-25deg);
}
.wire-b {
  top: 96px;
  left: 50%;
  width: 160px;
  transform: rotate(20deg);
}
.wire-c {
  top: 176px;
  left: 104px;
  width: 178px;
  transform: rotate(8deg);
}
.wire-d {
  top: 174px;
  right: 82px;
  width: 140px;
  transform: rotate(-18deg);
}

.cyber-terminal {
  display: grid;
  gap: 8px;
  margin: 0 18px 18px;
  padding: 16px;
  border: 1px solid rgba(243, 238, 223, 0.12);
  border-radius: 8px;
  background: rgba(4, 9, 10, 0.5);
  color: #b9cc69;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.cyber-terminal span {
  animation: terminalBlink 4s steps(1) infinite;
}

.cyber-terminal span:nth-child(2) {
  animation-delay: 0.4s;
}
.cyber-terminal span:nth-child(3) {
  animation-delay: 0.8s;
}
.cyber-terminal span:nth-child(4) {
  animation-delay: 1.2s;
}

.cyber-chip-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1.5px solid rgba(18, 25, 27, 0.22);
  border-bottom: 1.5px solid rgba(18, 25, 27, 0.22);
}

.cyber-chip-strip span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1.5px solid rgba(49, 95, 89, 0.42);
  border-radius: 999px;
  background: rgba(243, 238, 223, 0.62);
  color: var(--cyber-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.cyber-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.cyber-section-head h2,
.cyber-signal-copy h2,
.cyber-why h2,
.cyber-roadmap h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.8rem);
}

.cyber-card-grid,
.cyber-lab-grid,
.cyber-note-grid {
  display: grid;
  gap: 16px;
}

.cyber-card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cyber-card-grid article,
.cyber-lab-grid article,
.cyber-note-grid article,
.cyber-image-slot,
.cyber-signal-copy {
  border: 2px solid var(--cyber-line);
  border-radius: 10px;
  background: rgba(243, 238, 223, 0.68);
  box-shadow: 8px 8px 0 rgba(18, 25, 27, 0.06);
}

.cyber-card-grid article,
.cyber-lab-grid article,
.cyber-note-grid article {
  padding: 22px;
}

.cyber-card-grid strong,
.cyber-note-grid strong {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  margin-bottom: 20px;
  border: 1.5px solid rgba(18, 25, 27, 0.24);
  border-radius: 999px;
  background: var(--cyber-panel);
  color: var(--cyber-signal);
  font-weight: 950;
}

.cyber-card-grid h3,
.cyber-lab-grid h3,
.cyber-note-grid h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 950;
}

.cyber-signal-split,
.cyber-why,
.cyber-roadmap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.cyber-image-slot {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  background:
    radial-gradient(
      circle at 28% 20%,
      rgba(86, 111, 130, 0.18),
      transparent 26%
    ),
    radial-gradient(circle at 72% 82%, rgba(49, 95, 89, 0.18), transparent 30%),
    rgba(223, 225, 207, 0.55);
  color: var(--cyber-muted);
  font-weight: 900;
  text-align: center;
}

.cyber-image-slot .tag {
  position: absolute;
  padding: 7px 12px;
  border: 1.5px solid rgba(18, 25, 27, 0.28);
  border-radius: 999px;
  background: var(--cyber-paper);
  font-size: 0.72rem;
  font-weight: 950;
}

.tag-one {
  top: 18px;
  left: 18px;
}
.tag-two {
  top: 42%;
  right: 18px;
}
.tag-three {
  bottom: 20px;
  right: 38px;
}

.cyber-signal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.cyber-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.cyber-pill-grid span {
  padding: 11px 14px;
  font-size: 0.82rem;
}

.cyber-lab-grid {
  grid-template-columns: repeat(4, 1fr);
}

.mini-router,
.mini-orbit,
.mini-firewall,
.mini-dns {
  width: 100%;
  height: 72px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(49, 95, 89, 0.38);
  border-radius: 8px;
  background: rgba(215, 221, 207, 0.62);
  overflow: hidden;
}

.mini-router {
  background:
    linear-gradient(
      90deg,
      transparent 16%,
      rgba(86, 111, 130, 0.3) 16% 22%,
      transparent 22% 45%,
      rgba(49, 95, 89, 0.32) 45% 54%,
      transparent 54%
    ),
    rgba(243, 238, 223, 0.8);
}

.mini-orbit {
  position: relative;
}

.mini-orbit::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 80%;
  height: 32px;
  border: 1.5px solid var(--cyber-signal);
  border-radius: 50%;
  content: "";
  transform: rotate(8deg);
}

.mini-firewall {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(86, 111, 130, 0.24) 0 12px,
      transparent 12px 24px
    ),
    linear-gradient(90deg, transparent, rgba(185, 147, 83, 0.18));
}

.mini-dns {
  display: grid;
  place-items: center;
  color: var(--cyber-signal);
  font-size: 1.5rem;
  font-weight: 950;
  letter-spacing: 0.24em;
}

.cyber-code-card {
  display: grid;
  gap: 10px;
  align-self: center;
  padding: 24px;
  border: 2px solid var(--cyber-line);
  border-radius: 10px;
  background: #152023;
  color: #d9ead4;
  font-family: Consolas, "Courier New", monospace;
  box-shadow: 10px 10px 0 rgba(18, 25, 27, 0.12);
}

.cyber-code-card span::before {
  color: var(--cyber-accent);
  content: "> ";
}

.cyber-note-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cyber-roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

.cyber-roadmap-list span {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 8px 12px;
  text-align: center;
}

.cyber-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--cyber-ink);
  color: var(--cyber-paper);
}

@keyframes cyberPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(185, 147, 83, 0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 18px rgba(185, 147, 83, 0.38);
    transform: translateY(-2px);
  }
}

@keyframes cyberWire {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 160px 0;
  }
}

@keyframes terminalBlink {
  0%,
  18% {
    opacity: 0.55;
  }
  19%,
  100% {
    opacity: 1;
  }
}

:root[data-theme="dark"] .cyber-page-body {
  --cyber-ink: #f0eadf;
  --cyber-muted: rgba(240, 234, 223, 0.72);
  --cyber-bg: #111718;
  --cyber-paper: #202a2c;
  --cyber-panel: #1d2928;
  --cyber-panel-strong: #253734;
  --cyber-line: rgba(240, 234, 223, 0.82);
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(86, 111, 130, 0.18),
      transparent 28%
    ),
    radial-gradient(circle at 18% 18%, rgba(49, 95, 89, 0.16), transparent 26%),
    linear-gradient(rgba(240, 234, 223, 0.035) 1px, transparent 1px) 0 0 / 100%
      46px,
    #111718;
}

:root[data-theme="dark"] .cyber-nav,
:root[data-theme="dark"] .cyber-card-grid article,
:root[data-theme="dark"] .cyber-lab-grid article,
:root[data-theme="dark"] .cyber-note-grid article,
:root[data-theme="dark"] .cyber-signal-copy,
:root[data-theme="dark"] .cyber-image-slot {
  background: rgba(240, 234, 223, 0.08);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .cyber-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  border-color: rgba(240, 234, 223, 0.34);
}

:root[data-theme="dark"] .cyber-chip-strip span,
:root[data-theme="dark"] .cyber-actions a,
:root[data-theme="dark"] .cyber-roadmap-list span,
:root[data-theme="dark"] .cyber-pill-grid span {
  background: rgba(240, 234, 223, 0.08);
  color: var(--cyber-ink);
}

@media (max-width: 900px) {
  .cyber-hero,
  .cyber-signal-split,
  .cyber-why,
  .cyber-roadmap {
    grid-template-columns: 1fr;
  }

  .cyber-card-grid,
  .cyber-lab-grid,
  .cyber-note-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cyber-chip-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .cyber-nav {
    width: calc(100% - 20px);
  }

  .cyber-nav {
    top: 8px;
    padding: 10px 12px;
  }

  .cyber-brand {
    display: none;
  }

  .cyber-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cyber-nav nav::-webkit-scrollbar {
    display: none;
  }

  .cyber-shell {
    width: calc(100% - 20px);
    padding-top: 34px;
  }

  .cyber-hero {
    min-height: auto;
  }

  .cyber-hero h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .cyber-console {
    min-height: 340px;
  }

  .cyber-card-grid,
  .cyber-lab-grid,
  .cyber-note-grid,
  .cyber-chip-strip {
    grid-template-columns: 1fr;
  }

  .cyber-signal-copy,
  .cyber-image-slot {
    min-height: 300px;
  }

  .cyber-pill-grid,
  .cyber-roadmap-list {
    grid-template-columns: 1fr;
  }
}

/* Personal gallery page */
.gallery-page {
  --gallery-bg: #efe7d1;
  --gallery-ink: #18130f;
  --gallery-muted: #746858;
  --gallery-paper: #fff7df;
  --gallery-paper-2: #e7d8b8;
  --gallery-line: #18130f;
  --gallery-red: #ff5a3d;
  --gallery-blue: #355cff;
  --gallery-green: #64d98b;
  --gallery-yellow: #ffd15c;
  --gallery-pink: #ff8ccf;
  --gallery-purple: #805cff;
  --gallery-orange: #ff9f43;
  --gallery-shadow: rgba(24, 19, 15, 0.18);
  --gallery-soft-shadow: rgba(24, 19, 15, 0.1);
  --gallery-max: 1180px;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 90, 61, 0.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 85% 12%,
      rgba(53, 92, 255, 0.15),
      transparent 25%
    ),
    radial-gradient(
      circle at 60% 88%,
      rgba(100, 217, 139, 0.14),
      transparent 28%
    ),
    linear-gradient(rgba(24, 19, 15, 0.035) 1px, transparent 1px) 0 0 / 100%
      46px,
    linear-gradient(90deg, rgba(24, 19, 15, 0.035) 1px, transparent 1px) 0 0 /
      46px 46px,
    var(--gallery-bg);
  color: var(--gallery-ink);
}

.gallery-page.gallery-dark {
  --gallery-bg: #101014;
  --gallery-ink: #fff3d8;
  --gallery-muted: #c6b99e;
  --gallery-paper: #1d1c22;
  --gallery-paper-2: #2a2630;
  --gallery-line: #fff3d8;
  --gallery-red: #ff5a3d;
  --gallery-blue: #7da2ff;
  --gallery-green: #7dffb2;
  --gallery-yellow: #ffd76d;
  --gallery-pink: #ff9bd8;
  --gallery-purple: #a98cff;
  --gallery-orange: #ffb35c;
  --gallery-shadow: rgba(0, 0, 0, 0.46);
  --gallery-soft-shadow: rgba(0, 0, 0, 0.3);
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 90, 61, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 85% 12%,
      rgba(125, 162, 255, 0.13),
      transparent 25%
    ),
    radial-gradient(
      circle at 60% 88%,
      rgba(125, 255, 178, 0.1),
      transparent 28%
    ),
    linear-gradient(rgba(255, 243, 216, 0.035) 1px, transparent 1px) 0 0 / 100%
      46px,
    linear-gradient(90deg, rgba(255, 243, 216, 0.035) 1px, transparent 1px) 0
      0 / 46px 46px,
    var(--gallery-bg);
}

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

.gallery-page a {
  color: inherit;
  text-decoration: none;
}

.gallery-page button {
  font: inherit;
}

.gallery-page img {
  display: block;
  max-width: 100%;
}

.gallery-page .page-wrap {
  width: min(var(--gallery-max), calc(100% - 32px));
  margin: 0 auto;
}

.gallery-remote {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gallery-line);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 247, 223, 0.86),
    rgba(255, 247, 223, 0.62)
  );
  box-shadow: 0 14px 34px var(--gallery-shadow);
  padding: 8px;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.gallery-page.gallery-dark .gallery-remote {
  background: linear-gradient(
    135deg,
    rgba(29, 28, 34, 0.88),
    rgba(29, 28, 34, 0.66)
  );
}

.gallery-remote a,
.gallery-remote button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gallery-ink);
  cursor: pointer;
  padding: 9px 13px;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.gallery-remote a:hover,
.gallery-remote button:hover,
.gallery-remote .is-active {
  background: var(--gallery-blue);
  color: #fff7df;
}

.gallery-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  padding: 74px 0 90px;
}

.hero-stamp {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gallery-line);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 209, 92, 0.72),
      rgba(255, 140, 207, 0.32)
    ),
    var(--gallery-paper);
  box-shadow: 6px 6px 0 var(--gallery-blue);
  padding: 8px 13px;
  color: var(--gallery-muted);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.hero-stamp::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gallery-red);
  box-shadow:
    14px 0 0 var(--gallery-blue),
    28px 0 0 var(--gallery-green);
  content: "";
}

.gallery-hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  font-size: clamp(3.2rem, 8vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.gallery-hero p {
  max-width: 530px;
  margin: 0;
  color: var(--gallery-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gallery-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gallery-line);
  border-radius: 999px;
  background: var(--gallery-paper);
  box-shadow: 5px 5px 0 var(--gallery-pink);
  color: var(--gallery-ink);
  padding: 9px 18px;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.gallery-btn.is-dark {
  background: var(--gallery-blue);
  color: #fff7df;
  box-shadow: 5px 5px 0 var(--gallery-green);
}

.gallery-btn:hover {
  box-shadow: 8px 8px 0 var(--gallery-shadow);
  transform: translate(-2px, -2px);
}

.memory-pile {
  position: relative;
  min-height: 620px;
  perspective: 900px;
}

.memory-pile::before {
  position: absolute;
  inset: 48px 32px;
  border: 2px dashed rgba(24, 19, 15, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 90, 61, 0.08),
      transparent 24%
    ),
    radial-gradient(circle at 80% 30%, rgba(53, 92, 255, 0.1), transparent 24%),
    rgba(255, 247, 223, 0.32);
  content: "";
  transform: rotate(-2deg);
}

.gallery-page.gallery-dark .memory-pile::before {
  border-color: rgba(255, 243, 216, 0.15);
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 90, 61, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(125, 162, 255, 0.1),
      transparent 24%
    ),
    rgba(255, 255, 255, 0.03);
}

.polaroid {
  position: absolute;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 255px;
  height: 330px;
  border: 2px solid var(--gallery-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%),
    var(--gallery-paper);
  box-shadow: 16px 16px 0 var(--gallery-shadow);
  padding: 14px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.polaroid:hover {
  z-index: 8;
  box-shadow: 22px 22px 0 var(--gallery-shadow);
  transform: rotate(0deg) translateY(-10px) scale(1.03) !important;
}

.polaroid-img {
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 18, 15, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(53, 92, 255, 0.16), rgba(100, 217, 139, 0.12)),
    var(--gallery-paper-2);
  color: var(--gallery-muted);
  font-weight: 950;
  overflow: hidden;
  text-align: center;
}

.gallery-page.gallery-dark .polaroid-img {
  border-color: rgba(255, 243, 219, 0.24);
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid small {
  display: block;
  padding: 12px 4px 2px;
  color: var(--gallery-muted);
  font-weight: 900;
  text-align: center;
}

.polaroid.one {
  top: 26px;
  left: 14%;
  z-index: 3;
  background: linear-gradient(160deg, #fff7df, #dce5ff);
  transform: rotate(-9deg);
}

.polaroid.two {
  top: 110px;
  right: 6%;
  z-index: 2;
  background: linear-gradient(160deg, #fff7df, #ffe1bc);
  transform: rotate(8deg);
}

.polaroid.three {
  bottom: 52px;
  left: 6%;
  z-index: 4;
  background: linear-gradient(160deg, #fff7df, #d7ffe5);
  transform: rotate(6deg);
}

.polaroid.four {
  right: 22%;
  bottom: 18px;
  z-index: 5;
  background: linear-gradient(160deg, #fff7df, #ffdff2);
  transform: rotate(-4deg);
}

.gallery-page.gallery-dark .polaroid.one,
.gallery-page.gallery-dark .polaroid.two,
.gallery-page.gallery-dark .polaroid.three,
.gallery-page.gallery-dark .polaroid.four {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--gallery-paper);
}

.gallery-page .tape {
  position: absolute;
  z-index: 10;
  width: 96px;
  height: 32px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.24) 0 6px,
      rgba(255, 255, 255, 0.04) 6px 12px
    ),
    rgba(255, 209, 92, 0.7);
  box-shadow: 4px 4px 0 var(--gallery-soft-shadow);
  transform: rotate(-8deg);
}

.gallery-page .tape.one {
  top: 18px;
  left: 28%;
}

.gallery-page .tape.two {
  right: 18%;
  bottom: 96px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.24) 0 6px,
      rgba(255, 255, 255, 0.04) 6px 12px
    ),
    rgba(125, 162, 255, 0.7);
  transform: rotate(11deg);
}

.archive-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 90px;
}

.archive-card {
  border: 2px solid var(--gallery-line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 48%),
    var(--gallery-paper);
  box-shadow: 8px 8px 0 var(--gallery-soft-shadow);
  padding: 22px;
  transform: rotate(-1deg);
}

.archive-card:nth-child(2) {
  transform: rotate(1.2deg);
}

.archive-card:nth-child(3) {
  transform: rotate(-0.4deg);
}

.archive-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--gallery-line);
  border-radius: 14px;
  background: var(--gallery-blue);
  color: #fff7df;
  font-weight: 950;
}

.archive-card:nth-child(2) span {
  background: var(--gallery-red);
}

.archive-card:nth-child(3) span {
  background: var(--gallery-green);
  color: #18130f;
}

.archive-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.3rem;
}

.archive-card p {
  margin: 8px 0 0;
  color: var(--gallery-muted);
  line-height: 1.5;
}

.album-zone {
  padding: 30px 0 90px;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.section-title h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.section-title p {
  max-width: 340px;
  margin: 0;
  color: var(--gallery-muted);
  line-height: 1.55;
}

.album-shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  border-top: 2px solid var(--gallery-line);
  border-bottom: 2px solid var(--gallery-line);
  padding: 18px 0;
}

.album-folder {
  position: relative;
  flex: 0 0 210px;
  min-height: 120px;
  border: 2px solid var(--gallery-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 48%),
    var(--gallery-paper);
  color: var(--gallery-ink);
  cursor: pointer;
  padding: 42px 16px 16px;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.album-folder:nth-child(1) {
  box-shadow: 8px 8px 0 rgba(53, 92, 255, 0.25);
}

.album-folder:nth-child(2) {
  box-shadow: 8px 8px 0 rgba(255, 140, 207, 0.28);
}

.album-folder:nth-child(3) {
  box-shadow: 8px 8px 0 rgba(255, 209, 92, 0.3);
}

.album-folder:nth-child(4) {
  box-shadow: 8px 8px 0 rgba(100, 217, 139, 0.28);
}

.album-folder:nth-child(5) {
  box-shadow: 8px 8px 0 rgba(255, 90, 61, 0.24);
}

.album-folder::before {
  position: absolute;
  top: -16px;
  left: 20px;
  width: 92px;
  height: 36px;
  border: 2px solid var(--gallery-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: inherit;
  content: "";
}

.album-folder span {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
}

.album-folder small {
  display: block;
  margin-top: 6px;
  color: var(--gallery-muted);
  font-weight: 750;
  line-height: 1.25;
}

.album-folder:hover,
.album-folder.is-active {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 48%), #e7ffef;
  box-shadow: 10px 10px 0 var(--gallery-blue);
  color: #18130f;
  transform: translate(-3px, -3px);
}

.gallery-page.gallery-dark .album-folder.is-active,
.gallery-page.gallery-dark .album-folder:hover {
  background:
    linear-gradient(
      145deg,
      rgba(125, 162, 255, 0.14),
      rgba(125, 255, 178, 0.08)
    ),
    var(--gallery-paper);
  color: var(--gallery-ink);
}

.wall-zone {
  padding: 0 0 110px;
}

.gallery-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 86px;
  gap: 16px;
  margin-top: 32px;
}

.gallery-wall::before {
  position: absolute;
  inset: -20px;
  z-index: -1;
  border: 2px dashed rgba(24, 19, 15, 0.14);
  border-radius: 36px;
  background: rgba(255, 247, 223, 0.28);
  content: "";
}

.gallery-page.gallery-dark .gallery-wall::before {
  border-color: rgba(255, 243, 216, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.memory-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gallery-line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 45%),
    var(--gallery-paper);
  box-shadow: 8px 8px 0 var(--gallery-soft-shadow);
  color: var(--gallery-ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.memory-card::before {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 209, 92, 0.7);
  content: "";
  opacity: 0.86;
  pointer-events: none;
  transform: translateX(-50%) rotate(-2deg);
}

.memory-card:nth-child(even)::before {
  background: rgba(125, 162, 255, 0.65);
  transform: translateX(-50%) rotate(3deg);
}

.memory-card:nth-child(3n)::before {
  background: rgba(255, 140, 207, 0.64);
}

.memory-card:hover {
  z-index: 4;
  box-shadow: 14px 14px 0 var(--gallery-shadow);
  transform: translate(-4px, -4px) rotate(-0.6deg);
}

.memory-card.is-hidden {
  display: none;
}

.memory-card.size-a {
  grid-column: span 5;
  grid-row: span 5;
}

.memory-card.size-b {
  grid-column: span 4;
  grid-row: span 4;
}

.memory-card.size-c {
  grid-column: span 3;
  grid-row: span 3;
}

.memory-card.size-d {
  grid-column: span 7;
  grid-row: span 3;
}

.memory-card img,
.memory-placeholder {
  width: 100%;
  height: 100%;
}

.memory-card img {
  object-fit: cover;
  transition:
    transform 420ms ease,
    filter 220ms ease;
}

.memory-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.05);
}

.memory-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 20% 22%,
      rgba(53, 92, 255, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at 80% 72%,
      rgba(100, 217, 139, 0.2),
      transparent 26%
    ),
    linear-gradient(135deg, rgba(255, 209, 92, 0.18), transparent),
    var(--gallery-paper-2);
  color: var(--gallery-muted);
  padding: 22px;
  font-weight: 950;
  text-align: center;
}

.memory-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 2px solid rgba(24, 19, 15, 0.78);
  border-radius: 16px;
  background: rgba(255, 247, 223, 0.9);
  color: #17120f;
  padding: 10px;
  backdrop-filter: blur(10px);
}

.memory-label strong {
  display: block;
  font-size: 0.92rem;
}

.memory-label small {
  display: block;
  margin-top: 3px;
  color: #62584d;
  font-weight: 750;
  line-height: 1.25;
}

.note-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.note {
  border: 2px solid var(--gallery-line);
  border-radius: 24px;
  background: var(--gallery-paper);
  box-shadow: 8px 8px 0 var(--gallery-soft-shadow);
  padding: 20px;
  transform: rotate(-1deg);
}

.note:nth-child(1) {
  background: #fff7df;
  box-shadow: 8px 8px 0 rgba(53, 92, 255, 0.24);
}

.note:nth-child(2) {
  background: #e1ffe9;
  box-shadow: 8px 8px 0 rgba(255, 140, 207, 0.24);
  transform: rotate(1.2deg);
}

.note:nth-child(3) {
  background: #fff0bd;
  box-shadow: 8px 8px 0 rgba(255, 90, 61, 0.2);
  transform: rotate(-0.4deg);
}

.gallery-page.gallery-dark .note:nth-child(1),
.gallery-page.gallery-dark .note:nth-child(2),
.gallery-page.gallery-dark .note:nth-child(3) {
  background: var(--gallery-paper);
}

.note strong {
  display: block;
  margin-bottom: 8px;
}

.note p {
  margin: 0;
  color: var(--gallery-muted);
  line-height: 1.5;
}

.lightbox {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 26px;
  background: transparent;
  padding: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.lightbox-inner {
  overflow: hidden;
  border: 3px solid #fff8e8;
  border-radius: 26px;
  background: #17120f;
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  background: #17120f;
  object-fit: contain;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #fff8e8;
  color: #17120f;
  padding: 14px 18px;
  font-weight: 900;
}

.close-lightbox {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 2px solid #fff8e8;
  border-radius: 50%;
  background: #17120f;
  color: #fff8e8;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 950;
}

@media (max-width: 980px) {
  .gallery-hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .memory-pile {
    min-height: 560px;
  }

  .archive-intro {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .archive-card,
  .archive-card:nth-child(2),
  .archive-card:nth-child(3) {
    transform: none;
  }

  .section-title {
    grid-template-columns: 1fr;
  }

  .gallery-wall {
    grid-template-columns: repeat(6, 1fr);
  }

  .memory-card.size-a,
  .memory-card.size-b,
  .memory-card.size-c,
  .memory-card.size-d {
    grid-column: span 3;
    grid-row: span 4;
  }

  .note-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .gallery-page .page-wrap {
    width: min(100% - 24px, var(--gallery-max));
  }

  .gallery-remote {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
    transform: none;
  }

  .gallery-remote a,
  .gallery-remote button {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .gallery-hero h1,
  .section-title h2 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .memory-pile {
    min-height: 520px;
  }

  .polaroid {
    width: 185px;
    height: 250px;
  }

  .polaroid.one {
    left: 2%;
  }

  .polaroid.two {
    right: 10px;
    transform: rotate(4deg);
  }

  .polaroid.three {
    bottom: 70px;
    left: 0;
  }

  .polaroid.four {
    right: 2%;
  }

  .album-zone {
    padding-bottom: 64px;
  }

  .album-shelf {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .album-folder {
    width: 100%;
  }

  .gallery-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .memory-card.size-a,
  .memory-card.size-b,
  .memory-card.size-c,
  .memory-card.size-d {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lightbox-caption {
    display: grid;
  }
}

/* Final shared polish: themes, navigation, return controls, stacked main-page panels, and service footer */
::selection {
  background: #96f0ff;
  color: #101010;
}

:root[data-theme="dark"] ::selection {
  background: #c7ff3d;
  color: #101010;
}

.site-nav {
  width: min(var(--section-width), calc(100% - 48px));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.site-nav nav a::after {
  background: rgba(229, 165, 233, 0.38);
  transition:
    transform 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.site-nav nav a:hover::after,
.site-nav nav a.is-active::after {
  background: rgba(229, 120, 220, 0.62);
}

.site-nav-brand img,
.local-service-brand img,
.automation-service-brand img,
.web-dev-brand img,
.cyber-brand img,
.project-page-brand img,
.contact-brand img,
.service-footer-brand img {
  background: #151515;
  object-fit: cover;
}

:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img,
:root[data-theme="dark"] .project-page-brand img,
:root[data-theme="dark"] .contact-brand img,
:root[data-theme="dark"] .service-footer-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515;
}

/* Main page stacked scroll effect: only the large page panels stick. */
main#home {
  isolation: isolate;
}

main#home > .about-section,
main#home > .service-section,
main#home > .feature-section,
main#home > .carousel-section {
  --panel-index: 1;
  position: sticky;
  top: 0;
  z-index: var(--panel-index);
  min-height: 100svh;
  padding-top: clamp(92px, 10svh, 124px);
  background: var(--page-bg);
  box-shadow: 0 0 0 100vmax var(--page-bg);
  clip-path: inset(0 -100vmax);
}

main#home > .about-section {
  --panel-index: 2;
}

main#home > .service-section {
  --panel-index: 3;
}

main#home > .feature-section {
  --panel-index: 4;
}

main#home > .carousel-section {
  --panel-index: 5;
}

.section-divider {
  z-index: 6;
}

.name-stage {
  margin-bottom: 30px;
}

.language-name {
  font-size: clamp(3.1rem, 7vw, 5.25rem);
  font-weight: 840;
}

.portrait-frame:hover,
.portrait-frame:focus-within {
  --play-photo-y: -8px;
  --photo-tilt-x: 4deg;
  --photo-tilt-y: -5deg;
}

.portrait-frame:hover::before,
.portrait-frame:focus-within::before {
  opacity: 1;
  transform: translateY(10px) scale(1);
}

.service-card .service-demo i,
.service-demo-web i,
.service-demo-seo i,
.service-demo-automation i {
  animation-play-state: running !important;
}

.service-demo-network i {
  animation: packet-pulse 1.4s ease-in-out infinite;
}

.service-demo-network i:nth-child(1) {
  animation-delay: 0ms;
}

.service-demo-network i:nth-child(2) {
  animation-delay: 180ms;
}

.service-demo-network i:nth-child(3) {
  animation-delay: 360ms;
}

.service-demo-network i:nth-child(4) {
  animation-delay: 540ms;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  min-width: 46px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.14);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
  backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

:root[data-theme="dark"] .back-to-top {
  background: rgba(18, 18, 22, 0.78);
  box-shadow: 5px 5px 0 rgba(141, 245, 181, 0.18);
}

.automation-service-footer,
.local-seo-footer,
.web-dev-footer,
.cyber-footer {
  display: none;
}

.service-site-footer {
  width: min(var(--section-width), calc(100% - 32px));
  margin: 72px auto 22px;
  border: 2px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 82% 80%,
      rgba(141, 245, 181, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(23, 23, 25, 0.96));
  color: #f5f3e5;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 14px 14px 0 rgba(17, 17, 17, 0.12);
}

.service-site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-site-footer::after {
  content: "coldboot";
  position: absolute;
  right: 34px;
  bottom: -36px;
  z-index: 0;
  color: rgba(245, 243, 229, 0.08);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  text-transform: lowercase;
  user-select: none;
}

.service-footer-main,
.service-footer-bottom {
  position: relative;
  z-index: 1;
}

.service-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.service-footer-socials a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.7px solid currentColor;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.service-footer-socials a:hover {
  background: rgba(141, 245, 181, 0.18);
  transform: translateY(-2px);
}

.service-footer-socials a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.service-footer-main {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.1fr) minmax(160px, 0.55fr) minmax(160px, 0.55fr)
    136px;
  gap: 34px;
  align-items: start;
}

.service-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-footer-brand img {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(245, 243, 229, 0.32);
  border-radius: 12px;
}

.service-footer-brand strong {
  font-size: 1.1rem;
  font-weight: 900;
}

.service-site-footer p {
  max-width: 430px;
  margin: 0 0 18px;
  color: rgba(245, 243, 229, 0.74);
}

.service-footer-cta {
  display: inline-flex;
  border: 2px solid #101010;
  border-radius: 999px;
  background: #335cff;
  box-shadow: 5px 5px 0 #8df5b5;
  color: #fff;
  padding: 10px 18px;
  font-weight: 900;
}

.service-site-footer nav {
  display: grid;
  gap: 9px;
}

.service-site-footer nav span {
  color: rgba(245, 243, 229, 0.62);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-site-footer nav a {
  color: #f5f3e5;
  font-weight: 850;
}

.service-footer-qr {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  justify-self: end;
  border: 2px dashed rgba(245, 243, 229, 0.42);
  border-radius: 18px;
  color: rgba(245, 243, 229, 0.72);
  font-weight: 900;
}

.service-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  border-top: 1.5px solid rgba(245, 243, 229, 0.3);
  padding-top: 16px;
  color: rgba(245, 243, 229, 0.72);
}

.service-footer-bottom a {
  font-weight: 900;
}

/* Projects page nav aligned with the service nav system. */
.project-page-nav {
  width: min(var(--section-width), calc(100% - 32px));
  border: 2px solid var(--project-hard-line);
  border-radius: 12px;
  padding: 12px 16px;
}

.project-page .page-theme-toggle {
  top: 92px;
  right: clamp(14px, 3vw, 34px);
}

/* Contact theme is the baseline for light mode across service pages. */
:root:not([data-theme="dark"]) .automation-service-body,
:root:not([data-theme="dark"]) .local-seo-body,
:root:not([data-theme="dark"]) .web-dev-service-body,
:root:not([data-theme="dark"]) .cyber-page-body,
:root:not([data-theme="dark"]) .project-page,
:root:not([data-theme="dark"]) .contact-page {
  background-color: #e9e1cf;
}

:root[data-theme="dark"] {
  --page-bg: #101014;
  --ink: #f4eddc;
  --muted: #c8bda8;
  --line: #f4eddc;
  --card-bg: #26262d;
  --footer-bg: #0d1014;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(125, 162, 255, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 16%,
      rgba(141, 245, 181, 0.1),
      transparent 26%
    ),
    linear-gradient(rgba(244, 237, 220, 0.035) 1px, transparent 1px) 0 0 / 54px
      54px,
    linear-gradient(90deg, rgba(244, 237, 220, 0.035) 1px, transparent 1px) 0
      0 / 54px 54px,
    var(--page-bg);
}

:root[data-theme="dark"] .service-demo,
:root[data-theme="dark"] .tab-panel,
:root[data-theme="dark"] .intro-card-inner,
:root[data-theme="dark"] .language-empty {
  background: rgba(244, 237, 220, 0.08);
  border-color: rgba(244, 237, 220, 0.2);
}

:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .portfolio-card,
:root[data-theme="dark"] .about-copy,
:root[data-theme="dark"] .software-block,
:root[data-theme="dark"] .feature-links a {
  background: #26262d;
  color: var(--ink);
}

:root[data-theme="dark"] .service-card:hover,
:root[data-theme="dark"] .service-card.is-active {
  background: #30303a;
}

:root[data-theme="dark"] .service-demo-automation i,
:root[data-theme="dark"] .service-demo-web i,
:root[data-theme="dark"] .service-demo-seo i {
  background: #f4eddc;
}

:root[data-theme="dark"] .service-demo-network::before,
:root[data-theme="dark"] .service-demo-network::after {
  background: rgba(244, 237, 220, 0.38);
}

:root[data-theme="dark"] .service-demo-network i {
  border-color: #f4eddc;
  background: #101014;
}

/* Web-dev dark mode keeps its identity without the heavy old palette. */
:root[data-theme="dark"] .web-dev-service-body {
  --web-ink: #f4eddc;
  --web-dark: #f4eddc;
  --web-primary: #8df5b5;
  --web-secondary: #7da2ff;
  --web-accent: #ffb35c;
  --web-paper: #10141c;
  --web-panel: rgba(244, 237, 220, 0.08);
  --web-muted: rgba(244, 237, 220, 0.72);
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(125, 162, 255, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(141, 245, 181, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #10141c, #121820 64%, #0d1014);
}

:root[data-theme="dark"] .web-dev-hero,
:root[data-theme="dark"] .web-dev-proof-card {
  background:
    radial-gradient(
      circle at 86% 14%,
      rgba(141, 245, 181, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(125, 162, 255, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(18, 24, 32, 0.98), rgba(13, 16, 20, 0.94));
}

@media (max-width: 760px) {
  main#home > .about-section,
  main#home > .service-section,
  main#home > .feature-section,
  main#home > .carousel-section {
    position: static;
    min-height: auto;
    padding-top: 34px;
    box-shadow: none;
    clip-path: none;
  }

  .service-footer-main {
    grid-template-columns: 1fr;
  }

  .service-footer-qr {
    justify-self: start;
  }

  .service-footer-bottom {
    display: grid;
  }

  .project-page-nav nav {
    padding-right: 0;
  }
}

/* Real final guard: older duplicated blocks above must not re-enable the overlay system. */
main#home {
  isolation: auto !important;
}

main#home > .about-section,
main#home > .service-section,
main#home > .feature-section,
main#home > .carousel-section {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  min-height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

main#home > .about-section {
  padding-top: clamp(34px, 5vw, 58px) !important;
}

.name-stage {
  min-height: auto !important;
  margin: 0 auto clamp(28px, 4vw, 42px) !important;
  padding-top: 0 !important;
}

.about-layout {
  margin-top: 0 !important;
}

:root:not([data-theme="dark"]) .site-nav-brand img,
:root:not([data-theme="dark"]) .local-service-brand img,
:root:not([data-theme="dark"]) .automation-service-brand img,
:root:not([data-theme="dark"]) .web-dev-brand img,
:root:not([data-theme="dark"]) .cyber-brand img,
:root:not([data-theme="dark"]) .project-page-brand img,
:root:not([data-theme="dark"]) .contact-brand img,
:root:not([data-theme="dark"]) .service-footer-brand img,
:root:not([data-theme="dark"]) .utility-brand img {
  content: url("../assets/icon/brand-logo.webp");
  background: transparent !important;
  object-fit: contain;
}

:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img,
:root[data-theme="dark"] .project-page-brand img,
:root[data-theme="dark"] .contact-brand img,
:root[data-theme="dark"] .service-footer-brand img,
:root[data-theme="dark"] .utility-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515 !important;
  object-fit: cover;
}

:root:not([data-theme="dark"]) .service-site-footer {
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(141, 245, 181, 0.18),
      transparent 28%
    ),
    rgba(255, 250, 238, 0.72);
  color: #101010;
}

:root:not([data-theme="dark"]) .service-site-footer p,
:root:not([data-theme="dark"]) .service-site-footer nav span,
:root:not([data-theme="dark"]) .service-footer-bottom,
:root:not([data-theme="dark"]) .service-footer-qr {
  color: rgba(16, 16, 16, 0.64);
}

:root:not([data-theme="dark"]) .service-site-footer nav a,
:root:not([data-theme="dark"]) .service-footer-brand strong,
:root:not([data-theme="dark"]) .service-footer-bottom a {
  color: #101010;
}

/* Real final guard: older duplicated blocks above must not re-enable the overlay system. */
main#home {
  isolation: auto !important;
}

main#home > .about-section,
main#home > .service-section,
main#home > .feature-section,
main#home > .carousel-section {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  min-height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

main#home > .about-section {
  padding-top: clamp(34px, 5vw, 58px) !important;
}

.name-stage {
  min-height: auto !important;
  margin: 0 auto clamp(28px, 4vw, 42px) !important;
  padding-top: 0 !important;
}

.about-layout {
  margin-top: 0 !important;
}

:root:not([data-theme="dark"]) .site-nav-brand img,
:root:not([data-theme="dark"]) .local-service-brand img,
:root:not([data-theme="dark"]) .automation-service-brand img,
:root:not([data-theme="dark"]) .web-dev-brand img,
:root:not([data-theme="dark"]) .cyber-brand img,
:root:not([data-theme="dark"]) .project-page-brand img,
:root:not([data-theme="dark"]) .contact-brand img,
:root:not([data-theme="dark"]) .service-footer-brand img,
:root:not([data-theme="dark"]) .utility-brand img {
  content: url("../assets/icon/brand-logo.webp");
  background: transparent !important;
  object-fit: contain;
}

:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img,
:root[data-theme="dark"] .project-page-brand img,
:root[data-theme="dark"] .contact-brand img,
:root[data-theme="dark"] .service-footer-brand img,
:root[data-theme="dark"] .utility-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515 !important;
  object-fit: cover;
}

:root:not([data-theme="dark"]) .service-site-footer {
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(141, 245, 181, 0.18),
      transparent 28%
    ),
    rgba(255, 250, 238, 0.72);
  color: #101010;
}

:root:not([data-theme="dark"]) .service-site-footer p,
:root:not([data-theme="dark"]) .service-site-footer nav span,
:root:not([data-theme="dark"]) .service-footer-bottom,
:root:not([data-theme="dark"]) .service-footer-qr {
  color: rgba(16, 16, 16, 0.64);
}

:root:not([data-theme="dark"]) .service-site-footer nav a,
:root:not([data-theme="dark"]) .service-footer-brand strong,
:root:not([data-theme="dark"]) .service-footer-bottom a {
  color: #101010;
}

/* Latest requested cleanup: normal main-page scroll, correct logos, utility pages, and lighter shared footers. */
main#home {
  isolation: auto !important;
}

main#home > .about-section,
main#home > .service-section,
main#home > .feature-section,
main#home > .carousel-section {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  min-height: auto !important;
  padding-top: revert-layer;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

main#home > .about-section {
  padding-top: clamp(34px, 5vw, 58px) !important;
}

main#home > .service-section {
  padding-top: clamp(30px, 5vw, 58px) !important;
}

main#home > .feature-section,
main#home > .carousel-section {
  padding-top: clamp(24px, 4vw, 44px) !important;
}

.name-stage {
  min-height: auto !important;
  margin: 0 auto clamp(28px, 4vw, 42px) !important;
  padding-top: 0 !important;
}

.about-layout {
  margin-top: 0 !important;
}

:root:not([data-theme="dark"]) .site-nav-brand img,
:root:not([data-theme="dark"]) .local-service-brand img,
:root:not([data-theme="dark"]) .automation-service-brand img,
:root:not([data-theme="dark"]) .web-dev-brand img,
:root:not([data-theme="dark"]) .cyber-brand img,
:root:not([data-theme="dark"]) .project-page-brand img,
:root:not([data-theme="dark"]) .contact-brand img,
:root:not([data-theme="dark"]) .service-footer-brand img,
:root:not([data-theme="dark"]) .utility-brand img {
  content: url("../assets/icon/brand-logo.webp");
  background: transparent !important;
  object-fit: contain;
}

:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img,
:root[data-theme="dark"] .project-page-brand img,
:root[data-theme="dark"] .contact-brand img,
:root[data-theme="dark"] .service-footer-brand img,
:root[data-theme="dark"] .utility-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515 !important;
  object-fit: cover;
}

:root:not([data-theme="dark"]) .service-site-footer {
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(141, 245, 181, 0.18),
      transparent 28%
    ),
    rgba(255, 250, 238, 0.72);
  color: #101010;
}

:root:not([data-theme="dark"]) .service-site-footer p,
:root:not([data-theme="dark"]) .service-site-footer nav span,
:root:not([data-theme="dark"]) .service-footer-bottom,
:root:not([data-theme="dark"]) .service-footer-qr {
  color: rgba(16, 16, 16, 0.64);
}

:root:not([data-theme="dark"]) .service-site-footer nav a,
:root:not([data-theme="dark"]) .service-footer-brand strong,
:root:not([data-theme="dark"]) .service-footer-bottom a {
  color: #101010;
}

:root:not([data-theme="dark"]) .service-footer-brand img {
  border-color: rgba(16, 16, 16, 0.42);
}

:root:not([data-theme="dark"]) .service-footer-bottom {
  border-top-color: rgba(16, 16, 16, 0.3);
}

:root:not([data-theme="dark"]) .service-footer-qr {
  border-color: rgba(16, 16, 16, 0.48);
}

.service-site-footer nav a[href="networking.html"] {
  display: none;
}

.utility-page {
  --utility-bg: #f3eedb;
  --utility-ink: #101010;
  --utility-muted: #635d53;
  --utility-line: #101010;
  --utility-panel: rgba(255, 248, 224, 0.68);
  --utility-soft: rgba(255, 248, 224, 0.5);
  --utility-blue: #2e63ff;
  --utility-green: #78efac;
  --utility-pink: #f3c8f4;
  --utility-shadow: rgba(17, 17, 17, 0.12);
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(120, 239, 172, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 14% 88%,
      rgba(243, 200, 244, 0.14),
      transparent 26%
    ),
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px) 0 0 / 48px
      48px,
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px) 0 0 /
      48px 48px,
    var(--utility-bg);
  color: var(--utility-ink);
}

:root[data-theme="dark"] .utility-page {
  --utility-bg: #111419;
  --utility-ink: #f4eddc;
  --utility-muted: #c4b9a6;
  --utility-line: #f4eddc;
  --utility-panel: rgba(244, 237, 220, 0.075);
  --utility-soft: rgba(244, 237, 220, 0.045);
  --utility-blue: #7da2ff;
  --utility-green: #8df5b5;
  --utility-pink: rgba(255, 155, 216, 0.28);
  --utility-shadow: rgba(0, 0, 0, 0.38);
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(125, 162, 255, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 14% 88%,
      rgba(141, 245, 181, 0.1),
      transparent 26%
    ),
    linear-gradient(rgba(244, 237, 220, 0.035) 1px, transparent 1px) 0 0 / 48px
      48px,
    linear-gradient(90deg, rgba(244, 237, 220, 0.035) 1px, transparent 1px) 0
      0 / 48px 48px,
    var(--utility-bg);
}

.utility-nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  width: min(var(--section-width), calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px auto 34px;
  border: 2px solid var(--utility-line);
  border-radius: 12px;
  background: rgba(255, 250, 238, 0.72);
  box-shadow: 12px 12px 0 var(--utility-shadow);
  padding: 12px 18px;
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .utility-nav {
  background: rgba(17, 20, 25, 0.76);
}

.utility-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.utility-brand img {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--utility-line);
  border-radius: 12px;
}

.utility-brand span {
  display: grid;
  line-height: 1.05;
}

.utility-brand strong,
.utility-nav a,
.utility-theme-link {
  font-weight: 900;
}

.utility-brand small {
  color: var(--utility-muted);
  font-weight: 760;
}

.utility-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.utility-nav nav a,
.utility-theme-link {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--utility-ink);
  cursor: pointer;
  padding: 8px 0;
}

.utility-nav nav a::after,
.utility-theme-link::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(120, 239, 172, 0.72),
    rgba(243, 200, 244, 0.72)
  );
  content: "";
  transform: translateX(-50%);
}

.utility-theme-link .theme-toggle-icon {
  display: none;
}

.utility-shell {
  width: min(1120px, calc(100% - 42px));
  margin: 0 auto 90px;
}

.utility-hero {
  border: 2px solid var(--utility-line);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(120, 239, 172, 0.22),
      transparent 34%
    ),
    var(--utility-panel);
  box-shadow: 12px 12px 0 var(--utility-shadow);
  padding: clamp(28px, 5vw, 48px);
}

.utility-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border: 2px solid var(--utility-line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--utility-muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.utility-hero h1,
.utility-list-head h2 {
  margin: 18px 0 14px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: -0.09em;
}

.utility-hero p,
.utility-list-head p,
.utility-row small,
.utility-post-row small,
.utility-inline-cta p,
.utility-pricing-grid p,
.utility-pricing-grid li {
  color: var(--utility-muted);
}

.utility-list-section {
  padding-top: 32px;
}

.utility-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.utility-list-head p {
  max-width: 360px;
}

.utility-service-list,
.utility-post-list {
  display: grid;
  gap: 12px;
}

.utility-row,
.utility-post-row,
.utility-inline-cta,
.utility-pricing-grid article {
  border: 2px solid var(--utility-line);
  border-radius: 22px;
  background: var(--utility-panel);
  box-shadow: 8px 8px 0 var(--utility-shadow);
}

.utility-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 12px 16px;
}

.utility-row span,
.utility-pricing-grid article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1.5px solid var(--utility-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #dfe6ff, #fff4c8);
  font-size: 0.82rem;
  font-weight: 950;
}

.utility-row:nth-child(2n) span {
  background: linear-gradient(135deg, #dfffea, #fff4c8);
}

.utility-row:nth-child(3n) span {
  background: linear-gradient(135deg, #ffe2de, #f1e5ff);
}

.utility-row strong,
.utility-row small {
  grid-column: 2;
}

.utility-row strong {
  align-self: end;
  font-size: 1.05rem;
}

.utility-row small {
  align-self: start;
}

.utility-row em,
.utility-post-row em {
  grid-row: 1 / span 2;
  grid-column: 3;
  justify-self: end;
  color: var(--utility-muted);
  font-style: normal;
  font-weight: 900;
}

.utility-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
}

.utility-inline-cta a,
.utility-pricing-hero a,
.utility-pricing-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--utility-line);
  border-radius: 999px;
  background: var(--utility-blue);
  box-shadow: 5px 5px 0 var(--utility-green);
  color: #fff;
  padding: 10px 18px;
  font-weight: 950;
  white-space: nowrap;
}

.utility-blog-hero {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 18px;
}

.utility-photo-slot {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 2px solid var(--utility-line);
  border-radius: 28px;
  background: var(--utility-panel);
  box-shadow: 10px 10px 0 var(--utility-shadow);
  color: var(--utility-muted);
  font-weight: 900;
}

.utility-post-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 132px;
  padding: 16px;
}

.utility-post-row span {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 2px dashed var(--utility-line);
  border-radius: 16px;
  color: var(--utility-muted);
  font-weight: 900;
}

.utility-post-row strong,
.utility-post-row small {
  grid-column: 2;
}

.utility-pricing-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
}

.utility-pricing-hero .utility-pill,
.utility-pricing-hero h1,
.utility-pricing-hero p {
  grid-column: 1;
}

.utility-pricing-hero a {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.utility-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.utility-pricing-grid article {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.utility-pricing-grid article.is-featured {
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(120, 239, 172, 0.28),
      transparent 34%
    ),
    var(--utility-panel);
}

.utility-pricing-grid h2,
.utility-pricing-grid p,
.utility-pricing-grid ul {
  margin: 0;
}

.utility-pricing-grid strong {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.utility-pricing-grid small {
  font-size: 0.9rem;
}

.utility-pricing-grid ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

@media (max-width: 780px) {
  .utility-nav {
    width: calc(100% - 24px);
    align-items: flex-start;
  }

  .utility-brand span {
    display: none;
  }

  .utility-nav nav {
    flex: 1;
    justify-content: flex-end;
    gap: 16px;
    overflow-x: auto;
  }

  .utility-shell {
    width: min(100% - 24px, 1120px);
  }

  .utility-list-head,
  .utility-inline-cta,
  .utility-pricing-hero {
    display: grid;
  }

  .utility-row,
  .utility-post-row {
    grid-template-columns: 52px 1fr;
  }

  .utility-row em,
  .utility-post-row em {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }

  .utility-blog-hero,
  .utility-pricing-grid {
    grid-template-columns: 1fr;
  }

  .utility-photo-slot {
    min-height: 220px;
  }

  .utility-pricing-hero a {
    grid-column: 1;
    grid-row: auto;
    width: max-content;
  }
}

/* Absolute final guard: keep main portfolio scrolling normally after all older duplicate blocks. */
main#home {
  isolation: auto !important;
}

main#home > .about-section,
main#home > .service-section,
main#home > .feature-section,
main#home > .carousel-section {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  min-height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

main#home > .about-section {
  padding-top: clamp(34px, 5vw, 58px) !important;
}

.name-stage {
  min-height: auto !important;
  margin: 0 auto clamp(28px, 4vw, 42px) !important;
  padding-top: 0 !important;
}

.about-layout {
  margin-top: 0 !important;
}

:root:not([data-theme="dark"]) .site-nav-brand img,
:root:not([data-theme="dark"]) .local-service-brand img,
:root:not([data-theme="dark"]) .automation-service-brand img,
:root:not([data-theme="dark"]) .web-dev-brand img,
:root:not([data-theme="dark"]) .cyber-brand img,
:root:not([data-theme="dark"]) .project-page-brand img,
:root:not([data-theme="dark"]) .contact-brand img,
:root:not([data-theme="dark"]) .service-footer-brand img,
:root:not([data-theme="dark"]) .utility-brand img {
  content: url("../assets/icon/brand-logo.webp");
  background: transparent !important;
  object-fit: contain;
}

:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img,
:root[data-theme="dark"] .project-page-brand img,
:root[data-theme="dark"] .contact-brand img,
:root[data-theme="dark"] .service-footer-brand img,
:root[data-theme="dark"] .utility-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515 !important;
  object-fit: cover;
}

:root:not([data-theme="dark"]) .service-site-footer {
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(141, 245, 181, 0.18),
      transparent 28%
    ),
    rgba(255, 250, 238, 0.72);
  color: #101010;
}

:root:not([data-theme="dark"]) .service-site-footer p,
:root:not([data-theme="dark"]) .service-site-footer nav span,
:root:not([data-theme="dark"]) .service-footer-bottom,
:root:not([data-theme="dark"]) .service-footer-qr {
  color: rgba(16, 16, 16, 0.64);
}

:root:not([data-theme="dark"]) .service-site-footer nav a,
:root:not([data-theme="dark"]) .service-footer-brand strong,
:root:not([data-theme="dark"]) .service-footer-bottom a {
  color: #101010;
}

@media (max-width: 560px) {
  .web-dev-brand,
  .cyber-brand,
  .project-page-brand,
  .contact-brand {
    display: none;
  }

  .web-dev-nav,
  .cyber-nav,
  .project-page-nav,
  .contact-nav {
    top: 8px;
    width: calc(100% - 20px);
    justify-content: center;
    padding: 8px 10px;
  }

  .web-dev-nav nav,
  .cyber-nav nav,
  .project-page-nav nav,
  .contact-nav nav {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
  }

  .web-dev-nav nav a,
  .cyber-nav nav a,
  .project-page-nav nav a,
  .contact-nav nav a {
    padding: 5px 0;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* Featured projects page */
.project-page {
  --project-bg: #100f1f;
  --project-panel: rgba(245, 243, 229, 0.08);
  --project-panel-strong: rgba(245, 243, 229, 0.14);
  --project-ink: #f8f1de;
  --project-muted: rgba(248, 241, 222, 0.68);
  --project-line: rgba(248, 241, 222, 0.28);
  --project-hard-line: rgba(248, 241, 222, 0.72);
  --project-cyan: #60d8ff;
  --project-lime: #c7ff3d;
  --project-pink: #ff74cf;
  --project-violet: #8b6cff;
  --project-orange: #ffb45c;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 14% 12%,
      rgba(139, 108, 255, 0.28),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(96, 216, 255, 0.2),
      transparent 25%
    ),
    radial-gradient(
      circle at 60% 92%,
      rgba(255, 116, 207, 0.14),
      transparent 30%
    ),
    linear-gradient(rgba(245, 243, 229, 0.035) 1px, transparent 1px) 0 0 / 44px
      44px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.035) 1px, transparent 1px) 0
      0 / 44px 44px,
    var(--project-bg);
  color: var(--project-ink);
}

:root[data-theme="light"] .project-page {
  --project-bg: #ede7d6;
  --project-panel: rgba(255, 251, 239, 0.68);
  --project-panel-strong: rgba(255, 251, 239, 0.92);
  --project-ink: #17151f;
  --project-muted: rgba(23, 21, 31, 0.68);
  --project-line: rgba(23, 21, 31, 0.22);
  --project-hard-line: rgba(23, 21, 31, 0.62);
  --project-cyan: #176dff;
  --project-lime: #68d979;
  --project-pink: #e65bb0;
  --project-violet: #644ee8;
  --project-orange: #d88a20;
  background:
    radial-gradient(
      circle at 14% 12%,
      rgba(100, 78, 232, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(23, 109, 255, 0.12),
      transparent 25%
    ),
    radial-gradient(
      circle at 60% 92%,
      rgba(104, 217, 121, 0.15),
      transparent 30%
    ),
    linear-gradient(rgba(23, 21, 31, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(23, 21, 31, 0.04) 1px, transparent 1px) 0 0 /
      44px 44px,
    var(--project-bg);
}

.project-page a {
  color: inherit;
  text-decoration: none;
}

.project-page button {
  font: inherit;
}

.project-page-nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  width: min(var(--section-width), calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px auto 0;
  border: 2px solid var(--project-hard-line);
  border-radius: 12px;
  background: rgba(16, 15, 31, 0.7);
  box-shadow: 14px 14px 34px rgba(0, 0, 0, 0.22);
  padding: 12px 18px;
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .project-page-nav {
  background: rgba(255, 251, 239, 0.72);
  box-shadow: 14px 14px 34px rgba(23, 21, 31, 0.1);
}

.project-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.project-page-brand img {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--project-line);
  border-radius: 10px;
  object-fit: cover;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

:root[data-theme="dark"] .project-page-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
}

.project-page-brand:hover img,
.project-page-brand:focus-visible img {
  box-shadow: 4px 4px 0 rgba(255, 116, 207, 0.32);
  transform: rotate(-4deg) translateY(-1px);
}

.project-page-brand span {
  display: grid;
  line-height: 1.05;
}

.project-page-brand strong {
  font-size: 0.98rem;
  font-weight: 880;
}

.project-page-brand small {
  color: var(--project-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.project-page-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 30px);
}

.project-page-nav nav a {
  position: relative;
  font-size: 0.96rem;
  font-weight: 760;
}

.project-page-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(96, 216, 255, 0.44),
    rgba(255, 116, 207, 0.34)
  );
  content: "";
  transform: scaleX(0.62);
  transform-origin: left;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.project-page-nav nav a:hover::after,
.project-page-nav nav a:focus-visible::after {
  background: linear-gradient(
    90deg,
    rgba(199, 255, 61, 0.72),
    rgba(96, 216, 255, 0.52)
  );
  transform: scaleX(1);
}

.project-page .page-theme-toggle {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-left: 2px;
  border-color: var(--project-line);
  background: var(--project-panel);
  box-shadow: none;
}

.project-page .page-theme-toggle:hover,
.project-page .page-theme-toggle:focus-visible {
  box-shadow: 4px 4px 0 rgba(96, 216, 255, 0.18);
  transform: translateY(-1px) rotate(-4deg);
}

.project-page-shell {
  width: min(var(--section-width), calc(100% - 32px));
  margin: 28px auto 88px;
}

.project-orbit-hero {
  display: grid;
  min-height: calc(100svh - 120px);
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0 74px;
}

.project-orbit-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--project-line);
  border-radius: 999px;
  background: var(--project-panel);
  color: var(--project-muted);
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.project-orbit-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--project-lime);
  box-shadow: 0 0 18px var(--project-lime);
  content: "";
}

.project-orbit-copy h1,
.project-section-head h2 {
  margin: 22px 0 18px;
  font-size: clamp(3.2rem, 7.6vw, 8.2rem);
  line-height: 0.84;
  letter-spacing: -0.09em;
}

.project-orbit-copy h1 {
  max-width: 760px;
  background: linear-gradient(
    90deg,
    var(--project-ink),
    var(--project-cyan),
    var(--project-lime)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-orbit-copy p,
.project-section-head p,
.stage-content p,
.timeline-grid p {
  color: var(--project-muted);
  line-height: 1.62;
}

.project-orbit-copy p {
  max-width: 560px;
  font-size: 1.08rem;
}

.project-orbit-actions,
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.project-orbit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--project-line);
  border-radius: 999px;
  background: var(--project-panel);
  color: var(--project-ink);
  cursor: pointer;
  padding: 9px 18px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  backdrop-filter: blur(14px);
}

.project-orbit-button.is-primary {
  border-color: rgba(199, 255, 61, 0.5);
  background: var(--project-lime);
  box-shadow: 0 0 28px rgba(199, 255, 61, 0.22);
  color: #111;
}

.project-orbit-button:hover,
.project-orbit-button:focus-visible {
  transform: translateY(-2px);
}

.project-orbit-system {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--project-line);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(245, 243, 229, 0.08),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(245, 243, 229, 0.08),
      rgba(245, 243, 229, 0.02)
    );
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .project-orbit-system {
  background: var(--project-panel);
}

.project-orbit-system::before,
.project-orbit-system::after {
  position: absolute;
  inset: 72px;
  border: 1px dashed var(--project-line);
  border-radius: 50%;
  content: "";
  animation: project-slow-spin 32s linear infinite;
}

.project-orbit-system::after {
  inset: 138px;
  border-color: rgba(96, 216, 255, 0.24);
  animation-duration: 24s;
  animation-direction: reverse;
}

.project-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 1px solid rgba(199, 255, 61, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 28%,
      rgba(199, 255, 61, 0.68),
      transparent 28%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(96, 216, 255, 0.42),
      transparent 32%
    ),
    rgba(16, 15, 31, 0.85);
  box-shadow:
    0 0 40px rgba(199, 255, 61, 0.18),
    inset 0 0 30px rgba(245, 243, 229, 0.08);
  text-align: center;
  transform: translate(-50%, -50%);
}

:root[data-theme="light"] .project-orbit-core {
  background:
    radial-gradient(
      circle at 35% 28%,
      rgba(104, 217, 121, 0.55),
      transparent 28%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(23, 109, 255, 0.22),
      transparent 32%
    ),
    rgba(255, 251, 239, 0.76);
}

.project-orbit-core strong {
  display: block;
  max-width: 10ch;
  font-size: 1.3rem;
  line-height: 1;
}

.project-orbit-core small {
  display: block;
  margin-top: 8px;
  color: var(--project-muted);
  font-weight: 800;
}

.project-orbit-node {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 118px;
  min-height: 118px;
  place-items: center;
  border: 1px solid var(--project-line);
  border-radius: 28px;
  background: var(--project-panel);
  color: var(--project-ink);
  cursor: pointer;
  padding: 14px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border 180ms ease;
}

.project-orbit-node span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--project-panel-strong);
  color: var(--project-lime);
  font-weight: 950;
}

.project-orbit-node strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.project-orbit-node:hover,
.project-orbit-node.is-active {
  border-color: rgba(199, 255, 61, 0.75);
  background: rgba(199, 255, 61, 0.14);
  transform: translateY(-6px) scale(1.03);
}

.project-orbit-node.one {
  top: 10%;
  left: 42%;
}

.project-orbit-node.two {
  top: 28%;
  right: 8%;
}

.project-orbit-node.three {
  right: 18%;
  bottom: 10%;
}

.project-orbit-node.four {
  left: 14%;
  bottom: 14%;
}

.project-orbit-node.five {
  top: 25%;
  left: 7%;
}

.project-orbit-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 216, 255, 0.12),
    transparent
  );
  pointer-events: none;
  transform: translateX(-100%);
  animation: project-scan 5s ease-in-out infinite;
}

.project-control-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 64px;
  border: 1px solid var(--project-line);
  border-radius: 999px;
  background: var(--project-panel);
  padding: 10px;
  overflow-x: auto;
  backdrop-filter: blur(14px);
}

.project-filter {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--project-muted);
  cursor: pointer;
  padding: 10px 18px;
  font-weight: 900;
  transition:
    background 160ms ease,
    color 160ms ease,
    border 160ms ease;
}

.project-filter:hover,
.project-filter.is-active {
  border-color: rgba(96, 216, 255, 0.44);
  background: rgba(96, 216, 255, 0.12);
  color: var(--project-ink);
}

.project-lab {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 96px;
}

.project-list {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
}

.project-chip {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--project-line);
  border-radius: 22px;
  background: var(--project-panel);
  color: var(--project-ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border 160ms ease;
  backdrop-filter: blur(14px);
}

.project-chip:hover,
.project-chip.is-active {
  border-color: rgba(199, 255, 61, 0.58);
  background: rgba(199, 255, 61, 0.1);
  transform: translateX(4px);
}

.project-chip.is-hidden {
  display: none;
}

.chip-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--project-panel-strong);
  color: var(--project-cyan);
  font-weight: 950;
}

.project-chip strong,
.project-chip small {
  display: block;
}

.project-chip small {
  margin-top: 2px;
  color: var(--project-muted);
  font-weight: 760;
}

.chip-arrow {
  color: var(--project-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-stage {
  min-height: 650px;
  border: 1px solid var(--project-line);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 116, 207, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 16%,
      rgba(96, 216, 255, 0.12),
      transparent 28%
    ),
    var(--project-panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--project-line);
  padding: 16px 18px;
}

.stage-top i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.stage-top i:nth-child(1) {
  background: #ff5e6c;
}

.stage-top i:nth-child(2) {
  background: var(--project-orange);
}

.stage-top i:nth-child(3) {
  background: var(--project-lime);
}

.stage-top strong {
  margin-left: auto;
  color: var(--project-muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-screen {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  border-bottom: 1px solid var(--project-line);
  background:
    linear-gradient(rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 / 32px
      32px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 /
      32px 32px,
    rgba(245, 243, 229, 0.03);
  overflow: hidden;
}

:root[data-theme="light"] .stage-screen {
  background:
    linear-gradient(rgba(23, 21, 31, 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(23, 21, 31, 0.04) 1px, transparent 1px) 0 0 /
      32px 32px,
    rgba(255, 251, 239, 0.34);
}

.stage-screen::before,
.stage-screen::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  animation: project-slow-spin 18s linear infinite;
}

.stage-screen::before {
  width: 310px;
  height: 310px;
  border: 1px solid rgba(96, 216, 255, 0.22);
}

.stage-screen::after {
  width: 210px;
  height: 210px;
  border: 1px dashed rgba(199, 255, 61, 0.3);
  animation-duration: 13s;
  animation-direction: reverse;
}

.preview-placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(78%, 520px);
  min-height: 190px;
  place-items: center;
  border: 1px solid var(--project-line);
  border-radius: 26px;
  background: rgba(16, 15, 31, 0.72);
  color: var(--project-muted);
  padding: 24px;
  text-align: center;
  font-weight: 900;
  box-shadow: inset 0 0 40px rgba(245, 243, 229, 0.05);
}

:root[data-theme="light"] .preview-placeholder {
  background: rgba(255, 251, 239, 0.72);
}

.stage-content {
  padding: clamp(22px, 4vw, 36px);
}

.status-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-line {
  margin-bottom: 18px;
}

.status-line span,
.tag-row span {
  border: 1px solid var(--project-line);
  border-radius: 999px;
  background: var(--project-panel);
  color: var(--project-muted);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 850;
}

.status-line span:first-child {
  border-color: rgba(199, 255, 61, 0.44);
  color: var(--project-lime);
}

:root[data-theme="light"] .status-line span:first-child {
  color: var(--project-ink);
  background: rgba(104, 217, 121, 0.28);
}

.stage-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 6.2rem);
  line-height: 0.85;
  letter-spacing: -0.085em;
}

.stage-content p {
  max-width: 720px;
  font-size: 1.02rem;
}

.tag-row {
  margin-top: 20px;
}

.tag-row span {
  color: var(--project-ink);
}

.project-notes {
  padding: 0 0 84px;
}

.project-section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline-grid article {
  min-height: 220px;
  border: 1px solid var(--project-line);
  border-radius: 30px;
  background: var(--project-panel);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.timeline-grid strong {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--project-panel-strong);
  color: var(--project-lime);
}

.timeline-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.3rem;
}

@keyframes project-slow-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes project-scan {
  0%,
  45% {
    transform: translateX(-100%);
  }

  75%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  .project-orbit-hero,
  .project-lab {
    grid-template-columns: 1fr;
  }

  .project-list {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .project-orbit-system {
    min-height: 560px;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .project-page-nav {
    top: 8px;
    width: calc(100% - 20px);
    justify-content: center;
    padding: 8px 10px;
  }

  .project-page-brand {
    display: none;
  }

  .project-page-nav nav {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-page-nav nav::-webkit-scrollbar {
    display: none;
  }

  .project-page-nav nav a {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .project-page .page-theme-toggle {
    width: 30px;
    min-width: 30px;
    min-height: 28px;
    margin-left: 4px;
    padding: 0;
  }

  .project-page-shell {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .project-orbit-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .project-orbit-copy h1,
  .project-section-head h2 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .project-orbit-system {
    min-height: 620px;
  }

  .project-orbit-core {
    width: 150px;
    height: 150px;
  }

  .project-orbit-node {
    width: 96px;
    min-height: 96px;
    border-radius: 22px;
  }

  .project-orbit-node.one {
    top: 8%;
    left: 34%;
  }

  .project-orbit-node.two {
    top: 27%;
    right: 3%;
  }

  .project-orbit-node.three {
    right: 8%;
    bottom: 9%;
  }

  .project-orbit-node.four {
    left: 7%;
    bottom: 10%;
  }

  .project-orbit-node.five {
    top: 28%;
    left: 3%;
  }

  .project-control-strip {
    border-radius: 18px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-chip {
    grid-template-columns: 44px 1fr;
  }

  .chip-arrow {
    display: none;
  }

  .project-stage {
    min-height: auto;
  }

  .stage-screen {
    min-height: 260px;
  }

  .preview-placeholder {
    width: 88%;
  }
}

/* Contact page */
.contact-page {
  --contact-bg: #0d1014;
  --contact-card: rgba(255, 255, 255, 0.055);
  --contact-card-strong: rgba(255, 255, 255, 0.085);
  --contact-ink: #f4eddc;
  --contact-muted: #b9b0a1;
  --contact-line: rgba(244, 237, 220, 0.14);
  --contact-hard-line: rgba(244, 237, 220, 0.34);
  --contact-accent: #8df5b5;
  --contact-blue: #7da2ff;
  --contact-orange: #ffb35c;
  --contact-shadow: rgba(0, 0, 0, 0.36);
  --contact-width: 1120px;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(125, 162, 255, 0.18),
      transparent 26%
    ),
    radial-gradient(
      circle at 84% 15%,
      rgba(141, 245, 181, 0.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 96%,
      rgba(255, 179, 92, 0.1),
      transparent 28%
    ),
    linear-gradient(rgba(244, 237, 220, 0.032) 1px, transparent 1px) 0 0 / 54px
      54px,
    linear-gradient(90deg, rgba(244, 237, 220, 0.032) 1px, transparent 1px) 0
      0 / 54px 54px,
    var(--contact-bg);
  color: var(--contact-ink);
}

:root[data-theme="light"] .contact-page {
  --contact-bg: #e9e1cf;
  --contact-card: rgba(255, 250, 238, 0.62);
  --contact-card-strong: rgba(255, 250, 238, 0.82);
  --contact-ink: #17151f;
  --contact-muted: #5f5a6a;
  --contact-line: rgba(23, 21, 31, 0.16);
  --contact-hard-line: rgba(23, 21, 31, 0.34);
  --contact-accent: #52ce78;
  --contact-blue: #285fff;
  --contact-orange: #dd7900;
  --contact-shadow: rgba(23, 21, 31, 0.14);
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(40, 95, 255, 0.14),
      transparent 26%
    ),
    radial-gradient(
      circle at 84% 15%,
      rgba(82, 206, 120, 0.14),
      transparent 24%
    ),
    radial-gradient(circle at 50% 96%, rgba(221, 121, 0, 0.1), transparent 28%),
    linear-gradient(rgba(23, 21, 31, 0.034) 1px, transparent 1px) 0 0 / 54px
      54px,
    linear-gradient(90deg, rgba(23, 21, 31, 0.034) 1px, transparent 1px) 0 0 /
      54px 54px,
    var(--contact-bg);
}

.contact-nav {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  width: min(var(--contact-width), calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px auto 0;
  border: 1.5px solid var(--contact-hard-line);
  border-radius: 18px;
  background: rgba(13, 16, 20, 0.72);
  box-shadow: 0 18px 44px var(--contact-shadow);
  padding: 12px 16px;
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .contact-nav {
  background: rgba(255, 250, 238, 0.72);
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.contact-brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--contact-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 5px 5px 0 var(--contact-shadow);
  object-fit: cover;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

:root[data-theme="dark"] .contact-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
}

.contact-brand:hover img,
.contact-brand:focus-visible img {
  box-shadow: 5px 5px 0 rgba(141, 245, 181, 0.24);
  transform: rotate(-4deg) translateY(-1px);
}

.contact-brand span {
  display: grid;
  line-height: 1.05;
}

.contact-brand strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.contact-brand small {
  color: var(--contact-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.contact-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.6vw, 34px);
}

.contact-nav nav a {
  position: relative;
  color: var(--contact-ink);
  font-size: 0.96rem;
  font-weight: 820;
}

.contact-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(141, 245, 181, 0.58),
    rgba(125, 162, 255, 0.48)
  );
  content: "";
  transform: scaleX(0.58);
  transform-origin: left;
  transition: transform 160ms ease;
}

.contact-nav nav a:hover::after,
.contact-nav nav a:focus-visible::after {
  transform: scaleX(1);
}

.contact-page .contact-theme-toggle {
  position: static;
  flex: 0 0 auto;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-color: var(--contact-hard-line);
  background: var(--contact-card);
  color: var(--contact-ink);
  box-shadow: 5px 5px 0 rgba(125, 162, 255, 0.16);
}

.contact-page .contact-theme-toggle .theme-toggle-text {
  display: none;
}

.contact-shell {
  display: grid;
  width: min(var(--contact-width), calc(100% - 32px));
  min-height: calc(100svh - 88px);
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: stretch;
  margin: 0 auto;
  padding: 28px 0 56px;
}

.contact-left-card,
.contact-right-card {
  border: 1px solid var(--contact-line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(244, 237, 220, 0.055), transparent 48%),
    var(--contact-card);
  box-shadow: 0 26px 70px var(--contact-shadow);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .contact-left-card,
:root[data-theme="light"] .contact-right-card {
  background:
    linear-gradient(145deg, rgba(23, 21, 31, 0.035), transparent 48%),
    var(--contact-card);
}

.contact-left-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
}

.contact-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--contact-line);
  border-radius: 999px;
  background: var(--contact-card);
  color: var(--contact-muted);
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.contact-kicker::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--contact-accent);
  box-shadow: 0 0 16px var(--contact-accent);
  content: "";
}

.contact-page h1 {
  max-width: 560px;
  margin: 0;
  color: var(--contact-ink);
  font-size: clamp(3.4rem, 7.6vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.contact-lead {
  max-width: 490px;
  margin: 22px 0 0;
  color: var(--contact-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 620px;
}

.contact-quick-card {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 150px;
  border: 1px solid var(--contact-line);
  border-radius: 22px;
  background: var(--contact-card-strong);
  color: var(--contact-ink);
  padding: 16px;
  text-align: left;
  transition:
    transform 160ms ease,
    border 160ms ease,
    background 160ms ease;
}

.contact-quick-card:hover {
  border-color: var(--contact-hard-line);
  background: rgba(125, 162, 255, 0.12);
  transform: translateY(-3px);
}

.contact-quick-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--contact-line);
  border-radius: 12px;
  margin-bottom: 14px;
  background: rgba(244, 237, 220, 0.06);
  color: var(--contact-accent);
  font-size: 0.75rem;
  font-weight: 950;
}

:root[data-theme="light"] .contact-quick-icon {
  background: rgba(23, 21, 31, 0.05);
}

.contact-quick-card strong,
.contact-app-link strong {
  display: block;
}

.contact-quick-card small,
.contact-app-link small {
  display: block;
  margin-top: 5px;
  color: var(--contact-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.contact-quick-card[href^="mailto"] small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-call-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(141, 245, 181, 0.45);
  border-radius: 999px;
  background: var(--contact-accent);
  color: #101315;
  padding: 10px 18px;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(141, 245, 181, 0.12);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-call-button:hover {
  box-shadow: 0 0 34px rgba(141, 245, 181, 0.18);
  transform: translateY(-2px);
}

.contact-call-button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(16, 19, 21, 0.24);
  border-radius: 10px;
  background: rgba(16, 19, 21, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
}

.contact-time-card {
  cursor: pointer;
  user-select: none;
}

.contact-time-view {
  display: none;
  min-height: 48px;
  align-items: center;
  margin-top: 8px;
}

.contact-time-card[data-contact-clock-mode="ampm"] .contact-time-view.ampm,
.contact-time-card[data-contact-clock-mode="24"] .contact-time-view.twentyfour {
  display: flex;
}

.contact-time-value {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.18rem, 2.2vw, 1.46rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact-message-box {
  margin-top: auto;
  border: 1px solid var(--contact-line);
  border-radius: 26px;
  background: rgba(244, 237, 220, 0.045);
  padding: 18px;
}

:root[data-theme="light"] .contact-message-box {
  background: rgba(23, 21, 31, 0.035);
}

.contact-message-box h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.contact-message-box p {
  margin: 0 0 16px;
  color: var(--contact-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: rgba(244, 237, 220, 0.06);
  color: var(--contact-ink);
  outline: none;
  padding: 12px 13px;
}

:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form textarea {
  background: rgba(255, 250, 238, 0.78);
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(185, 176, 161, 0.78);
}

.contact-form button {
  min-height: 44px;
  border: 1px solid rgba(141, 245, 181, 0.45);
  border-radius: 999px;
  background: var(--contact-accent);
  color: #101315;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-form button:hover {
  box-shadow: 0 0 28px rgba(141, 245, 181, 0.18);
  transform: translateY(-2px);
}

.contact-right-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.contact-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.contact-section-head p {
  max-width: 330px;
  margin: 0;
  color: var(--contact-muted);
  line-height: 1.45;
  font-size: 0.92rem;
  text-align: right;
}

.contact-category {
  display: grid;
  gap: 10px;
}

.contact-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--contact-muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-category-title::after {
  flex: 1;
  height: 1px;
  background: var(--contact-line);
  content: "";
}

.contact-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.contact-app-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--contact-line);
  border-radius: 18px;
  background: rgba(244, 237, 220, 0.045);
  color: var(--contact-ink);
  padding: 12px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border 160ms ease;
}

:root[data-theme="light"] .contact-app-link {
  background: rgba(255, 250, 238, 0.58);
}

.contact-app-link:hover {
  border-color: var(--contact-hard-line);
  background: rgba(244, 237, 220, 0.085);
  transform: translateX(4px);
}

:root[data-theme="light"] .contact-app-link:hover {
  background: rgba(255, 250, 238, 0.92);
}

.contact-app-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--contact-line);
  border-radius: 14px;
  background: rgba(244, 237, 220, 0.05);
  color: var(--contact-accent);
  font-size: 0.75rem;
  font-weight: 950;
}

:root[data-theme="light"] .contact-app-icon {
  background: rgba(23, 21, 31, 0.05);
}

.contact-arrow {
  color: var(--contact-muted);
}

.contact-bottom-note {
  border: 1px solid var(--contact-line);
  border-radius: 22px;
  background: rgba(244, 237, 220, 0.045);
  color: var(--contact-muted);
  padding: 16px;
  line-height: 1.55;
}

:root[data-theme="light"] .contact-bottom-note {
  background: rgba(255, 250, 238, 0.58);
}

.contact-bottom-note strong {
  color: var(--contact-ink);
}

@media (max-width: 980px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-left-card,
  .contact-right-card {
    border-radius: 28px;
  }
}

@media (max-width: 680px) {
  .contact-nav {
    top: 10px;
    width: calc(100% - 20px);
    gap: 12px;
    border-radius: 22px;
    padding: 10px 12px;
  }

  .contact-brand span {
    display: none;
  }

  .contact-nav nav {
    flex: 1;
    justify-content: center;
    gap: 18px;
  }

  .contact-shell {
    width: min(var(--contact-width), calc(100% - 24px));
    padding-top: 18px;
  }

  .contact-page h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
    line-height: 0.95;
    letter-spacing: -0.075em;
  }

  .contact-quick-grid,
  .contact-link-grid {
    grid-template-columns: 1fr;
  }

  .contact-quick-card {
    min-height: auto;
  }

  .contact-call-button {
    width: 100%;
  }

  .contact-section-head {
    display: grid;
  }

  .contact-section-head p {
    max-width: 100%;
    text-align: left;
  }

  .contact-app-link {
    grid-template-columns: 42px 1fr;
  }

  .contact-arrow {
    display: none;
  }
}

/* End-of-file overrides so the shared polish wins over page-specific blocks. */
::selection {
  background: #96f0ff;
  color: #101010;
}

:root[data-theme="dark"] ::selection {
  background: #c7ff3d;
  color: #101010;
}

.site-nav,
.project-page-nav,
.contact-nav,
.local-seo-nav,
.automation-service-nav,
.web-dev-nav,
.cyber-nav {
  width: min(var(--section-width), calc(100% - 48px));
  border-radius: 12px;
}

.project-page .page-theme-toggle {
  top: 92px;
  right: clamp(14px, 3vw, 34px);
}

.project-page-nav nav {
  padding-right: 58px;
}

.site-nav-brand img,
.local-service-brand img,
.automation-service-brand img,
.web-dev-brand img,
.cyber-brand img,
.project-page-brand img,
.contact-brand img,
.service-footer-brand img,
.utility-brand img {
  background: transparent;
  object-fit: contain;
}

:root:not([data-theme="dark"]) .site-nav-brand img,
:root:not([data-theme="dark"]) .local-service-brand img,
:root:not([data-theme="dark"]) .automation-service-brand img,
:root:not([data-theme="dark"]) .web-dev-brand img,
:root:not([data-theme="dark"]) .cyber-brand img,
:root:not([data-theme="dark"]) .project-page-brand img,
:root:not([data-theme="dark"]) .contact-brand img,
:root:not([data-theme="dark"]) .service-footer-brand img,
:root:not([data-theme="dark"]) .utility-brand img {
  content: url("../assets/icon/brand-logo.webp");
  background: transparent;
  object-fit: contain;
}

:root[data-theme="dark"] .site-nav-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img,
:root[data-theme="dark"] .project-page-brand img,
:root[data-theme="dark"] .contact-brand img,
:root[data-theme="dark"] .service-footer-brand img,
:root[data-theme="dark"] .utility-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515;
  object-fit: cover;
}

main#home {
  isolation: auto;
}

main#home > .about-section,
main#home > .service-section,
main#home > .feature-section,
main#home > .carousel-section {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  min-height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

main#home > .about-section {
  padding-top: clamp(34px, 5vw, 58px) !important;
}

main#home > .service-section {
  padding-top: clamp(30px, 5vw, 58px) !important;
}

main#home > .feature-section,
main#home > .carousel-section {
  padding-top: clamp(24px, 4vw, 44px) !important;
}

.section-divider {
  position: relative;
  z-index: 6;
}

.name-stage {
  min-height: auto !important;
  margin: 0 auto clamp(28px, 4vw, 42px) !important;
  padding-top: 0 !important;
}

.about-layout {
  margin-top: 0 !important;
}

.language-name {
  font-size: clamp(3.1rem, 7vw, 5.25rem);
  font-weight: 840;
}

.portrait-frame:hover,
.portrait-frame:focus-within {
  --play-photo-y: -8px;
  --photo-tilt-x: 4deg;
  --photo-tilt-y: -5deg;
}

.portrait-frame:hover::before,
.portrait-frame:focus-within::before {
  opacity: 1;
  transform: translateY(10px) scale(1);
}

.service-card .service-demo i,
.service-demo-web i,
.service-demo-seo i,
.service-demo-automation i {
  animation-play-state: running !important;
}

.service-demo-network i {
  animation: packet-pulse 1.4s ease-in-out infinite;
}

.service-demo-network i:nth-child(1) {
  animation-delay: 0ms;
}

.service-demo-network i:nth-child(2) {
  animation-delay: 180ms;
}

.service-demo-network i:nth-child(3) {
  animation-delay: 360ms;
}

.service-demo-network i:nth-child(4) {
  animation-delay: 540ms;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  min-width: 46px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.14);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
  backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

:root[data-theme="dark"] .back-to-top {
  background: rgba(18, 18, 22, 0.78);
  box-shadow: 5px 5px 0 rgba(141, 245, 181, 0.18);
}

.automation-service-footer,
.local-seo-footer,
.web-dev-footer,
.cyber-footer {
  display: none;
}

.service-site-footer {
  width: min(var(--section-width), calc(100% - 32px));
  margin: 72px auto 22px;
  border: 2px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 82% 80%,
      rgba(141, 245, 181, 0.12),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(23, 23, 25, 0.96));
  color: #f5f3e5;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 14px 14px 0 rgba(17, 17, 17, 0.12);
}

.service-footer-main {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.1fr) minmax(160px, 0.55fr) minmax(160px, 0.55fr)
    136px;
  gap: 34px;
  align-items: start;
}

.service-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-footer-brand img {
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(245, 243, 229, 0.32);
  border-radius: 12px;
}

.service-footer-brand strong {
  font-size: 1.1rem;
  font-weight: 900;
}

.service-site-footer p {
  max-width: 430px;
  margin: 0 0 18px;
  color: rgba(245, 243, 229, 0.74);
}

.service-footer-cta {
  display: inline-flex;
  border: 2px solid #101010;
  border-radius: 999px;
  background: #335cff;
  box-shadow: 5px 5px 0 #8df5b5;
  color: #fff;
  padding: 10px 18px;
  font-weight: 900;
}

.service-site-footer nav {
  display: grid;
  gap: 9px;
}

.service-site-footer nav span {
  color: rgba(245, 243, 229, 0.62);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-site-footer nav a {
  color: #f5f3e5;
  font-weight: 850;
}

.service-footer-qr {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  justify-self: end;
  border: 2px dashed rgba(245, 243, 229, 0.42);
  border-radius: 18px;
  color: rgba(245, 243, 229, 0.72);
  font-weight: 900;
}

.service-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  border-top: 1.5px solid rgba(245, 243, 229, 0.3);
  padding-top: 16px;
  color: rgba(245, 243, 229, 0.72);
}

.service-footer-bottom a {
  font-weight: 900;
}

:root:not([data-theme="dark"]) .service-site-footer {
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(141, 245, 181, 0.18),
      transparent 28%
    ),
    rgba(255, 250, 238, 0.72);
  color: #101010;
}

:root:not([data-theme="dark"]) .service-site-footer p,
:root:not([data-theme="dark"]) .service-site-footer nav span,
:root:not([data-theme="dark"]) .service-footer-bottom,
:root:not([data-theme="dark"]) .service-footer-qr {
  color: rgba(16, 16, 16, 0.64);
}

:root:not([data-theme="dark"]) .service-site-footer nav a,
:root:not([data-theme="dark"]) .service-footer-brand strong,
:root:not([data-theme="dark"]) .service-footer-bottom a {
  color: #101010;
}

:root:not([data-theme="dark"]) .service-footer-brand img {
  border-color: rgba(16, 16, 16, 0.42);
}

:root:not([data-theme="dark"]) .service-footer-bottom {
  border-top-color: rgba(16, 16, 16, 0.3);
}

:root:not([data-theme="dark"]) .service-footer-qr {
  border-color: rgba(16, 16, 16, 0.48);
}

:root:not([data-theme="dark"]) .contact-page,
:root:not([data-theme="dark"]) .automation-service-body,
:root:not([data-theme="dark"]) .local-seo-body,
:root:not([data-theme="dark"]) .web-dev-service-body,
:root:not([data-theme="dark"]) .cyber-page-body,
:root:not([data-theme="dark"]) .project-page {
  background-color: #e9e1cf;
}

.gallery-page {
  --gallery-bg: #e7dcc2;
  --gallery-paper: #fff4d7;
  --gallery-paper-2: #dccba8;
  --gallery-muted: #6a5f50;
}

.topic-faq-hero {
  min-height: auto;
  padding: clamp(22px, 3vw, 34px);
}

.topic-faq-hero h1 {
  max-width: 860px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.96;
}

:root[data-theme="dark"] {
  --page-bg: #101014;
  --ink: #f4eddc;
  --muted: #c8bda8;
  --line: #f4eddc;
  --card-bg: #26262d;
  --footer-bg: #0d1014;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(125, 162, 255, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 16%,
      rgba(141, 245, 181, 0.1),
      transparent 26%
    ),
    linear-gradient(rgba(244, 237, 220, 0.035) 1px, transparent 1px) 0 0 / 54px
      54px,
    linear-gradient(90deg, rgba(244, 237, 220, 0.035) 1px, transparent 1px) 0
      0 / 54px 54px,
    var(--page-bg);
}

:root[data-theme="dark"] .service-demo,
:root[data-theme="dark"] .tab-panel,
:root[data-theme="dark"] .intro-card-inner,
:root[data-theme="dark"] .language-empty {
  background: rgba(244, 237, 220, 0.08);
  border-color: rgba(244, 237, 220, 0.2);
}

:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .portfolio-card,
:root[data-theme="dark"] .about-copy,
:root[data-theme="dark"] .software-block,
:root[data-theme="dark"] .feature-links a {
  background: #26262d;
  color: var(--ink);
}

:root[data-theme="dark"] .service-card:hover,
:root[data-theme="dark"] .service-card.is-active {
  background: #30303a;
}

:root[data-theme="dark"] .service-demo-automation i,
:root[data-theme="dark"] .service-demo-web i,
:root[data-theme="dark"] .service-demo-seo i {
  background: #f4eddc;
}

:root[data-theme="dark"] .service-demo-network::before,
:root[data-theme="dark"] .service-demo-network::after {
  background: rgba(244, 237, 220, 0.38);
}

:root[data-theme="dark"] .service-demo-network i {
  border-color: #f4eddc;
  background: #101014;
}

:root[data-theme="dark"] .web-dev-service-body {
  --web-ink: #f4eddc;
  --web-dark: #f4eddc;
  --web-primary: #8df5b5;
  --web-secondary: #7da2ff;
  --web-accent: #ffb35c;
  --web-paper: #10141c;
  --web-panel: rgba(244, 237, 220, 0.08);
  --web-muted: rgba(244, 237, 220, 0.72);
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(125, 162, 255, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(141, 245, 181, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #10141c, #121820 64%, #0d1014);
}

:root[data-theme="dark"] .web-dev-hero,
:root[data-theme="dark"] .web-dev-proof-card {
  background:
    radial-gradient(
      circle at 86% 14%,
      rgba(141, 245, 181, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(125, 162, 255, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(18, 24, 32, 0.98), rgba(13, 16, 20, 0.94));
}

@media (max-width: 760px) {
  main#home > .about-section,
  main#home > .service-section,
  main#home > .feature-section,
  main#home > .carousel-section {
    position: static;
    min-height: auto;
    padding-top: 34px;
    box-shadow: none;
    clip-path: none;
  }

  .service-footer-main {
    grid-template-columns: 1fr;
  }

  .service-footer-qr {
    justify-self: start;
  }

  .service-footer-bottom {
    display: grid;
  }

  .project-page-nav nav {
    padding-right: 0;
  }
}

/* SERVICES PAGE - alive polish */
.page-services {
  position: relative;
  overflow-x: hidden;
}

.page-services::before {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  right: -120px;
  top: 120px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(225, 160, 224, 0.32),
    transparent 65%
  );
  animation: services-glow-float 7s ease-in-out infinite;
  pointer-events: none;
}

.page-services .utility-hero {
  position: relative;
  overflow: hidden;
}

.page-services .utility-hero::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 90px;
  height: 90px;
  border: 1.5px solid rgba(17, 17, 17, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(
      90deg,
      transparent 49%,
      rgba(17, 17, 17, 0.18) 50%,
      transparent 51%
    ),
    linear-gradient(
      0deg,
      transparent 49%,
      rgba(17, 17, 17, 0.18) 50%,
      transparent 51%
    );
  opacity: 0.7;
  animation: services-radar-spin 9s linear infinite;
  pointer-events: none;
}

.page-services .utility-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.page-services .utility-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(225, 160, 224, 0.22),
    rgba(141, 245, 181, 0.16)
  );
  opacity: 0;
  transform: translateX(-35%);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.page-services .utility-row:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.12);
}

.page-services .utility-row:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.page-services .utility-row span {
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.page-services .utility-row:hover span {
  transform: rotate(-4deg) scale(1.04);
  background: rgba(225, 160, 224, 0.42);
}

.page-services .utility-row em {
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.page-services .utility-row:hover em {
  transform: translateX(6px);
  color: #101010;
}

.page-services .utility-inline-cta {
  position: relative;
  overflow: hidden;
}

.page-services .utility-inline-cta::after {
  content: "coldboot";
  position: absolute;
  right: 18px;
  bottom: -18px;
  color: rgba(16, 16, 16, 0.055);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  text-transform: lowercase;
  user-select: none;
}

@keyframes services-glow-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-28px, 34px) scale(1.08);
  }
}

@keyframes services-radar-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .page-services::before {
    width: 240px;
    height: 240px;
    right: -100px;
    top: 90px;
  }

  .page-services .utility-hero::after {
    width: 62px;
    height: 62px;
    right: 14px;
    bottom: 14px;
    opacity: 0.45;
  }

  .page-services .utility-row:hover {
    transform: translateY(-2px);
  }
}

/* Services + Pricing navbar logo hover animation */
.page-services .utility-brand img,
.page-pricing .utility-brand img,
.page-blog .utility-brand img {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.page-services .utility-brand:hover img,
.page-services .utility-brand:focus-visible img,
.page-pricing .utility-brand:hover img,
.page-pricing .utility-brand:focus-visible img,
.page-blog .utility-brand:hover img,
.page-blog .utility-brand:focus-visible img {
  box-shadow: 4px 4px 0 #b8f5b0;
  transform: rotate(-4deg) translateY(-1px);
}

/* Mobile fix: about name + floating buttons */
@media (max-width: 720px) {
  .page-home .name-stage {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-bottom: 24px !important;
    padding-inline: 0;
  }

  .page-home .language-name {
    font-size: clamp(3.6rem, 17vw, 5.2rem);
    line-height: 0.92;
    max-width: 100%;
  }

  .page-home .status-strip {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    transform: none;
  }

  .page-home .status-strip span {
    min-width: auto;
    padding: 5px 10px 5px 24px;
    font-size: 0.74rem;
  }

  .page-home .about-layout {
    gap: 34px;
  }

  .page-home .portrait-frame {
    margin-top: 0;
  }

  .page-home .guide-chat {
    left: 14px;
    right: auto;
    bottom: 14px;
  }

  .page-home .guide-chat-toggle,
  .page-home .back-to-top {
    width: auto;
    height: 42px;
    min-width: 58px;
    min-height: 42px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.14);
  }

  .page-home .guide-chat-toggle {
    padding: 0 14px;
  }

  .page-home .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 0 14px;
  }

  .page-home .guide-chat-panel {
    left: 0;
    right: auto;
  }
}

/* Mobile navbar: hide logo/brand on utility + contact pages */
@media (max-width: 780px) {
  .page-services .utility-brand,
  .page-pricing .utility-brand,
  .page-blog .utility-brand,
  .page-contact .contact-brand {
    display: none;
  }

  .page-services .utility-nav,
  .page-pricing .utility-nav,
  .page-blog .utility-nav,
  .page-contact .contact-nav {
    align-items: center;
    justify-content: center;
    padding-inline: 18px;
  }

  .page-services .utility-nav nav,
  .page-pricing .utility-nav nav,
  .page-blog .utility-nav nav {
    flex: 1;
    justify-content: center;
  }

  .page-contact .contact-nav nav {
    flex: 1;
    justify-content: center;
  }

  .page-contact .contact-theme-toggle {
    flex: 0 0 auto;
  }
}

/* Mobile compact fix for Web Dev + Automation hero previews */
@media (max-width: 560px) {
  /* WEB DEV PAGE */
  .page-web .web-dev-hero {
    padding: 22px 18px 24px;
    gap: 22px;
  }

  .page-web .web-dev-hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
    line-height: 0.92;
  }

  .page-web .web-dev-hero-copy > p:not(.web-dev-kicker) {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .page-web .web-dev-window {
    height: 280px;
    min-height: 0 !important;
    margin-top: 20px;
    border-radius: 14px;
    box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.12);
  }

  .page-web .web-window-bar {
    height: 30px;
    padding: 0 14px;
  }

  .page-web .web-window-bar i {
    width: 9px;
    height: 9px;
  }

  .page-web .web-window-canvas {
    height: calc(100% - 30px);
    min-height: 0;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
  }

  .page-web .web-mock-card,
  .page-web .web-mock-tile,
  .page-web .web-window-note {
    min-height: 52px;
    border-radius: 10px;
  }

  .page-web .web-mock-card.is-wide {
    grid-column: 1 / -1;
    min-height: 68px;
  }

  .page-web .web-mock-card.is-side {
    grid-column: auto;
    min-height: 58px;
  }

  .page-web .web-window-note {
    grid-column: 1 / -1 !important;
    min-height: 42px;
    padding: 8px;
    font-size: 0.72rem;
  }

  /* AUTOMATION PAGE HERO */
  .page-automation .automation-hero {
    padding: 24px 18px;
    gap: 24px;
  }

  .page-automation .automation-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
    line-height: 0.94;
  }

  .page-automation .automation-hero-copy > p:not(.automation-kicker) {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .page-automation .automation-note {
    display: none;
  }

  .page-automation .automation-flow-canvas {
    height: 300px;
    min-height: 0 !important;
    border-radius: 22px;
  }

  .page-automation .automation-flow-canvas::before {
    inset: 14px;
    border-radius: 18px;
  }

  .page-automation .automation-node {
    min-width: 82px;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .page-automation .automation-node.is-request {
    top: 14%;
    left: 6%;
  }

  .page-automation .automation-node.is-check {
    top: 20%;
    right: 6%;
  }

  .page-automation .automation-node.is-sort {
    top: 48%;
    left: 9%;
  }

  .page-automation .automation-node.is-send {
    right: 8%;
    bottom: 23%;
  }

  .page-automation .automation-node.is-done {
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
  }

  .page-automation .automation-line {
    height: 4px;
  }

  /* AUTOMATION SECOND SECTION - same idea as desktop, just smaller */
  .page-automation .automation-section#services {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .page-automation .automation-section#services .automation-section-head {
    margin-bottom: 18px;
  }

  .page-automation .automation-section#services .automation-section-head h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 0.96;
  }

  .page-automation .automation-section#services .automation-section-head p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .page-automation .automation-flow-row {
    grid-template-columns: 34px minmax(0, 1fr) minmax(92px, 0.85fr);
    gap: 10px;
    padding: 18px 0;
    align-items: center;
  }

  .page-automation .automation-flow-row > div {
    min-width: 0;
  }

  .page-automation .automation-flow-row strong {
    font-size: 1rem;
  }

  .page-automation .automation-flow-row h3 {
    margin-bottom: 5px;
    font-size: 0.98rem;
  }

  .page-automation .automation-flow-row p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .page-automation .automation-mini-flow {
    gap: 5px;
    min-width: 0;
  }

  .page-automation .automation-mini-flow span {
    min-width: 0;
    padding: 7px 3px;
    font-size: 0.62rem;
  }
}

/* Automation proof image: border hugs the real image */
.automation-proof-image {
  min-height: 0 !important;
  height: auto;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  line-height: 0;
  place-items: initial;
}

.automation-proof-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.automation-proof-card.is-main .automation-proof-image {
  min-height: 0 !important;
}

/* Final fix: proof image border hugs the actual screenshot */
.page-automation .automation-proof-image {
  min-height: unset !important;
  height: fit-content !important;
  width: fit-content;
  max-width: 100%;
  display: block;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.page-automation .automation-proof-card.is-main .automation-proof-image {
  min-height: unset !important;
  height: fit-content !important;
}

.page-automation .automation-proof-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
}

/* Automation proof card: keep image and text visually connected */
.page-automation .automation-proof-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.page-automation .automation-proof-image {
  min-height: 0 !important;
  height: auto !important;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  line-height: 0;
}

.page-automation .automation-proof-card.is-main .automation-proof-image {
  min-height: 0 !important;
}

.page-automation .automation-proof-image img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.page-automation .automation-proof-card.is-main .automation-proof-image img {
  max-height: 420px;
}

.page-automation .automation-proof-card figcaption {
  margin-top: 0;
  padding-top: 0;
}

/* Web dev proof screenshot fit */
.page-web .web-dev-image-slot {
  min-height: 0 !important;
  height: 420px;
  padding: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.page-web .web-dev-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

@media (max-width: 760px) {
  .page-web .web-dev-image-slot {
    height: 260px;
    padding: 10px;
  }
}

/* WEB DEV IMAGE FRAME FIX - PC, TABLET, PHONE */
.page-web .web-dev-shot-frame {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;
  overflow: hidden !important;

  border: 1.5px solid rgba(21, 23, 24, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(82, 102, 94, 0.14),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(193, 164, 111, 0.18),
      transparent 30%
    ),
    rgba(240, 234, 223, 0.42);
}

.page-web .web-dev-shot-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  border-radius: 6px;
}

/* Tablet */
@media (max-width: 900px) {
  .page-web .web-dev-shot-frame {
    aspect-ratio: 1 / 1 !important;
    padding: 14px !important;
  }
}

/* Phone */
@media (max-width: 560px) {
  .page-web .web-dev-shot-frame {
    aspect-ratio: 1 / 1 !important;
    padding: 10px !important;
  }
}

/* Web dev image frame fix */
.page-web .web-dev-shot-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;

  padding: 18px !important;
  overflow: hidden !important;
}

.page-web .web-dev-shot-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .page-web .web-dev-shot-frame {
    padding: 14px !important;
  }
}

@media (max-width: 560px) {
  .page-web .web-dev-shot-frame {
    padding: 10px !important;
  }
}

/* FINAL HERO TINY IMAGE FIX - PC / TABLET / PHONE */

body.page-web .web-dev-window .web-window-note.web-window-strip {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  height: 96px !important;
  min-height: 0 !important;
  max-height: 96px !important;

  display: block !important;
  place-items: unset !important;

  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;

  border-radius: 8px !important;
  line-height: 0 !important;
}

body.page-web .web-dev-window .web-window-note.web-window-strip img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: fill !important;
  object-position: center !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: inherit !important;
}

/* Tablet */
@media (max-width: 900px) {
  body.page-web .web-dev-window .web-window-note.web-window-strip {
    height: 78px !important;
    max-height: 78px !important;
  }
}

/* Phone */
@media (max-width: 560px) {
  body.page-web .web-dev-window .web-window-note.web-window-strip {
    grid-column: 1 / -1 !important;

    height: 62px !important;
    min-height: 0 !important;
    max-height: 62px !important;

    padding: 0 !important;
    border-radius: 8px !important;
  }

  body.page-web .web-dev-window .web-window-note.web-window-strip img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
  }
}

/* FINAL LOCAL SEO IMAGE FIT - PC / TABLET / PHONE */

/* base image frame */
.page-seo .local-img-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 6px !important;
  line-height: 0 !important;
  border-radius: 12px !important;
}

/* remove blue circle overlay from old placeholder style */
.page-seo .local-img-frame::after {
  display: none !important;
}

/* image fill */
.page-seo .local-img-frame img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
}

/* hero image */
.page-seo .local-hero-shot {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* wide section images */
.page-seo .local-wide-shot {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* small four cards */
.page-seo .local-thumb.local-img-frame {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px !important;
  border-radius: 10px !important;
}

/* compact image with report bars */
.page-seo .local-seo-image-slot.is-compact.local-img-frame {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* tablet */
@media (max-width: 900px) {
  .page-seo .local-img-frame {
    padding: 5px !important;
  }

  .page-seo .local-thumb.local-img-frame {
    aspect-ratio: 16 / 9 !important;
  }
}

/* phone */
@media (max-width: 560px) {
  .page-seo .local-img-frame {
    padding: 4px !important;
    border-radius: 10px !important;
  }

  .page-seo .local-img-frame img {
    border-radius: 7px !important;
  }
}

/* FINAL: smaller mobile/tablet theme toggle inside nav */
@media (max-width: 900px) {
  .web-dev-nav,
  .local-seo-nav,
  .pricing-nav,
  .blog-nav,
  .contact-nav,
  .service-nav {
    padding-right: 78px !important;
  }

  .page-theme-toggle {
    position: fixed !important;
    top: 34px !important;
    right: 54px !important;
    z-index: 999 !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;

    border-radius: 50% !important;
    transform: none !important;
  }

  .page-theme-toggle::before {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    width: 3px;
    height: 28px;
    background: rgba(17, 17, 17, 0.24);
    content: "";
    transform: translateY(-50%);
  }

  .page-theme-toggle .theme-toggle-icon {
    width: 17px !important;
    height: 17px !important;
  }
}

/* Phone */
@media (max-width: 560px) {
  .web-dev-nav,
  .local-seo-nav,
  .pricing-nav,
  .blog-nav,
  .contact-nav,
  .service-nav {
    padding-right: 72px !important;
  }

  .page-theme-toggle {
    top: 33px !important;
    right: 42px !important;

    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .page-theme-toggle::before {
    right: calc(100% + 10px);
    height: 26px;
  }

  .page-theme-toggle .theme-toggle-icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Contact page real icon fix */
.contact-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  min-width: 64px;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.36);

  overflow: hidden;
}

.contact-icon img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* If some icons look too big/small, control them separately */
.contact-icon.is-small img {
  width: 26px;
  height: 26px;
}

.contact-icon.is-big img {
  width: 34px;
  height: 34px;
}

/* FIX: contact page icons inside quick cards and link cards */
.contact-quick-icon,
.contact-app-icon {
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.contact-quick-icon img,
.contact-app-icon img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
}

/* Email quick card icon can be a little bigger */
.contact-quick-icon img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

/* Bigger calendar that fills the contact quick card better */
.contact-calendar-card {
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 12px !important;
}

.contact-calendar-card > small {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.mini-calendar {
  width: 150px;
  max-width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.07);
}

.mini-calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #4ecf72;
  color: #111;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mini-calendar-top strong {
  font-size: 0.82rem;
  font-weight: 950;
}

.mini-calendar-days,
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.mini-calendar-days {
  padding: 8px 9px 3px;
  color: #777;
  font-size: 0.46rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.mini-calendar-grid {
  gap: 1px;
  padding: 4px 9px 10px;
}

.mini-calendar-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  color: #111;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.mini-calendar-grid span.is-muted {
  opacity: 0.22;
}

.mini-calendar-grid span.is-today {
  background: #111;
  color: #f5f3e5;
}

.contact-calendar-card:hover .mini-calendar {
  transform: rotate(-2deg) translateY(-1px);
}

/* Mobile */
@media (max-width: 560px) {
  .mini-calendar {
    width: 132px;
  }

  .mini-calendar-top {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .mini-calendar-top strong {
    font-size: 0.72rem;
  }

  .mini-calendar-grid span {
    font-size: 0.58rem;
  }

  .contact-calendar-card > small {
    font-size: 0.9rem;
  }
}

/* Shared photo + content sections for service pages */
.service-visual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  width: 100%;
  margin: clamp(42px, 7vw, 86px) 0;
}

.service-visual-section.is-reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.82fr);
}

.service-visual-section.is-reverse .service-visual-copy {
  order: 2;
}

.service-visual-section.is-reverse .service-visual-frame {
  order: 1;
}

.service-visual-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.service-visual-copy
  p:not(.web-dev-kicker):not(.automation-kicker):not(.local-seo-kicker) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.service-visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.service-visual-tags span {
  border: 1.5px solid rgba(17, 17, 17, 0.72);
  border-radius: 999px;
  background: rgba(245, 243, 229, 0.62);
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 850;
}

.service-visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px) 0 0 /
      32px 32px,
    linear-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    rgba(245, 243, 229, 0.5);
  box-shadow: 14px 14px 0 rgba(17, 17, 17, 0.12);
  overflow: hidden;
}

.service-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.automation-dark-frame {
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(207, 166, 255, 0.2),
      transparent 30%
    ),
    #3f254f;
}

.local-blue-frame {
  background:
    radial-gradient(
      circle at 82% 78%,
      rgba(72, 161, 225, 0.24),
      transparent 28%
    ),
    rgba(229, 244, 250, 0.72);
}

/* Tablet */
@media (max-width: 900px) {
  .service-visual-section,
  .service-visual-section.is-reverse {
    grid-template-columns: 1fr;
  }

  .service-visual-section.is-reverse .service-visual-copy,
  .service-visual-section.is-reverse .service-visual-frame {
    order: initial;
  }

  .service-visual-copy h2 {
    max-width: 760px;
  }

  .service-visual-frame {
    box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.1);
  }
}

/* Phone */
@media (max-width: 560px) {
  .service-visual-section {
    margin: 38px 0;
    gap: 18px;
  }

  .service-visual-copy h2 {
    font-size: clamp(2.1rem, 13vw, 3.8rem);
  }

  .service-visual-frame {
    border-radius: 14px;
    box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.1);
  }

  .service-visual-tags span {
    font-size: 0.76rem;
    padding: 6px 10px;
  }
}

/* Smaller h2 title for selected sections */
.small-section-title {
  font-size: clamp(2.2rem, 4.6vw, 4.8rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.05em !important;
}

/* Tablet */
@media (max-width: 900px) {
  .small-section-title {
    font-size: clamp(2rem, 7vw, 4rem) !important;
    line-height: 0.98 !important;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .small-section-title {
    font-size: clamp(1.8rem, 10vw, 3rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
  }
}

/* SOFTWARE SKILL ICON CLEAN HOVER */
.software-icons button {
  position: relative;
  overflow: visible;
  transition: none;
}

.software-icons button .app-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.software-icons button .app-icon img {
  transition:
    transform 180ms ease,
    filter 180ms ease;
  transform-origin: center;
}

.software-icons button:hover,
.software-icons button:focus-visible {
  z-index: 3;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.software-icons button:hover .app-icon,
.software-icons button:focus-visible .app-icon,
.software-icons button.is-active .app-icon {
  background: transparent !important;
  box-shadow: none !important;
}

.software-icons button:hover .app-icon img,
.software-icons button:focus-visible .app-icon img,
.software-icons button.is-active .app-icon img {
  transform: scale(1.16) translateY(-3px);
  filter: saturate(1.15) contrast(1.04);
}

/* LANDING OPEN FOR SECTION - SIMPLE ANIMATION */
.landing-skill-panel {
  position: relative;
  overflow: visible;
}

.skill-card-row {
  perspective: 900px;
}

.landing-skill-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    box-shadow 220ms ease;
  transform-origin: center;
}

.landing-skill-card img {
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

/* soft moving light on card */
.landing-skill-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  background: radial-gradient(
    circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(255, 255, 255, 0.55),
    transparent 34%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  mix-blend-mode: screen;
}

.landing-skill-card:hover,
.landing-skill-card:focus-visible,
.landing-skill-card.is-magnified {
  z-index: 5;
  transform: scale(1.13) translateY(-8px) rotateX(3deg);
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.2);
}

.landing-skill-card:hover img,
.landing-skill-card:focus-visible img,
.landing-skill-card.is-magnified img {
  transform: scale(1.04);
}

.landing-skill-card:hover::after,
.landing-skill-card:focus-visible::after,
.landing-skill-card.is-magnified::after {
  opacity: 1;
}

/* cards enter with small stagger */
.tab-panel.is-active .landing-skill-card {
  animation: openForCardPop 520ms ease both;
}

.tab-panel.is-active .landing-skill-card:nth-child(2) {
  animation-delay: 90ms;
}

.tab-panel.is-active .landing-skill-card:nth-child(3) {
  animation-delay: 180ms;
}

.landing-more-link {
  transition:
    letter-spacing 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.landing-more-link:hover {
  letter-spacing: 0.5em;
  transform: translateY(-2px);
}

@keyframes openForCardPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* mobile: keep it softer so layout does not break */
@media (max-width: 560px) {
  .software-icons button:hover,
  .software-icons button:focus-visible {
    transform: scale(1.12) translateY(-2px);
  }

  .landing-skill-card:hover,
  .landing-skill-card:focus-visible,
  .landing-skill-card.is-magnified {
    transform: scale(1.06) translateY(-4px);
  }
}

/* Reduce Abid Hasan name size on main index About section */
.page-home .about-section .language-name {
  font-size: clamp(3rem, 5.5vw, 4.5rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
}

/* Tablet */
@media (max-width: 900px) {
  .page-home .about-section .language-name {
    font-size: clamp(2.1rem, 8vw, 3.6rem) !important;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .page-home .about-section .language-name {
    font-size: clamp(2rem, 13vw, 3rem) !important;
    line-height: 1 !important;
  }
}

/* Fix homepage content invisible flash on first load */
.page-home .landing .reveal-item,
.page-home .landing-grid .reveal-item,
.page-home .intro-card,
.page-home .portfolio-card {
  opacity: 1 !important;
  transform: none !important;
}

/* Disable full-page loading overlay */
.page-transition,
.page-transition.is-visible {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Gmail quick card icon: same boxed style as other contact icons */
.contact-gmail-card {
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 12px !important;
}

.contact-gmail-card .contact-gmail-icon {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;

  border: 1px solid var(--contact-line) !important;
  border-radius: 12px !important;
  background: rgba(244, 237, 220, 0.06) !important;

  margin-bottom: 14px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

:root[data-theme="light"] .contact-gmail-card .contact-gmail-icon {
  background: rgba(23, 21, 31, 0.05) !important;
}

.contact-gmail-card .contact-gmail-icon img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
}

.contact-gmail-card strong {
  font-size: 1.45rem;
  line-height: 1;
}

.contact-gmail-card small {
  color: var(--contact-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep Gmail address in one line */
.contact-gmail-card small {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
}

/* ================================
   RESOURCE VAULT PAGE
   Clean Notion-style resource page
================================ */

.vault-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(229, 165, 233, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 88%,
      rgba(78, 207, 114, 0.12),
      transparent 30%
    ),
    var(--page-bg);
  color: var(--ink);
}

.vault-nav {
  position: sticky;
  top: 16px;
  z-index: 30;

  display: flex;
  width: min(1168px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin: 16px auto 0;
  border: 1.5px solid rgba(17, 17, 17, 0.16);
  border-radius: 14px;
  background: rgba(245, 243, 229, 0.78);
  padding: 11px 14px;

  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(14px);
}

.vault-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vault-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.vault-brand span {
  display: grid;
  line-height: 1.05;
}

.vault-brand strong {
  font-size: 0.95rem;
  font-weight: 850;
}

.vault-brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.vault-nav nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.vault-nav nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.vault-nav nav a:hover {
  color: var(--ink);
}

.vault-shell {
  width: min(1168px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 86px) 0 70px;
}

.vault-hero {
  max-width: 820px;
  margin-bottom: clamp(34px, 6vw, 58px);
}

.vault-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  padding: 6px 11px;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vault-hero h1 {
  margin: 0;
  max-width: 760px;

  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.vault-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.vault-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 52px);
  align-items: start;
}

.vault-sidebar {
  position: sticky;
  top: 96px;

  display: grid;
  gap: 4px;

  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  padding: 14px;
}

.vault-sidebar strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vault-sidebar a {
  border-radius: 9px;
  color: var(--muted);
  padding: 8px 9px;
  font-size: 0.92rem;
  font-weight: 720;
}

.vault-sidebar a:hover {
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
}

.vault-board {
  display: grid;
  gap: 34px;
}

.vault-section {
  scroll-margin-top: 110px;
}

.vault-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.vault-section-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.vault-section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.vault-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vault-resource-card {
  display: grid;
  gap: 9px;

  min-height: 150px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  padding: 16px;

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.vault-resource-card:hover {
  border-color: rgba(17, 17, 17, 0.32);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.07);
  transform: translateY(-2px);
}

.vault-tag {
  width: max-content;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(229, 165, 233, 0.18);
  padding: 4px 8px;

  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.vault-resource-card strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.vault-resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

/* Dark theme */
:root[data-theme="dark"] .vault-page {
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(229, 165, 233, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 88%,
      rgba(78, 207, 114, 0.08),
      transparent 30%
    ),
    var(--page-bg);
}

:root[data-theme="dark"] .vault-nav,
:root[data-theme="dark"] .vault-sidebar,
:root[data-theme="dark"] .vault-resource-card {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .vault-resource-card:hover {
  border-color: rgba(245, 243, 229, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

:root[data-theme="dark"] .vault-kicker,
:root[data-theme="dark"] .vault-tag {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(229, 165, 233, 0.12);
}

/* Tablet */
@media (max-width: 900px) {
  .vault-layout {
    grid-template-columns: 1fr;
  }

  .vault-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .vault-sidebar strong {
    width: 100%;
  }

  .vault-sidebar a {
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.28);
  }
}

/* Mobile */
@media (max-width: 560px) {
  .vault-nav {
    width: min(100% - 24px, 1168px);
    align-items: flex-start;
    padding: 10px 12px;
  }

  .vault-nav nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  .vault-nav nav a {
    font-size: 0.82rem;
  }

  .vault-brand small {
    display: none;
  }

  .vault-shell {
    width: min(100% - 24px, 1168px);
    padding-top: 38px;
  }

  .vault-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .vault-resource-grid {
    grid-template-columns: 1fr;
  }

  .vault-resource-card {
    min-height: 132px;
  }
}

/* ================================
   RESOURCE VAULT NAV SAME AS FEATURED PROJECT
================================ */

.vault-project-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

/* Brand same as project page */
.vault-project-nav .project-page-brand {
  flex: 0 0 auto !important;
}

/* Links stay in middle/right */
.vault-project-nav nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  margin-left: auto !important;
}

/* Theme toggle inside navbar, not floating */
.vault-project-nav .page-theme-toggle {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  flex: 0 0 auto !important;
  margin: 0 !important;

  transform: none !important;
  translate: none !important;
  z-index: 2 !important;
}

/* Tablet */
@media (max-width: 760px) {
  .vault-project-nav {
    gap: 12px !important;
  }

  .vault-project-nav nav {
    gap: 12px !important;
  }

  .vault-project-nav nav a {
    font-size: 0.86rem !important;
  }

  .vault-project-nav .project-page-brand img {
    width: 34px !important;
    height: 34px !important;
  }

  .vault-project-nav .page-theme-toggle {
    transform: scale(0.9) !important;
    transform-origin: center !important;
  }
}

/* Phone */
@media (max-width: 560px) {
  .vault-project-nav {
    gap: 10px !important;
  }

  .vault-project-nav .project-page-brand small {
    display: none !important;
  }

  .vault-project-nav nav {
    gap: 10px !important;
  }

  .vault-project-nav nav a {
    font-size: 0.8rem !important;
  }

  .vault-project-nav .page-theme-toggle {
    transform: scale(0.82) !important;
    transform-origin: center !important;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .vault-project-nav .project-page-brand span {
    display: none !important;
  }

  .vault-project-nav nav {
    gap: 9px !important;
  }

  .vault-project-nav nav a {
    font-size: 0.78rem !important;
  }

  .vault-project-nav .page-theme-toggle {
    transform: scale(0.78) !important;
  }
}

/* ================================
   CONTACT NAV LOGO FIX
   Same hover idea as other pages
================================ */

.page-contact .contact-brand {
  position: static !important;
  isolation: auto !important;
}

.page-contact .contact-brand::before,
.page-contact .contact-brand::after {
  display: none !important;
  content: none !important;
}

.page-contact .contact-brand img {
  position: static !important;
  z-index: auto !important;

  width: 38px !important;
  height: 38px !important;

  border-radius: 10px !important;
  object-fit: contain !important;

  box-shadow: none !important;
  filter: none !important;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease !important;
}

/* Light theme logo */
:root:not([data-theme="dark"]) .page-contact .contact-brand img {
  content: url("../assets/icon/brand-logo.webp") !important;
  background: transparent !important;
  object-fit: contain !important;
}

/* Dark theme logo */
:root[data-theme="dark"] .page-contact .contact-brand img {
  content: url("../assets/icon/brand-logodarkbg.png") !important;
  background: #151515 !important;
  object-fit: cover !important;
}

/* Hover color behind logo, same style as other pages */
.page-contact .contact-brand:hover img,
.page-contact .contact-brand:focus-visible img {
  box-shadow: 4px 4px 0 rgba(141, 245, 181, 0.36) !important;
  transform: rotate(-4deg) translateY(-1px) !important;
}

/* ================================
   RESOURCE VAULT PAGE POPUP
================================ */

.vault-page-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  place-items: center;

  background: rgba(17, 17, 17, 0.24);
  padding: 18px;
  backdrop-filter: blur(8px);
}

.vault-page-popup.is-visible {
  display: grid;
}

.vault-page-popup-card {
  position: relative;
  width: min(440px, 100%);

  border: 1.5px solid rgba(17, 17, 17, 0.16);
  border-radius: 18px;
  background: rgba(245, 243, 229, 0.96);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.16);
  padding: 28px;

  animation: vaultPagePopupIn 180ms ease both;
}

.vault-page-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;

  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;

  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);

  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.vault-page-popup-badge {
  display: inline-flex;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(229, 165, 233, 0.2);
  padding: 6px 10px;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vault-page-popup-card h2 {
  max-width: 10ch;
  margin: 16px 0 0;

  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.vault-page-popup-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* dark theme */
:root[data-theme="dark"] .vault-page-popup {
  background: rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .vault-page-popup-card {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(20, 20, 20, 0.96);
}

:root[data-theme="dark"] .vault-page-popup-close {
  border-color: rgba(245, 243, 229, 0.16);
  background: rgba(245, 243, 229, 0.08);
}

:root[data-theme="dark"] .vault-page-popup-badge {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(229, 165, 233, 0.12);
}

body.vault-page-popup-open {
  overflow: hidden;
}

@keyframes vaultPagePopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .vault-page-popup {
    padding: 14px;
  }

  .vault-page-popup-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .vault-page-popup-card h2 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .vault-page-popup-card p {
    font-size: 0.92rem;
  }
}

/* ================================
   RESOURCE VAULT MOBILE DROPDOWN + ACCORDION
================================ */

/* Category dropdown base */
.vault-category-menu {
  display: grid;
  gap: 8px;
}

.vault-category-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
  list-style: none;

  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vault-category-menu summary::-webkit-details-marker {
  display: none;
}

.vault-category-menu summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 900;
}

.vault-category-menu[open] summary::after {
  content: "-";
}

.vault-category-links {
  display: grid;
  gap: 4px;
}

/* Section accordion base */
.vault-section {
  display: grid;
  gap: 14px;
}

.vault-section-head {
  cursor: pointer;
  list-style: none;
}

.vault-section-head::-webkit-details-marker {
  display: none;
}

.vault-section-head::after {
  margin-left: auto;
  color: var(--muted);
  content: "+";
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.vault-section[open] .vault-section-head::after {
  content: "-";
}

/* Keep section title row aligned */
.vault-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Desktop: keep everything open-looking and clean */
@media (min-width: 901px) {
  .vault-section-head::after {
    display: none;
  }
}

/* Tablet + phone category style */
@media (max-width: 900px) {
  .vault-sidebar {
    padding: 12px !important;
  }

  .vault-category-menu {
    width: 100%;
  }

  .vault-category-menu summary {
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.32);
    padding: 12px 14px;
  }

  .vault-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
  }

  .vault-category-links a {
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    padding: 9px 12px;
  }
}

/* Phone: make categories compact and sections folded style */
@media (max-width: 560px) {
  .vault-sidebar {
    border-radius: 14px;
  }

  .vault-category-menu:not([open]) .vault-category-links {
    display: none;
  }

  .vault-category-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .vault-category-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    border-radius: 12px;

    font-size: 0.86rem;
    text-align: center;
  }

  .vault-board {
    gap: 14px;
  }

  .vault-section {
    border: 1px solid rgba(245, 243, 229, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    padding: 14px;
  }

  :root:not([data-theme="dark"]) .vault-section {
    border-color: rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.34);
  }

  .vault-section-head {
    margin-bottom: 0;
  }

  .vault-section-head h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .vault-section:not([open]) .vault-resource-grid {
    display: none;
  }

  .vault-section[open] .vault-resource-grid {
    margin-top: 12px;
  }
}

/* Dark theme small fixes */
:root[data-theme="dark"] .vault-category-menu summary,
:root[data-theme="dark"] .vault-category-links a {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

/* ================================
   RESOURCE VAULT ACCORDION TRANSITION
================================ */

/* Section box */
.vault-section {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  padding: 16px;
  overflow: hidden;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.vault-section[open] {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.05);
}

/* Clickable title row */
.vault-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0 !important;
  cursor: pointer;
  list-style: none;
}

.vault-section-head::-webkit-details-marker {
  display: none;
}

/* + / - icon */
.vault-section-head::after {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;

  margin-left: auto;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);

  color: var(--ink);
  content: "+";
  font-size: 1.4rem;
  font-weight: 850;
  line-height: 1;

  transition:
    transform 220ms ease,
    background 180ms ease;
}

.vault-section[open] .vault-section-head::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(229, 165, 233, 0.18);
}

/* Smooth dropdown animation */
.vault-section .vault-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  transform: translateY(-8px);

  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    transform 260ms ease,
    margin-top 220ms ease;
}

.vault-section[open] .vault-resource-grid {
  opacity: 1;
  max-height: 900px;
  margin-top: 16px;
  transform: translateY(0);
}

/* Category dropdown also smoother */
.vault-category-menu summary {
  cursor: pointer;
  list-style: none;
}

.vault-category-menu summary::-webkit-details-marker {
  display: none;
}

.vault-category-links {
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transform: translateY(-6px);

  transition:
    max-height 260ms ease,
    opacity 200ms ease,
    transform 220ms ease,
    margin-top 180ms ease;
}

.vault-category-menu[open] .vault-category-links {
  opacity: 1;
  max-height: 320px;
  margin-top: 10px;
  transform: translateY(0);
}

/* Dark theme */
:root[data-theme="dark"] .vault-section {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .vault-section[open] {
  background: rgba(255, 255, 255, 0.055);
}

:root[data-theme="dark"] .vault-section-head::after {
  border-color: rgba(245, 243, 229, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

/* Tablet */
@media (max-width: 900px) {
  .vault-section .vault-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone */
@media (max-width: 560px) {
  .vault-board {
    gap: 14px !important;
  }

  .vault-section {
    padding: 14px;
    border-radius: 15px;
  }

  .vault-section-head h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .vault-section-head::after {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .vault-section .vault-resource-grid {
    grid-template-columns: 1fr;
  }

  .vault-section[open] .vault-resource-grid {
    max-height: 1400px;
  }
}

/* ================================
   RESOURCE VAULT FULL FINAL CSS
   Desktop: left title + overlapped cards
   Phone: compact sticky category scroll
================================ */

.vault-page {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
}

.vault-project-nav {
  margin-bottom: 0;
}

.vault-shell {
  width: min(1168px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 76px) 0 70px;
}

/* HERO */
.vault-hero {
  max-width: 820px;
  margin-bottom: clamp(34px, 6vw, 58px);
}

.vault-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  padding: 6px 11px;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vault-hero h1 {
  max-width: 760px;
  margin: 0;

  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.vault-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

/* ================================
   SHOWCASE WRAPPER
================================ */

.vault-showcase {
  display: grid;
  gap: clamp(42px, 7vw, 84px);
}

/* CATEGORY MENU */
.vault-category-strip {
  position: sticky;
  top: 92px;
  z-index: 12;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  border: 1.5px solid rgba(17, 17, 17, 0.16);
  border-radius: 18px;
  background: rgba(245, 243, 229, 0.9);
  padding: 12px;

  backdrop-filter: blur(14px);
}

.vault-category-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);

  padding: 9px 13px;
  font-size: 0.86rem;
  font-weight: 850;

  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.vault-category-strip a:hover,
.vault-category-strip a.is-active {
  background: var(--ink);
  color: var(--page-bg);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.12);
  transform: translate(-1px, -1px);
}

/* ================================
   EACH CATEGORY ROW
================================ */

.vault-showcase-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;

  scroll-margin-top: 150px;
}

/* ================================
   LEFT SECTION TITLE CARD
================================ */

.vault-showcase-title {
  position: sticky;
  top: 160px;

  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;

  border: 1.5px solid rgba(17, 17, 17, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  padding: 22px;
  overflow: hidden;
}

.vault-showcase-title > * {
  position: relative;
  z-index: 1;
}

.vault-showcase-title span {
  align-self: flex-start;
  margin-bottom: auto;

  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.vault-showcase-title h2 {
  max-width: 8ch;
  margin: 0;

  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.07em;

  overflow-wrap: anywhere;
}

.vault-showcase-title p {
  max-width: 235px;
  margin: 16px 0 0;

  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.vault-showcase-title a {
  width: max-content;
  margin-top: 20px;

  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;

  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.vault-showcase-title a:hover {
  opacity: 0.7;
  transform: translateX(4px);
}

/* ================================
   RIGHT OVERLAPPED CARD ROW
================================ */

.vault-scroll-area {
  display: flex;
  align-items: stretch;

  min-width: 0;
  min-height: 350px;

  overflow-x: auto;
  overflow-y: visible;

  padding: 18px 90px 42px 34px;

  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.vault-scroll-area::-webkit-scrollbar {
  height: 10px;
}

.vault-scroll-area::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
}

.vault-scroll-area::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.32);
}

/* CARD */
.vault-resource-tile {
  position: relative;

  display: flex;
  flex: 0 0 300px;
  min-height: 320px;
  flex-direction: column;

  scroll-snap-align: start;

  border: 1.5px solid rgba(17, 17, 17, 0.18);
  border-radius: 22px;
  background: #fbfaf1;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.1);
  padding: 24px;

  margin-left: -128px;

  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  transform-origin: left bottom;

  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.vault-resource-tile:first-child {
  margin-left: 0;
}

/* Keep all normal cards straight */
.vault-resource-tile:nth-child(2n),
.vault-resource-tile:nth-child(3n),
.vault-resource-tile:nth-child(4n) {
  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
}

/* Hover: only slightly comes out from stack */
.vault-resource-tile:hover {
  z-index: 6;
  border-color: rgba(17, 17, 17, 0.32);
  background: #ffffff;

  box-shadow:
    24px 14px 42px rgba(17, 17, 17, 0.2),
    0 20px 48px rgba(17, 17, 17, 0.14);

  transform: translateX(-6px) translateY(-8px) rotate(1.35deg) scale(1.01);
}

/* Next cards move only a little, so overlap stays visible */
.vault-resource-tile:hover ~ .vault-resource-tile {
  z-index: 8;
  transform: translateX(18px) translateY(0) rotate(0deg) scale(1);
}

.vault-resource-tile span {
  width: max-content;

  border: 1.5px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: #f2e6f0;
  padding: 6px 10px;

  font-size: 0.72rem;
  font-weight: 900;
}

.vault-resource-tile h3 {
  max-width: 9ch;
  margin: auto 0 0;

  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.vault-resource-tile p {
  max-width: 22ch;
  margin: 15px 0 0;

  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.vault-resource-tile small {
  display: inline-flex;
  width: max-content;
  margin-top: 24px;

  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    color 160ms ease,
    transform 160ms ease;
}

.vault-resource-tile:hover small {
  color: var(--ink);
  transform: translateX(6px);
}

/* ================================
   POPUP
================================ */

.vault-page-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  place-items: center;

  background: rgba(17, 17, 17, 0.24);
  padding: 18px;
  backdrop-filter: blur(8px);
}

.vault-page-popup.is-visible {
  display: grid;
}

.vault-page-popup-card {
  position: relative;
  width: min(440px, 100%);

  border: 1.5px solid rgba(17, 17, 17, 0.16);
  border-radius: 18px;
  background: rgba(245, 243, 229, 0.96);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.16);
  padding: 28px;

  animation: vaultPagePopupIn 180ms ease both;
}

.vault-page-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;

  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;

  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);

  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.vault-page-popup-badge {
  display: inline-flex;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(229, 165, 233, 0.2);
  padding: 6px 10px;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vault-page-popup-card h2 {
  max-width: 10ch;
  margin: 16px 0 0;

  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.vault-page-popup-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

body.vault-page-popup-open {
  overflow: hidden;
}

@keyframes vaultPagePopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================================
   DARK THEME
================================ */

:root[data-theme="dark"] .vault-page {
  background: var(--page-bg);
}

:root[data-theme="dark"] .vault-category-strip {
  border-color: rgba(245, 243, 229, 0.14);
  background: rgba(20, 20, 20, 0.86);
}

:root[data-theme="dark"] .vault-category-strip a {
  border-color: rgba(245, 243, 229, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .vault-category-strip a:hover,
:root[data-theme="dark"] .vault-category-strip a.is-active {
  background: var(--ink);
  color: var(--page-bg);
}

:root[data-theme="dark"] .vault-showcase-title {
  border-color: rgba(245, 243, 229, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

:root[data-theme="dark"] .vault-resource-tile {
  border-color: rgba(245, 243, 229, 0.14);
  background: #181818;
}

:root[data-theme="dark"] .vault-resource-tile:hover {
  border-color: rgba(245, 243, 229, 0.26);
  background: #202020;
}

:root[data-theme="dark"] .vault-resource-tile span,
:root[data-theme="dark"] .vault-kicker {
  border-color: rgba(245, 243, 229, 0.14);
  background: rgba(229, 165, 233, 0.12);
}

:root[data-theme="dark"] .vault-page-popup {
  background: rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .vault-page-popup-card {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(20, 20, 20, 0.96);
}

:root[data-theme="dark"] .vault-page-popup-close {
  border-color: rgba(245, 243, 229, 0.16);
  background: rgba(245, 243, 229, 0.08);
}

:root[data-theme="dark"] .vault-page-popup-badge {
  border-color: rgba(245, 243, 229, 0.12);
  background: rgba(229, 165, 233, 0.12);
}

/* ================================
   TABLET
================================ */

@media (max-width: 900px) {
  .vault-showcase-row {
    grid-template-columns: 1fr;
  }

  .vault-showcase-title {
    position: relative;
    top: auto;
    min-height: 230px;
  }

  .vault-showcase-title h2 {
    max-width: 12ch;
  }

  .vault-showcase-title p {
    max-width: 620px;
  }

  .vault-scroll-area {
    min-height: 330px;
    padding-left: 34px;
  }

  .vault-resource-tile {
    flex-basis: 280px;
    min-height: 300px;
    margin-left: -104px;
    transform-origin: left bottom;
  }

  .vault-resource-tile:hover {
    z-index: 6;
    box-shadow:
      22px 12px 38px rgba(17, 17, 17, 0.18),
      0 18px 44px rgba(17, 17, 17, 0.13);

    transform: translateX(-5px) translateY(-7px) rotate(1.15deg) scale(1.008);
  }

  .vault-resource-tile:hover ~ .vault-resource-tile {
    z-index: 8;
    transform: translateX(18px) translateY(0) rotate(0deg) scale(1);
  }
}

/* ================================
   PHONE
   Compact category menu
================================ */

@media (max-width: 560px) {
  .vault-shell {
    width: min(100% - 24px, 1168px);
    padding-top: 38px;
  }

  .vault-hero {
    margin-bottom: 28px;
  }

  .vault-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .vault-hero p {
    font-size: 0.96rem;
  }

  /* phone category: compact horizontal scroll, not full block */
  .vault-category-strip {
    top: 72px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;

    width: calc(100% + 24px);
    margin-left: -12px;

    overflow-x: auto;
    overflow-y: hidden;

    border-radius: 0;
    border-left: 0;
    border-right: 0;

    padding: 8px 12px;

    scrollbar-width: none;
  }

  .vault-category-strip::-webkit-scrollbar {
    display: none;
  }

  .vault-category-strip a {
    flex: 0 0 auto;
    min-height: 34px;
    min-width: max-content;

    padding: 7px 12px;

    border-radius: 999px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .vault-showcase {
    gap: 44px;
  }

  .vault-showcase-row {
    gap: 14px;
    scroll-margin-top: 130px;
  }

  .vault-showcase-title {
    min-height: 205px;
    border-radius: 20px;
    padding: 20px;
  }

  .vault-showcase-title h2 {
    max-width: 9ch;
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .vault-showcase-title p {
    font-size: 0.9rem;
  }

  .vault-scroll-area {
    min-height: 290px;
    padding: 14px 44px 34px 18px;
  }

  .vault-resource-tile {
    flex-basis: 235px;
    min-height: 255px;
    margin-left: -82px;

    border-radius: 18px;
    padding: 18px;
    transform-origin: left bottom;
  }

  .vault-resource-tile:hover {
    z-index: 6;
    box-shadow:
      16px 10px 30px rgba(17, 17, 17, 0.18),
      0 16px 36px rgba(17, 17, 17, 0.13);

    transform: translateX(-4px) translateY(-5px) rotate(1deg) scale(1.006);
  }

  .vault-resource-tile:hover ~ .vault-resource-tile {
    z-index: 8;
    transform: translateX(14px) translateY(0) rotate(0deg) scale(1);
  }

  .vault-resource-tile h3 {
    max-width: 9ch;
    font-size: 1.45rem;
  }

  .vault-resource-tile p {
    max-width: 22ch;
    font-size: 0.86rem;
  }

  .vault-page-popup {
    padding: 14px;
  }

  .vault-page-popup-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .vault-page-popup-card h2 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .vault-page-popup-card p {
    font-size: 0.92rem;
  }

  .vault-project-nav .project-page-brand small {
    display: none;
  }

  .vault-project-nav nav {
    gap: 10px;
  }

  .vault-project-nav nav a {
    font-size: 0.82rem;
  }
}

/* Light theme: grid background for Resource Vault page */
:root:not([data-theme="dark"]) .vault-page {
  background:
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px) 0 0 / 84px
      84px,
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px) 0 0 /
      84px 84px,
    var(--page-bg) !important;
}

/* Dark theme: grid background for Resource Vault page */
:root[data-theme="dark"] .vault-page {
  background:
    linear-gradient(rgba(245, 243, 229, 0.045) 1px, transparent 1px) 0 0 / 84px
      84px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.045) 1px, transparent 1px) 0
      0 / 84px 84px,
    var(--page-bg) !important;
}

/* ================================
   SERVICE HUB SIMPLE DIRECTORY
   Clean, small, main-site style
================================ */

.service-hub-page {
  --service-bg: #101010;
  --service-ink: #f5f3e5;
  --service-muted: #b8b4a8;
  --service-card: #181818;
  --service-card-soft: #202020;
  --service-line: rgba(245, 243, 229, 0.14);
  --service-strong-line: rgba(245, 243, 229, 0.28);
  --service-nav-bg: rgba(16, 16, 16, 0.82);
  --service-accent: #e5a5e9;
  --service-accent-2: #80f2ae;
  --service-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --service-width: 1168px;

  min-height: 100vh;
  background:
    linear-gradient(rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 / 84px
      84px,
    linear-gradient(90deg, rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 /
      84px 84px,
    var(--service-bg);
  color: var(--service-ink);
}

:root:not([data-theme="dark"]) .service-hub-page {
  --service-bg: #f5f3e5;
  --service-ink: #101010;
  --service-muted: #5f5f5d;
  --service-card: #fbfaf1;
  --service-card-soft: #ece8d9;
  --service-line: rgba(17, 17, 17, 0.16);
  --service-strong-line: rgba(17, 17, 17, 0.28);
  --service-nav-bg: rgba(245, 243, 229, 0.84);
  --service-accent: #e5a5e9;
  --service-accent-2: #4ecf72;
  --service-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);

  background:
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px) 0 0 /
      84px 84px,
    var(--service-bg);
}

/* NAV */
.service-hub-nav {
  position: sticky;
  top: 14px;
  z-index: 50;

  display: flex;
  width: min(var(--service-width), calc(100% - 28px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin: 14px auto 0;
  border: 1.5px solid var(--service-strong-line);
  border-radius: 14px;
  background: var(--service-nav-bg);
  box-shadow: var(--service-shadow);
  padding: 12px 14px;

  backdrop-filter: blur(16px);
}

.service-hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.service-hub-brand img {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--service-strong-line);
  border-radius: 12px;
  object-fit: cover;
}

.service-hub-brand span {
  display: grid;
  line-height: 1.05;
}

.service-hub-brand strong {
  color: var(--service-ink);
  font-size: 1rem;
  font-weight: 950;
}

.service-hub-brand small {
  color: var(--service-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.service-hub-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.service-hub-nav nav a {
  position: relative;
  color: var(--service-ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.service-hub-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(229, 165, 233, 0.42);
  content: "";
  transform: scaleX(0.42);
  transform-origin: center;
  transition: transform 160ms ease;
}

.service-hub-nav nav a:hover::after {
  transform: scaleX(1);
}

.service-hub-theme-toggle {
  position: static;
  width: 42px;
  height: 42px;
  border-color: var(--service-strong-line);
  color: var(--service-ink);
  background: transparent;
}

/* SHELL */
.service-hub-shell {
  width: min(var(--service-width), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 58px) 0 70px;
}

/* SMALL HERO */
.service-hub-mini-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;

  border-bottom: 1.5px solid var(--service-line);
  padding: clamp(24px, 5vw, 46px) 0 clamp(26px, 5vw, 42px);
}

.service-hub-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;

  border: 1.5px solid var(--service-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--service-muted);
  padding: 7px 12px;

  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-hub-kicker::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--service-accent-2);
  content: "";
}

.service-hub-mini-hero h1 {
  max-width: 780px;
  margin: 0;

  color: var(--service-ink);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.service-hub-mini-hero p {
  max-width: 520px;
  margin: 16px 0 0;

  color: var(--service-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.55;
}

/* SERVICES */
.service-hub-section {
  margin-top: clamp(28px, 5vw, 46px);
}

.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-hub-card {
  position: relative;

  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;

  border: 1.5px solid var(--service-line);
  border-radius: 24px;
  background: var(--service-card);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
  padding: 21px;

  overflow: hidden;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service-hub-card::before {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(229, 165, 233, 0.22),
    transparent 64%
  );
  content: "";
}

.service-hub-card:nth-child(2)::before {
  background: radial-gradient(circle, rgba(78, 207, 114, 0.2), transparent 64%);
}

.service-hub-card:nth-child(3)::before {
  background: radial-gradient(
    circle,
    rgba(128, 242, 174, 0.18),
    transparent 64%
  );
}

.service-hub-card:nth-child(4)::before {
  background: radial-gradient(
    circle,
    rgba(245, 243, 229, 0.14),
    transparent 64%
  );
}

.cyber-image-slot strong {
  display: block;
  width: min(100%, 520px);
  padding: 16px;
  border: 1.5px solid rgba(18, 25, 27, 0.16);
  border-radius: 18px;
  background: rgba(255, 250, 239, 0.92);
  box-shadow: 8px 8px 0 rgba(18, 25, 27, 0.08);
}

.cyber-image-slot strong img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.service-hub-card:nth-child(5)::before {
  background: radial-gradient(circle, rgba(69, 96, 245, 0.16), transparent 64%);
}

.service-hub-card:hover {
  border-color: var(--service-strong-line);
  background: var(--service-card-soft);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.16);
  transform: translateY(-7px);
}

.service-hub-card > * {
  position: relative;
  z-index: 1;
}

.service-hub-number {
  color: var(--service-muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.service-hub-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;

  margin-top: 26px;

  border: 1.5px solid var(--service-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.service-hub-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--service-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-hub-card h2 {
  margin: 26px 0 0;

  color: var(--service-ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.service-hub-card p {
  margin: 14px 0 0;

  color: var(--service-muted);
  font-size: 0.94rem;
  line-height: 1.48;
}

.service-hub-card a {
  display: inline-flex;
  width: max-content;
  margin-top: 22px;

  border-bottom: 2px solid currentColor;
  color: var(--service-ink);
  font-size: 0.9rem;
  font-weight: 950;

  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.service-hub-card a:hover {
  opacity: 0.75;
  transform: translateX(4px);
}

/* CTA */
.service-hub-small-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-top: clamp(34px, 6vw, 64px);
  border: 1.5px solid var(--service-line);
  border-radius: 24px;
  background: var(--service-card);
  box-shadow: var(--service-shadow);
  padding: clamp(22px, 4vw, 34px);
}

.service-hub-small-cta h2 {
  max-width: 620px;
  margin: 14px 0 0;

  color: var(--service-ink);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.service-hub-btn {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-content: center;

  border: 1.5px solid var(--service-strong-line);
  border-radius: 999px;
  background: var(--service-accent-2);
  color: #101010;
  padding: 12px 17px;

  font-size: 0.95rem;
  font-weight: 950;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.service-hub-btn:hover {
  box-shadow: 6px 6px 0 rgba(229, 165, 233, 0.24);
  transform: translate(-2px, -2px);
}

/* FOOTER */
.service-hub-footer {
  width: min(var(--service-width), calc(100% - 28px));
  margin: 0 auto 24px;

  border: 1.5px solid var(--service-line);
  border-radius: 20px;
  background: var(--service-card);
  color: var(--service-muted);
  padding: 16px 18px;

  font-size: 0.9rem;
  font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .service-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-hub-mini-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .service-hub-nav {
    top: 10px;
    width: min(100% - 20px, var(--service-width));
    gap: 10px;
    padding: 10px;
  }

  .service-hub-brand small {
    display: none;
  }

  .service-hub-brand img {
    width: 38px;
    height: 38px;
  }

  .service-hub-nav nav {
    gap: 10px;
  }

  .service-hub-nav nav a {
    font-size: 0.78rem;
  }

  .service-hub-theme-toggle {
    width: 38px;
    height: 38px;
  }

  .service-hub-shell {
    width: min(100% - 22px, var(--service-width));
    padding-top: 30px;
  }

  .service-hub-mini-hero {
    padding-top: 24px;
  }

  .service-hub-mini-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .service-hub-mini-hero p {
    font-size: 0.94rem;
  }

  .service-hub-grid {
    grid-template-columns: 1fr;
  }

  .service-hub-card {
    min-height: 275px;
  }

  .service-hub-small-cta {
    display: grid;
  }

  .service-hub-small-cta h2 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .service-hub-btn {
    width: max-content;
  }
}

/* ================================
   MAIN INDEX PURPLE GRAPHITE DARK THEME
   Clean purple dark mode
   Only affects index.html / .page-home
================================ */

:root[data-theme="dark"] .page-home {
  --page-bg: #13111c;
  --ink: #f4f0ff;
  --muted: #b9b1c9;
  --line: rgba(244, 240, 255, 0.17);
  --soft-line: rgba(244, 240, 255, 0.09);
  --card-bg: #252232;

  --purple-bg: #13111c;
  --purple-bg-soft: #191625;
  --purple-card: #252232;
  --purple-card-hover: #2e2a3d;
  --purple-footer: #1d1a29;
  --purple-ink: #f4f0ff;
  --purple-muted: #b9b1c9;
  --purple-main: #a98cff;
  --purple-soft: #c7b7ff;
  --purple-blue: #8fa8ff;
  --purple-border: rgba(244, 240, 255, 0.16);

  background:
    radial-gradient(
      circle at 16% 10%,
      rgba(169, 140, 255, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 22%,
      rgba(143, 168, 255, 0.11),
      transparent 28%
    ),
    radial-gradient(
      circle at 46% 100%,
      rgba(244, 240, 255, 0.055),
      transparent 34%
    ),
    linear-gradient(rgba(244, 240, 255, 0.028) 1px, transparent 1px) 0 0 / 86px
      86px,
    linear-gradient(90deg, rgba(244, 240, 255, 0.028) 1px, transparent 1px) 0
      0 / 86px 86px,
    #13111c !important;

  color: var(--purple-ink);
}

/* Keep main sections transparent */
:root[data-theme="dark"] .page-home main#home,
:root[data-theme="dark"] .page-home .about-section,
:root[data-theme="dark"] .page-home .service-section,
:root[data-theme="dark"] .page-home .feature-section,
:root[data-theme="dark"] .page-home .carousel-section {
  background: transparent !important;
}

/* ================================
   NAV
================================ */

:root[data-theme="dark"] .page-home .site-nav {
  border: 1.5px solid rgba(244, 240, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(169, 140, 255, 0.08), transparent 44%),
    rgba(25, 22, 37, 0.88);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(244, 240, 255, 0.04);
  backdrop-filter: blur(18px);
}

:root[data-theme="dark"] .page-home .site-nav-brand img {
  border-color: rgba(244, 240, 255, 0.18);
  background: rgba(244, 240, 255, 0.06);
}

:root[data-theme="dark"] .page-home .site-nav-brand strong,
:root[data-theme="dark"] .page-home .site-nav nav a {
  color: var(--purple-ink);
}

:root[data-theme="dark"] .page-home .site-nav-brand small {
  color: var(--purple-muted);
}

:root[data-theme="dark"] .page-home .site-nav nav a::after {
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(169, 140, 255, 0.72),
    rgba(143, 168, 255, 0.58)
  );
  box-shadow: 0 0 18px rgba(169, 140, 255, 0.12);
}

:root[data-theme="dark"] .page-home .nav-radar {
  border-color: rgba(244, 240, 255, 0.5);
  background: #13111c;
  box-shadow:
    0 0 0 5px rgba(169, 140, 255, 0.12),
    0 0 20px rgba(169, 140, 255, 0.1);
}

/* ================================
   TOP BANNER
================================ */

:root[data-theme="dark"] .page-home .top-gradient {
  border-bottom: 1px solid rgba(244, 240, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(19, 17, 28, 0.84), rgba(19, 17, 28, 0.58)),
    radial-gradient(
      circle at 20% 30%,
      rgba(169, 140, 255, 0.19),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 38%,
      rgba(143, 168, 255, 0.14),
      transparent 34%
    ),
    url("../assets/hero-gradient.jpg") center / cover no-repeat !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .page-home .top-gradient::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 240, 255, 0.07),
    rgba(169, 140, 255, 0.13),
    rgba(143, 168, 255, 0.1),
    transparent
  );
  opacity: 0.7;
}

/* ================================
   BIG TITLE
================================ */

:root[data-theme="dark"] .page-home .portfolio-title-wrap h1 {
  color: var(--purple-ink) !important;
  text-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(169, 140, 255, 0.08);
}

:root[data-theme="dark"] .page-home .title-image {
  filter: drop-shadow(0 0 14px rgba(169, 140, 255, 0.14))
    drop-shadow(0 0 24px rgba(143, 168, 255, 0.08));
}

:root[data-theme="dark"] .page-home .title-fire-icon {
  filter: drop-shadow(0 0 10px rgba(255, 130, 45, 0.38))
    drop-shadow(0 0 18px rgba(255, 214, 97, 0.16));
}

:root[data-theme="dark"] .page-home .title-fire-wrap::before {
  background: radial-gradient(
    circle,
    rgba(255, 151, 50, 0.62),
    rgba(255, 67, 38, 0.28) 48%,
    transparent 76%
  );
  filter: blur(10px);
}

/* ================================
   CARD SYSTEM
   medium cards on deep purple bg
================================ */

:root[data-theme="dark"] .page-home .intro-card,
:root[data-theme="dark"] .page-home .portfolio-card,
:root[data-theme="dark"] .page-home .name-card,
:root[data-theme="dark"] .page-home .about-card,
:root[data-theme="dark"] .page-home .service-card,
:root[data-theme="dark"] .page-home .feature-card,
:root[data-theme="dark"] .page-home .feature-links a,
:root[data-theme="dark"] .page-home .software-card,
:root[data-theme="dark"] .page-home .quote-card,
:root[data-theme="dark"] .page-home .carousel-card,
:root[data-theme="dark"] .page-home .footer-card {
  border: 1.5px solid rgba(244, 240, 255, 0.15) !important;
  background:
    linear-gradient(180deg, rgba(244, 240, 255, 0.055), transparent 38%),
    linear-gradient(135deg, rgba(169, 140, 255, 0.06), transparent 44%), #252232 !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(244, 240, 255, 0.035);
  color: var(--purple-ink);
}

:root[data-theme="dark"] .page-home .intro-card:hover,
:root[data-theme="dark"] .page-home .portfolio-card:hover,
:root[data-theme="dark"] .page-home .service-card:hover,
:root[data-theme="dark"] .page-home .feature-links a:hover,
:root[data-theme="dark"] .page-home .software-card:hover,
:root[data-theme="dark"] .page-home .carousel-card:hover {
  border-color: rgba(169, 140, 255, 0.36) !important;
  background:
    linear-gradient(180deg, rgba(244, 240, 255, 0.065), transparent 38%),
    linear-gradient(135deg, rgba(169, 140, 255, 0.085), transparent 44%),
    #2e2a3d !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(169, 140, 255, 0.075),
    inset 0 1px 0 rgba(244, 240, 255, 0.04);
}

/* ================================
   TEXT
================================ */

:root[data-theme="dark"] .page-home h1,
:root[data-theme="dark"] .page-home h2,
:root[data-theme="dark"] .page-home h3,
:root[data-theme="dark"] .page-home strong,
:root[data-theme="dark"] .page-home .language-name,
:root[data-theme="dark"] .page-home .skill-tools-title h2,
:root[data-theme="dark"] .page-home .service-card h3,
:root[data-theme="dark"] .page-home .feature-card h2 {
  color: var(--purple-ink) !important;
}

:root[data-theme="dark"] .page-home p,
:root[data-theme="dark"] .page-home .intro-copy,
:root[data-theme="dark"] .page-home .intro-copy p,
:root[data-theme="dark"] .page-home .about-card p,
:root[data-theme="dark"] .page-home .service-card p,
:root[data-theme="dark"] .page-home .feature-card p,
:root[data-theme="dark"] .page-home .feature-links small,
:root[data-theme="dark"] .page-home .software-card p,
:root[data-theme="dark"] .page-home .quote-card p,
:root[data-theme="dark"] .page-home .carousel-card p,
:root[data-theme="dark"] .page-home .footer-main p {
  color: var(--purple-muted) !important;
}

/* ================================
   CTA / BOOK CALL
================================ */

:root[data-theme="dark"] .page-home .primary-action,
:root[data-theme="dark"] .page-home .booking-button,
:root[data-theme="dark"] .page-home .book-call-button,
:root[data-theme="dark"] .page-home .schedule-call-button,
:root[data-theme="dark"] .page-home a[href*="calendly"] {
  border: 1.5px solid rgba(244, 240, 255, 0.24) !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #a98cff, #8fa8ff) !important;
  color: #13111c !important;
  box-shadow:
    7px 7px 0 rgba(244, 240, 255, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.26) !important;
  font-weight: 950;
}

:root[data-theme="dark"] .page-home .primary-action:hover,
:root[data-theme="dark"] .page-home .booking-button:hover,
:root[data-theme="dark"] .page-home .book-call-button:hover,
:root[data-theme="dark"] .page-home .schedule-call-button:hover,
:root[data-theme="dark"] .page-home a[href*="calendly"]:hover {
  background: linear-gradient(90deg, #c7b7ff, #aebdff) !important;
  color: #13111c !important;
  box-shadow:
    9px 9px 0 rgba(244, 240, 255, 0.16),
    0 24px 52px rgba(0, 0, 0, 0.3) !important;
  transform: translate(-2px, -2px);
}

:root[data-theme="dark"] .page-home .primary-action svg,
:root[data-theme="dark"] .page-home .booking-button svg,
:root[data-theme="dark"] .page-home .book-call-button svg,
:root[data-theme="dark"] .page-home .schedule-call-button svg {
  color: #13111c !important;
  stroke: #13111c !important;
}

/* ================================
   FEATURED PROJECT / BADGES
================================ */

:root[data-theme="dark"] .page-home .feature-card,
:root[data-theme="dark"] .page-home .portfolio-card {
  background:
    linear-gradient(180deg, rgba(244, 240, 255, 0.055), transparent 34%),
    linear-gradient(
      90deg,
      rgba(169, 140, 255, 0.08),
      rgba(143, 168, 255, 0.055)
    ),
    #252232 !important;
}

:root[data-theme="dark"] .page-home .feature-card .pill,
:root[data-theme="dark"] .page-home .portfolio-card .pill,
:root[data-theme="dark"] .page-home .feature-card span,
:root[data-theme="dark"] .page-home .portfolio-card span {
  border-color: rgba(244, 240, 255, 0.16);
  background: rgba(244, 240, 255, 0.065);
  color: var(--purple-ink);
}

:root[data-theme="dark"] .page-home .feature-card i,
:root[data-theme="dark"] .page-home .portfolio-card i {
  background: var(--purple-main);
}

/* ================================
   TABS / SKILLS
================================ */

:root[data-theme="dark"] .page-home .portfolio-tabs {
  border-color: rgba(244, 240, 255, 0.12);
  background: rgba(244, 240, 255, 0.04);
}

:root[data-theme="dark"] .page-home .tab-button {
  border-color: rgba(244, 240, 255, 0.1);
  background: transparent;
  color: var(--purple-muted);
}

:root[data-theme="dark"] .page-home .tab-button.is-active {
  background: linear-gradient(
    90deg,
    rgba(169, 140, 255, 0.16),
    rgba(143, 168, 255, 0.1)
  );
  color: var(--purple-ink);
}

:root[data-theme="dark"] .page-home .landing-skill-card {
  border-color: rgba(244, 240, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(244, 240, 255, 0.05), transparent 42%),
    rgba(244, 240, 255, 0.035);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(244, 240, 255, 0.02);
}

:root[data-theme="dark"] .page-home .landing-skill-card:hover,
:root[data-theme="dark"] .page-home .landing-skill-card:focus-visible,
:root[data-theme="dark"] .page-home .landing-skill-card.is-magnified {
  border-color: rgba(169, 140, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(244, 240, 255, 0.06), transparent 42%),
    rgba(169, 140, 255, 0.07);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(169, 140, 255, 0.07);
}

/* ================================
   PHOTO / IMAGE FRAMES
================================ */

:root[data-theme="dark"] .page-home .intro-photo-frame,
:root[data-theme="dark"] .page-home .photo-frame,
:root[data-theme="dark"] .page-home .quote-photo-frame {
  border-color: rgba(244, 240, 255, 0.16) !important;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(169, 140, 255, 0.1),
      transparent 38%
    ),
    rgba(244, 240, 255, 0.04) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(169, 140, 255, 0.05);
}

/* ================================
   ACCENTS / LINES
================================ */

:root[data-theme="dark"] .page-home .section-divider {
  border-color: rgba(244, 240, 255, 0.1);
}

:root[data-theme="dark"] .page-home .section-divider::before,
:root[data-theme="dark"] .page-home .section-divider::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(169, 140, 255, 0.52),
    rgba(143, 168, 255, 0.36),
    transparent
  ) !important;
}

:root[data-theme="dark"] .page-home .service-card h3::after,
:root[data-theme="dark"] .page-home .feature-card h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-main), var(--purple-blue));
  content: "";
}

:root[data-theme="dark"] .page-home .feature-links a::after,
:root[data-theme="dark"] .page-home .footer-links a::after {
  background: linear-gradient(
    90deg,
    rgba(169, 140, 255, 0.48),
    rgba(143, 168, 255, 0.34)
  );
}

/* ================================
   FLOATING UI
================================ */

:root[data-theme="dark"] .page-home .theme-toggle,
:root[data-theme="dark"] .page-home .back-to-top,
:root[data-theme="dark"] .page-home .guide-chat-toggle,
:root[data-theme="dark"] .page-home .guide-chat-panel,
:root[data-theme="dark"] .page-home .lab-toast,
:root[data-theme="dark"] .page-home .lab-panel {
  border-color: rgba(244, 240, 255, 0.14);
  background: #1d1a29;
  color: var(--purple-ink);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(244, 240, 255, 0.03);
}

:root[data-theme="dark"] .page-home .theme-toggle-icon {
  border-color: var(--purple-ink);
  background: linear-gradient(90deg, var(--purple-ink) 50%, transparent 50%);
}

/* ================================
   MOBILE
================================ */

@media (max-width: 760px) {
  :root[data-theme="dark"] .page-home {
    background:
      radial-gradient(
        circle at 16% 10%,
        rgba(169, 140, 255, 0.13),
        transparent 30%
      ),
      radial-gradient(
        circle at 88% 22%,
        rgba(143, 168, 255, 0.09),
        transparent 28%
      ),
      linear-gradient(rgba(244, 240, 255, 0.026) 1px, transparent 1px) 0 0 /
        58px 58px,
      linear-gradient(90deg, rgba(244, 240, 255, 0.026) 1px, transparent 1px) 0
        0 / 58px 58px,
      #13111c !important;
  }

  :root[data-theme="dark"] .page-home .intro-card:hover,
  :root[data-theme="dark"] .page-home .portfolio-card:hover,
  :root[data-theme="dark"] .page-home .service-card:hover,
  :root[data-theme="dark"] .page-home .feature-links a:hover,
  :root[data-theme="dark"] .page-home .software-card:hover,
  :root[data-theme="dark"] .page-home .carousel-card:hover {
    transform: translateY(-3px);
  }
}

/* ================================
   DARK FOOTER OPACITY FINAL TWEAK
================================ */

/* Smaller / softer Flow Sync watermark */
:root[data-theme="dark"] .page-home .footer-brand {
  color: rgba(244, 240, 255, 0.035) !important;
}

/* Softer copyright bottom-right */
:root[data-theme="dark"] .page-home .footer-bottom p,
:root[data-theme="dark"] .page-home .copyright {
  color: rgba(244, 240, 255, 0.46) !important;
}

/* Phone view also softer */
@media (max-width: 760px) {
  :root[data-theme="dark"] .page-home .footer-brand {
    color: rgba(244, 240, 255, 0.032) !important;
  }

  :root[data-theme="dark"] .page-home .footer-bottom p,
  :root[data-theme="dark"] .page-home .copyright {
    color: rgba(244, 240, 255, 0.44) !important;
  }
}

/* ==================================================
   FINAL: navbar toggle inside nav
   Only for automation, local-seo, web-dev, networking
================================================== */

.page-automation {
  --service-nav-accent: #a98cff;
  --service-nav-accent-soft: rgba(169, 140, 255, 0.36);
}

.page-seo {
  --service-nav-accent: #76bdff;
  --service-nav-accent-soft: rgba(118, 189, 255, 0.36);
}

.page-web {
  --service-nav-accent: #8df5b5;
  --service-nav-accent-soft: rgba(141, 245, 181, 0.34);
}

.page-cyber {
  --service-nav-accent: #c9a86a;
  --service-nav-accent-soft: rgba(201, 168, 106, 0.34);
}

/* Desktop / laptop navbar layout */
.automation-service-nav,
.local-seo-nav,
.web-dev-nav,
.cyber-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 12px 14px !important;
}

.automation-service-brand,
.local-service-brand,
.web-dev-brand,
.cyber-brand {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
}

.automation-service-nav nav,
.local-seo-nav nav,
.web-dev-nav nav,
.cyber-nav nav {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(16px, 2.2vw, 30px) !important;
  margin-left: auto !important;
  min-width: 0 !important;
}

.automation-service-nav nav a,
.local-seo-nav nav a,
.web-dev-nav nav a,
.cyber-nav nav a {
  white-space: nowrap !important;
}

/* Toggle becomes real navbar item */
.automation-service-nav .page-theme-toggle,
.local-seo-nav .page-theme-toggle,
.web-dev-nav .page-theme-toggle,
.cyber-nav .page-theme-toggle {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;

  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;

  margin: 0 0 0 8px !important;
  border: 1.5px solid rgba(245, 243, 229, 0.46) !important;
  border-radius: 50% !important;
  background: rgba(245, 243, 229, 0.08) !important;
  box-shadow:
    0 0 0 7px rgba(245, 243, 229, 0.06),
    6px 6px 0 rgba(118, 189, 255, 0.18) !important;

  transform: none !important;
}

.automation-service-nav .page-theme-toggle::before,
.local-seo-nav .page-theme-toggle::before,
.web-dev-nav .page-theme-toggle::before,
.cyber-nav .page-theme-toggle::before {
  display: none !important;
  content: none !important;
}

.automation-service-nav .page-theme-toggle:hover,
.local-seo-nav .page-theme-toggle:hover,
.web-dev-nav .page-theme-toggle:hover,
.cyber-nav .page-theme-toggle:hover {
  box-shadow:
    0 0 0 7px var(--service-nav-accent-soft),
    6px 6px 0 rgba(118, 189, 255, 0.22) !important;
  transform: translateY(-1px) !important;
}

.automation-service-nav nav a::after,
.local-seo-nav nav a::after,
.web-dev-nav nav a::after,
.cyber-nav nav a::after {
  background: var(--service-nav-accent-soft) !important;
}

/* Light/dark logo correction for these service navs */
:root:not([data-theme="dark"]) .automation-service-brand img,
:root:not([data-theme="dark"]) .local-service-brand img,
:root:not([data-theme="dark"]) .web-dev-brand img,
:root:not([data-theme="dark"]) .cyber-brand img {
  content: url("../assets/icon/brand-logo.webp") !important;
  background: transparent !important;
  object-fit: contain !important;
}

:root[data-theme="dark"] .automation-service-brand img,
:root[data-theme="dark"] .local-service-brand img,
:root[data-theme="dark"] .web-dev-brand img,
:root[data-theme="dark"] .cyber-brand img {
  content: url("../assets/icon/brand-logodarkbg.png") !important;
  background: #151515 !important;
  object-fit: cover !important;
}

/* Service page logo dark mode fix */
:root:not([data-theme="dark"]) .service-hub-brand img {
  content: url("../assets/icon/brand-logo.webp") !important;
  background: transparent !important;
  object-fit: contain !important;
}

:root[data-theme="dark"] .service-hub-brand img {
  content: url("../assets/icon/brand-logodarkbg.png") !important;
  background: #151515 !important;
  object-fit: cover !important;
}

.service-hub-brand:hover img,
.service-hub-brand:focus-visible img,
.automation-service-brand:hover img,
.automation-service-brand:focus-visible img,
.local-service-brand:hover img,
.local-service-brand:focus-visible img,
.web-dev-brand:hover img,
.web-dev-brand:focus-visible img,
.cyber-brand:hover img,
.cyber-brand:focus-visible img {
  box-shadow: 4px 4px 0 var(--service-nav-accent-soft) !important;
  transform: rotate(-4deg) translateY(-1px) !important;
}

/* Phone view: no logo, links left, toggle fixed at far right inside navbar */
@media (max-width: 560px) {
  .automation-service-nav,
  .local-seo-nav,
  .web-dev-nav,
  .cyber-nav {
    top: 8px !important;
    width: calc(100% - 20px) !important;
    gap: 10px !important;
    padding: 8px 10px !important;
  }

  .automation-service-brand,
  .local-service-brand,
  .web-dev-brand,
  .cyber-brand {
    display: none !important;
  }

  .automation-service-nav nav,
  .local-seo-nav nav,
  .web-dev-nav nav {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    margin-left: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .cyber-nav nav {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 30px !important;
    margin-left: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .automation-service-nav nav::-webkit-scrollbar,
  .local-seo-nav nav::-webkit-scrollbar,
  .web-dev-nav nav::-webkit-scrollbar,
  .cyber-nav nav::-webkit-scrollbar {
    display: none !important;
  }

  .automation-service-nav nav a,
  .local-seo-nav nav a,
  .web-dev-nav nav a,
  .cyber-nav nav a {
    flex: 0 0 auto !important;
    padding: 5px 0 !important;
    font-size: 0.72rem !important;
  }

  .automation-service-nav .page-theme-toggle,
  .local-seo-nav .page-theme-toggle,
  .web-dev-nav .page-theme-toggle,
  .cyber-nav .page-theme-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin-left: auto !important;
  }

  .automation-service-nav .page-theme-toggle .theme-toggle-icon,
  .local-seo-nav .page-theme-toggle .theme-toggle-icon,
  .web-dev-nav .page-theme-toggle .theme-toggle-icon,
  .cyber-nav .page-theme-toggle .theme-toggle-icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ==================================================
   FINAL: add projects.html to same navbar-toggle system
================================================== */

.page-projects {
  --service-nav-accent: #60d8ff;
  --service-nav-accent-soft: rgba(96, 216, 255, 0.28);
}

/* Project navbar desktop */
.project-page-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 12px 14px !important;
}

.project-page-brand {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
}

.project-page-nav nav {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(16px, 2.2vw, 30px) !important;
  margin-left: auto !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

.project-page-nav nav a {
  white-space: nowrap !important;
}

/* Project toggle inside navbar */
.project-page-nav .page-theme-toggle {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;

  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;

  margin: 0 0 0 8px !important;
  border-radius: 50% !important;
  transform: none !important;
}

.project-page-nav .page-theme-toggle::before {
  display: none !important;
  content: none !important;
}

.project-page-nav .page-theme-toggle:hover,
.project-page-nav .page-theme-toggle:focus-visible {
  box-shadow: 4px 4px 0 rgba(96, 216, 255, 0.22) !important;
  transform: translateY(-1px) rotate(-4deg) !important;
}

/* Phone view: no logo, links left, toggle right */
@media (max-width: 560px) {
  .project-page-nav {
    top: 8px !important;
    width: calc(100% - 20px) !important;
    gap: 10px !important;
    padding: 8px 10px !important;
  }

  .project-page-brand {
    display: none !important;
  }

  .project-page-nav nav {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 50px !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .project-page-nav nav::-webkit-scrollbar {
    display: none !important;
  }

  .project-page-nav nav a {
    flex: 0 0 auto !important;
    padding: 5px 0 !important;
    font-size: 0.72rem !important;
  }

  .project-page-nav .page-theme-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    margin-left: auto !important;
    padding: 0 !important;
  }

  .project-page-nav .page-theme-toggle .theme-toggle-icon {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Shared first name / last name row for service forms */
.service-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .service-name-row {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   FINAL: actually smaller service cards on mobile
================================================== */

@media (max-width: 680px) {
  .service-hub-grid {
    gap: 12px !important;
  }

  .service-hub-card {
    min-height: 215px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .service-hub-icon {
    width: 42px !important;
    height: 42px !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    border-radius: 13px !important;
  }

  .service-hub-icon svg {
    width: 21px !important;
    height: 21px !important;
  }

  .service-hub-number {
    font-size: 0.78rem !important;
  }

  .service-hub-card h2 {
    margin: 0 0 8px !important;
    font-size: clamp(1.75rem, 9vw, 2.35rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
  }

  .service-hub-card p {
    margin: 0 0 14px !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }

  .service-hub-card-link {
    font-size: 0.9rem !important;
  }
}

/* ==================================================
   FINAL: compact contact page on phone
   Makes links section appear sooner
================================================== */

@media (max-width: 560px) {
  .contact-shell {
    width: calc(100% - 18px) !important;
    padding-top: 12px !important;
    padding-bottom: 28px !important;
    gap: 14px !important;
  }

  .contact-left-card,
  .contact-right-card {
    border-radius: 24px !important;
  }

  .contact-left-card {
    gap: 14px !important;
    padding: 18px !important;
  }

  .contact-kicker {
    margin-bottom: 12px !important;
    padding: 6px 10px !important;
    font-size: 0.68rem !important;
  }

  .contact-page h1 {
    font-size: clamp(2.65rem, 12vw, 3.55rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.075em !important;
  }

  .contact-lead {
    margin-top: 14px !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  /* Keep Email + Time side by side on phone */
  .contact-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .contact-quick-card {
    min-height: 116px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .contact-quick-icon {
    width: 30px !important;
    height: 30px !important;
    margin-bottom: 10px !important;
    border-radius: 10px !important;
  }

  .contact-quick-card strong {
    font-size: 0.9rem !important;
  }

  .contact-quick-card small {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
  }

  .contact-time-view {
    min-height: 28px !important;
    margin-top: 4px !important;
  }

  .contact-time-value {
    font-size: 1.05rem !important;
  }

  .contact-call-button {
    min-height: 44px !important;
    padding: 9px 14px !important;
    font-size: 0.95rem !important;
  }

  .contact-call-button span {
    width: 25px !important;
    height: 25px !important;
    border-radius: 9px !important;
    font-size: 0.68rem !important;
  }

  .contact-message-box {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .contact-message-box h2 {
    font-size: 1.35rem !important;
    margin-bottom: 6px !important;
  }

  .contact-message-box p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }

  .contact-form {
    gap: 10px !important;
  }

  .contact-form input {
    min-height: 48px !important;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
    border-radius: 18px !important;
  }

  .contact-form textarea {
    min-height: 110px !important;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
    border-radius: 18px !important;
  }

  .contact-form button {
    min-height: 48px !important;
    font-size: 0.96rem !important;
  }

  .contact-right-card {
    padding-top: 22px !important;
  }
}

/* ==================================================
   Contact page only: move quick message to bottom on phone
   Does not affect any other page
================================================== */

@media (max-width: 560px) {
  .page-contact .contact-message-box {
    width: 100% !important;
    margin-top: 14px !important;
  }

  .page-contact .contact-right-card {
    order: 2 !important;
  }

  .page-contact .contact-message-box {
    order: 3 !important;
  }
}

/* ==================================================
   FIX: contact mobile nav toggle to far right
   Contact page only
================================================== */

@media (max-width: 780px) {
  .page-contact .contact-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 12px 18px !important;
  }

  .page-contact .contact-brand {
    display: none !important;
  }

  .page-contact .contact-nav nav {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 34px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    scrollbar-width: none !important;
  }

  .page-contact .contact-nav nav::-webkit-scrollbar {
    display: none !important;
  }

  .page-contact .contact-nav nav a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .page-contact .contact-theme-toggle {
    position: static !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* service page header title */
.service-hub-mini-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem) !important;
  line-height: 0.95 !important;
}

@media (max-width: 560px) {
  .service-hub-mini-hero h1 {
    font-size: 2.45rem !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
  }
}

.page-home .reveal-item {
  transition:
    opacity 280ms ease var(--reveal-delay, 0ms),
    transform 280ms ease var(--reveal-delay, 0ms) !important;
}

/* Compact pricing previews on the three service pages only. */
.service-price-preview > article {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-price-preview > article.is-featured {
  position: relative;
  z-index: 2;
  transform: translateY(-8px) scale(1.035);
}

.service-price-preview .price-preview-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--nav-accent, currentColor) 14%,
    transparent
  );
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.service-price-preview .automation-price small,
.service-price-preview .local-price small,
.service-price-preview strong small {
  display: block;
  margin-top: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.72;
}

.service-price-preview > article > a {
  margin-top: auto;
}

@media (max-width: 680px) {
  .service-price-preview {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    overflow-x: auto;
    overflow-y: visible;
    padding: 18px 18px 22px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .service-price-preview::-webkit-scrollbar {
    display: none;
  }

  .service-price-preview > article {
    flex: 0 0 clamp(142px, 43vw, 190px);
    min-height: 220px;
    padding: 16px !important;
    scroll-snap-align: center;
    transform: scale(0.92);
  }

  .service-price-preview > article:not(:first-child) {
    margin-left: -14px;
  }

  .service-price-preview > article.is-featured {
    flex-basis: clamp(160px, 50vw, 218px);
    transform: scale(1.04);
  }

  .service-price-preview h3 {
    font-size: clamp(1rem, 5.2vw, 1.34rem) !important;
    line-height: 1.02;
  }

  .service-price-preview p,
  .service-price-preview li {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  .service-price-preview .automation-price,
  .service-price-preview .local-price,
  .service-price-preview strong {
    font-size: clamp(1.22rem, 7vw, 1.8rem) !important;
    line-height: 1.02;
  }

  .service-price-preview > article > a {
    min-height: 36px !important;
    padding: 7px 11px !important;
    font-size: 0.78rem !important;
  }
}

/* Web Dev nav: match Automation toggle placement on phone/tablet */
@media (max-width: 980px) {
  .web-dev-nav {
    flex-direction: row !important;
    align-items: center !important;
  }
}

@media (max-width: 560px) {
  .web-dev-nav {
    flex-direction: row !important;
    align-items: center !important;
    min-height: 62px !important;
  }

  .web-dev-nav nav {
    align-items: center !important;
  }

  .web-dev-nav .page-theme-toggle {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Clean final vault hero: smaller title + right media slot */
@keyframes vaultMediaSlotFloat {
  0%,
  100% {
    transform: translate3d(0, -50%, 0) rotate(2deg);
  }

  50% {
    transform: translate3d(-10px, calc(-50% + 12px), 0) rotate(-1deg);
  }
}

@keyframes vaultMediaDotFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(10px, -10px, 0) scale(1.06);
  }
}

@media (min-width: 561px) {
  .page-vault .vault-hero {
    min-height: clamp(430px, 34vw, 540px) !important;
    padding-right: clamp(30px, 33vw, 470px) !important;
  }

  .page-vault .vault-hero h1 {
    max-width: 9.2ch !important;
    font-size: clamp(2.85rem, 5.6vw, 5.25rem) !important;
    line-height: 0.86 !important;
  }

  .page-vault .vault-hero p {
    max-width: 35ch !important;
  }

  .page-vault .vault-hero::before {
    top: 50% !important;
    right: clamp(28px, 6vw, 92px) !important;
    width: clamp(230px, 24vw, 360px) !important;
    height: clamp(220px, 25vw, 340px) !important;
    border: 1.5px solid rgba(17, 17, 17, 0.14) !important;
    border-radius: 30px !important;
    background:
      linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px) 0 0 / 28px
        28px,
      linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px) 0
        0 / 28px 28px,
      radial-gradient(
        circle at 78% 16%,
        rgba(255, 255, 255, 0.76),
        transparent 18%
      ),
      linear-gradient(
        135deg,
        rgba(141, 245, 181, 0.28),
        rgba(118, 189, 255, 0.16) 52%,
        rgba(229, 165, 233, 0.2)
      ) !important;
    box-shadow:
      -18px 22px 0 rgba(141, 245, 181, 0.18),
      0 24px 54px rgba(17, 17, 17, 0.12) !important;
    opacity: 0.9 !important;
    animation: vaultMediaSlotFloat 8s ease-in-out infinite !important;
  }

  .page-vault .vault-hero::after {
    position: absolute !important;
    right: clamp(54px, 9vw, 146px) !important;
    bottom: clamp(58px, 6vw, 94px) !important;
    display: block !important;
    width: clamp(82px, 8vw, 124px) !important;
    height: clamp(82px, 8vw, 124px) !important;
    border: 1.5px solid rgba(17, 17, 17, 0.12) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle, rgba(17, 17, 17, 0.16) 0 2px, transparent 3px) 0
        0 / 15px 15px,
      rgba(255, 255, 255, 0.18) !important;
    content: "" !important;
    opacity: 0.64 !important;
    animation: vaultMediaDotFloat 7s ease-in-out infinite !important;
  }
}

@media (max-width: 900px) and (min-width: 561px) {
  .page-vault .vault-hero {
    min-height: 430px !important;
    padding-right: clamp(24px, 26vw, 270px) !important;
  }

  .page-vault .vault-hero h1 {
    font-size: clamp(2.75rem, 7.2vw, 4.4rem) !important;
  }

  .page-vault .vault-hero::before {
    right: -38px !important;
    width: 230px !important;
    height: 250px !important;
    opacity: 0.32 !important;
  }

  .page-vault .vault-hero::after {
    right: 26px !important;
    bottom: 62px !important;
    opacity: 0.24 !important;
  }
}

@media (max-width: 560px) {
  .page-vault .vault-hero {
    min-height: 390px !important;
  }

  .page-vault .vault-hero h1 {
    max-width: 8.8ch !important;
    font-size: clamp(2.55rem, 12vw, 3.55rem) !important;
  }

  .page-vault .vault-hero p {
    max-width: 28ch !important;
  }

  .page-vault .vault-hero::before {
    right: -76px !important;
    top: 54% !important;
    width: 150px !important;
    height: 178px !important;
    opacity: 0.18 !important;
  }

  .page-vault .vault-hero::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-vault .vault-hero::before,
  .page-vault .vault-hero::after {
    animation: none !important;
  }
}

/* Motion polish for service hero + mobile title */
@keyframes serviceHeroPanelFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(-9px, 10px, 0) rotate(-4deg);
  }
}

@keyframes serviceHeroDotFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(8px, -9px, 0) scale(1.08);
  }
}

@keyframes creativePhoneWave {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  42% {
    transform: translateY(-9px) rotate(-2deg);
  }

  68% {
    transform: translateY(4px) rotate(1.5deg);
  }
}

@media (min-width: 561px) {
  .page-services .service-hub-mini-hero {
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(17, 17, 17, 0.14);
    border-radius: 30px;
    background:
      linear-gradient(rgba(17, 17, 17, 0.042) 1px, transparent 1px) 0 0 / 34px
        34px,
      linear-gradient(90deg, rgba(17, 17, 17, 0.042) 1px, transparent 1px) 0 0 /
        34px 34px,
      radial-gradient(
        circle at 86% 22%,
        rgba(229, 165, 233, 0.3),
        transparent 28%
      ),
      linear-gradient(145deg, #fff9ed, rgba(141, 245, 181, 0.16));
    box-shadow:
      0 22px 58px rgba(17, 17, 17, 0.1),
      10px 10px 0 rgba(118, 189, 255, 0.1);
    padding: clamp(30px, 5vw, 52px);
  }

  .page-services .service-hub-mini-hero::before,
  .page-services .service-hub-mini-hero::after {
    position: absolute;
    pointer-events: none;
    content: "";
  }

  .page-services .service-hub-mini-hero::before {
    right: clamp(26px, 6vw, 78px);
    top: clamp(32px, 6vw, 74px);
    width: clamp(132px, 17vw, 220px);
    height: clamp(164px, 21vw, 274px);
    border: 1.5px solid rgba(17, 17, 17, 0.12);
    border-radius: 30px;
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.08), transparent 32px) 0 0 /
        100% 42px,
      rgba(255, 255, 255, 0.38);
    box-shadow: -22px 26px 0 rgba(141, 245, 181, 0.18);
    animation: serviceHeroPanelFloat 8.4s ease-in-out infinite;
  }

  .page-services .service-hub-mini-hero::after {
    right: clamp(52px, 10vw, 132px);
    bottom: clamp(26px, 5vw, 58px);
    width: clamp(72px, 8vw, 110px);
    height: clamp(72px, 8vw, 110px);
    border: 1.5px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(17, 17, 17, 0.18) 0 2px, transparent 3px) 0
        0 / 16px 16px,
      rgba(118, 189, 255, 0.12);
    animation: serviceHeroDotFloat 7s ease-in-out infinite;
  }

  .page-services .service-hub-mini-hero > * {
    position: relative;
    z-index: 1;
  }

  :root[data-theme="dark"] .page-services .service-hub-mini-hero {
    border-color: rgba(245, 243, 229, 0.14);
    background:
      linear-gradient(rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 / 34px
        34px,
      linear-gradient(90deg, rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0
        0 / 34px 34px,
      radial-gradient(
        circle at 86% 22%,
        rgba(229, 165, 233, 0.15),
        transparent 28%
      ),
      linear-gradient(145deg, #151515, rgba(141, 245, 181, 0.07));
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.3),
      10px 10px 0 rgba(245, 243, 229, 0.045);
  }
}

@media (max-width: 560px) {
  .page-services .service-hub-mini-hero::before {
    animation: serviceHeroPanelFloat 8.4s ease-in-out infinite;
  }

  .page-services .service-hub-mini-hero::after {
    animation: serviceHeroDotFloat 7s ease-in-out infinite;
  }
}

/* Disable continuous mobile title animation so the creative title only moves on user interaction */
@media (prefers-reduced-motion: reduce) {
  .page-services .service-hub-mini-hero::before,
  .page-services .service-hub-mini-hero::after,
  .creative-title-letter {
    animation: none !important;
  }
}

/* Final clean hero composition */
@keyframes quietHeroCardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(6deg);
  }

  50% {
    transform: translate3d(-8px, 12px, 0) rotate(4deg);
  }
}

@media (min-width: 561px) {
  .page-vault .vault-hero {
    min-height: clamp(520px, 42vw, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-vault .vault-hero::before {
    right: clamp(44px, 7vw, 112px);
    top: clamp(64px, 7vw, 96px);
    z-index: 0;
    opacity: 0.52;
    animation: quietHeroCardFloat 8.6s ease-in-out infinite;
  }

  .page-vault .vault-hero h1 {
    max-width: min(8.2ch, 62%);
  }

  .page-vault .vault-hero p {
    max-width: min(36ch, 54%);
  }

  .page-services .service-hub-mini-hero {
    min-height: clamp(360px, 32vw, 470px);
  }

  .page-services .service-hub-mini-hero::before {
    right: clamp(46px, 7vw, 120px);
    top: clamp(48px, 7vw, 86px);
    opacity: 0.5;
  }

  .page-services .service-hub-mini-hero::after {
    opacity: 0.42;
  }

  .page-services .service-hub-mini-hero h1 {
    max-width: min(8.8ch, 62%);
  }

  .page-services .service-hub-mini-hero p {
    max-width: min(34ch, 50%);
  }
}

@media (max-width: 900px) and (min-width: 561px) {
  .page-vault .vault-hero h1,
  .page-services .service-hub-mini-hero h1 {
    max-width: 9ch;
  }

  .page-vault .vault-hero p,
  .page-services .service-hub-mini-hero p {
    max-width: 34ch;
  }

  .page-vault .vault-hero::before,
  .page-services .service-hub-mini-hero::before {
    right: -18px;
    opacity: 0.24;
  }
}

@media (max-width: 560px) {
  .page-vault .vault-hero::before {
    opacity: 0.22;
    animation: quietHeroCardFloat 8.6s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-vault .vault-hero::before {
    animation: none !important;
  }
}

/* ==================================================
   SERVICE / VAULT / CONTACT HERO + CARD POLISH
================================================== */

.page-services .service-hub-grid {
  align-items: stretch;
}

.page-services .service-hub-card {
  isolation: isolate;
  border-color: rgba(17, 17, 17, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, var(--service-card), var(--service-card-soft));
}

.page-services .service-hub-card::after {
  position: absolute;
  top: 74px;
  right: 20px;
  width: 54px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(118, 189, 255, 0.72),
    rgba(229, 165, 233, 0.64)
  );
  content: "";
  opacity: 0.72;
  transform: rotate(-7deg);
}

.page-services .service-hub-card:hover {
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.14),
    8px 8px 0 rgba(118, 189, 255, 0.12);
}

.page-services .service-hub-icon {
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.06);
}

.page-services .service-hub-card-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  border: 1.5px solid var(--service-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--service-ink);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 950;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.page-services .service-hub-card-link::after {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.page-services .service-hub-card:hover .service-hub-card-link {
  border-color: var(--service-strong-line);
  background: rgba(141, 245, 181, 0.16);
  transform: translateX(4px);
}

@media (min-width: 981px) {
  .page-services .service-hub-card:first-child {
    grid-column: span 2;
  }

  .page-services .service-hub-card:first-child h2 {
    max-width: 11ch;
    font-size: clamp(2.4rem, 4.7vw, 4.2rem);
  }

  .page-services .service-hub-card:first-child p {
    max-width: 42ch;
  }
}

@media (min-width: 561px) {
  .page-vault .vault-hero {
    position: relative;
    width: 100%;
    max-width: none;
    overflow: hidden;
    border: 1.5px solid rgba(17, 17, 17, 0.14);
    border-radius: 30px;
    background:
      linear-gradient(rgba(17, 17, 17, 0.045) 1px, transparent 1px) 0 0 / 34px
        34px,
      linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px) 0 0 /
        34px 34px,
      radial-gradient(
        circle at 88% 20%,
        rgba(229, 165, 233, 0.32),
        transparent 28%
      ),
      linear-gradient(145deg, #fbf6e8, rgba(141, 245, 181, 0.16));
    box-shadow:
      0 22px 58px rgba(17, 17, 17, 0.1),
      10px 10px 0 rgba(17, 17, 17, 0.055);
    padding: clamp(32px, 6vw, 58px);
  }

  .page-vault .vault-hero::before {
    position: absolute;
    right: clamp(24px, 5vw, 70px);
    top: clamp(32px, 6vw, 68px);
    width: clamp(140px, 20vw, 240px);
    height: clamp(180px, 24vw, 300px);
    border: 1.5px solid rgba(17, 17, 17, 0.12);
    border-radius: 28px;
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.1), transparent 32px) 0 0 / 100%
        42px,
      rgba(255, 255, 255, 0.4);
    box-shadow: -24px 28px 0 rgba(141, 245, 181, 0.18);
    content: "";
    transform: rotate(6deg);
  }

  .page-vault .vault-hero > * {
    position: relative;
    z-index: 1;
  }

  .page-contact .contact-left-card {
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(145deg, rgba(125, 162, 255, 0.18), transparent 34%),
      radial-gradient(
        circle at 92% 16%,
        rgba(246, 205, 110, 0.16),
        transparent 28%
      ),
      var(--contact-card);
  }

  .page-contact .contact-left-card::before {
    position: absolute;
    right: clamp(-52px, -4vw, -18px);
    top: clamp(54px, 8vw, 96px);
    width: clamp(150px, 18vw, 230px);
    height: clamp(150px, 18vw, 230px);
    border: 1px solid var(--contact-line);
    border-radius: 34px;
    background:
      linear-gradient(rgba(245, 243, 229, 0.09) 1px, transparent 1px) 0 0 / 26px
        26px,
      linear-gradient(90deg, rgba(245, 243, 229, 0.09) 1px, transparent 1px) 0
        0 / 26px 26px,
      rgba(125, 162, 255, 0.12);
    content: "";
    transform: rotate(12deg);
  }

  .page-contact .contact-left-card > * {
    position: relative;
    z-index: 1;
  }

  :root[data-theme="dark"] .page-vault .vault-hero {
    border-color: rgba(245, 243, 229, 0.14);
    background:
      linear-gradient(rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0 0 / 34px
        34px,
      linear-gradient(90deg, rgba(245, 243, 229, 0.04) 1px, transparent 1px) 0
        0 / 34px 34px,
      radial-gradient(
        circle at 88% 20%,
        rgba(229, 165, 233, 0.14),
        transparent 28%
      ),
      linear-gradient(145deg, #151515, rgba(141, 245, 181, 0.07));
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.28),
      10px 10px 0 rgba(245, 243, 229, 0.045);
  }
}

@media (max-width: 980px) and (min-width: 681px) {
  .page-services .service-hub-card:first-child {
    grid-column: span 2;
  }

  .page-services .service-hub-card {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .page-services .service-hub-card:first-child {
    grid-column: auto;
  }

  .page-services .service-hub-card::after {
    top: 52px;
    right: 16px;
  }
}

/* ==================================================
   PHONE HERO REFRESH: services, vault, contact
================================================== */

@media (max-width: 560px) {
  .page-services .service-hub-shell {
    width: min(100% - 18px, var(--service-width)) !important;
    padding-top: 18px !important;
  }

  .page-services .service-hub-mini-hero {
    position: relative !important;
    display: block !important;
    min-height: 330px !important;
    overflow: hidden !important;
    border: 1.5px solid rgba(17, 17, 17, 0.16) !important;
    border-radius: 28px !important;
    background:
      linear-gradient(135deg, rgba(118, 189, 255, 0.22), transparent 34%),
      radial-gradient(
        circle at 86% 18%,
        rgba(229, 165, 233, 0.48),
        transparent 32%
      ),
      linear-gradient(150deg, #fff9ed 0 58%, rgba(141, 245, 181, 0.3) 58% 100%) !important;
    box-shadow:
      0 20px 54px rgba(17, 17, 17, 0.12),
      8px 8px 0 rgba(17, 17, 17, 0.08) !important;
    padding: 22px !important;
  }

  .page-services .service-hub-mini-hero::before,
  .page-services .service-hub-mini-hero::after {
    position: absolute;
    pointer-events: none;
    content: "";
  }

  .page-services .service-hub-mini-hero::before {
    right: -34px;
    bottom: -46px;
    width: 172px;
    height: 172px;
    border: 1.5px solid rgba(17, 17, 17, 0.12);
    border-radius: 36px;
    background:
      linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px) 0 0 / 24px
        24px,
      linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px) 0 0 /
        24px 24px,
      rgba(255, 255, 255, 0.42);
    transform: rotate(-10deg);
  }

  .page-services .service-hub-mini-hero::after {
    right: 24px;
    bottom: 24px;
    width: 76px;
    height: 76px;
    border: 1.5px solid rgba(17, 17, 17, 0.14);
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(17, 17, 17, 0.14) 0 2px, transparent 3px) 0
        0 / 14px 14px,
      rgba(245, 243, 229, 0.66);
  }

  .page-services .service-hub-kicker {
    position: relative !important;
    z-index: 1 !important;
    border-color: rgba(17, 17, 17, 0.16) !important;
    background: rgba(17, 17, 17, 0.9) !important;
    color: #fff9ed !important;
  }

  .page-services .service-hub-mini-hero h1 {
    position: relative !important;
    z-index: 1 !important;
    max-width: 8.6ch !important;
    margin-top: 48px !important;
    font-size: clamp(3.35rem, 17vw, 5rem) !important;
    line-height: 0.82 !important;
    letter-spacing: -0.08em !important;
  }

  .page-services .service-hub-mini-hero p {
    position: relative !important;
    z-index: 1 !important;
    max-width: 26ch !important;
    margin-top: 16px !important;
    color: rgba(17, 17, 17, 0.72) !important;
    font-size: 0.98rem !important;
    line-height: 1.44 !important;
  }

  :root[data-theme="dark"] .page-services .service-hub-mini-hero {
    border-color: rgba(245, 243, 229, 0.16) !important;
    background:
      linear-gradient(135deg, rgba(118, 189, 255, 0.18), transparent 34%),
      radial-gradient(
        circle at 86% 18%,
        rgba(229, 165, 233, 0.24),
        transparent 32%
      ),
      linear-gradient(150deg, #17131f 0 58%, rgba(141, 245, 181, 0.12) 58% 100%) !important;
    box-shadow:
      0 20px 54px rgba(0, 0, 0, 0.34),
      8px 8px 0 rgba(245, 243, 229, 0.06) !important;
  }

  :root[data-theme="dark"] .page-services .service-hub-mini-hero p {
    color: rgba(245, 243, 229, 0.72) !important;
  }

  .page-vault .vault-shell {
    width: min(100% - 18px, 1168px) !important;
    padding-top: 24px !important;
  }

  .page-vault .vault-hero {
    position: relative !important;
    min-height: 346px !important;
    overflow: hidden !important;
    margin-bottom: 26px !important;
    border: 1px solid rgba(17, 17, 17, 0.16) !important;
    border-radius: 30px !important;
    background:
      linear-gradient(rgba(17, 17, 17, 0.055) 1px, transparent 1px) 0 0 / 28px
        28px,
      linear-gradient(90deg, rgba(17, 17, 17, 0.055) 1px, transparent 1px) 0 0 /
        28px 28px,
      linear-gradient(145deg, rgba(229, 165, 233, 0.42), transparent 36%),
      #f8f2df !important;
    box-shadow:
      0 20px 48px rgba(17, 17, 17, 0.12),
      inset 0 -82px 0 rgba(118, 189, 255, 0.16) !important;
    padding: 22px !important;
  }

  .page-vault .vault-hero::before,
  .page-vault .vault-hero::after {
    position: absolute;
    pointer-events: none;
    content: "";
  }

  .page-vault .vault-hero::before {
    right: -26px;
    top: 24px;
    width: 150px;
    height: 206px;
    border: 1px solid rgba(17, 17, 17, 0.13);
    border-radius: 22px;
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.12), transparent 24px) 0 0 /
        100% 32px,
      rgba(255, 255, 255, 0.48);
    box-shadow: -18px 22px 0 rgba(141, 245, 181, 0.22);
    transform: rotate(7deg);
  }

  .page-vault .vault-hero::after {
    display: none !important;
  }

  .page-vault .vault-kicker {
    position: relative !important;
    z-index: 1 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(10px) !important;
  }

  .page-vault .vault-hero h1 {
    position: relative !important;
    z-index: 1 !important;
    max-width: 8.4ch !important;
    margin-top: 42px !important;
    font-size: clamp(3.25rem, 16vw, 4.95rem) !important;
    line-height: 0.84 !important;
    letter-spacing: -0.08em !important;
  }

  .page-vault .vault-hero p {
    position: relative !important;
    z-index: 1 !important;
    max-width: 25ch !important;
    margin-top: 16px !important;
    color: rgba(17, 17, 17, 0.68) !important;
    font-size: 0.96rem !important;
    line-height: 1.45 !important;
  }

  :root[data-theme="dark"] .page-vault .vault-hero {
    border-color: rgba(245, 243, 229, 0.14) !important;
    background:
      linear-gradient(rgba(245, 243, 229, 0.045) 1px, transparent 1px) 0 0 /
        28px 28px,
      linear-gradient(90deg, rgba(245, 243, 229, 0.045) 1px, transparent 1px) 0
        0 / 28px 28px,
      linear-gradient(145deg, rgba(229, 165, 233, 0.16), transparent 36%),
      #151515 !important;
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.34),
      inset 0 -82px 0 rgba(118, 189, 255, 0.08) !important;
  }

  :root[data-theme="dark"] .page-vault .vault-hero p {
    color: rgba(245, 243, 229, 0.72) !important;
  }

  .page-contact .contact-left-card {
    position: relative !important;
    min-height: 378px !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    background:
      linear-gradient(155deg, rgba(125, 162, 255, 0.28), transparent 32%),
      radial-gradient(
        circle at 84% 14%,
        rgba(246, 205, 110, 0.2),
        transparent 29%
      ),
      var(--contact-card) !important;
    box-shadow:
      0 22px 58px var(--contact-shadow),
      inset 0 -92px 0 rgba(125, 162, 255, 0.1) !important;
    padding: 20px !important;
  }

  .page-contact .contact-left-card::before,
  .page-contact .contact-left-card::after {
    position: absolute;
    pointer-events: none;
    content: "";
  }

  .page-contact .contact-left-card::before {
    right: -52px;
    top: 72px;
    width: 154px;
    height: 154px;
    border: 1px solid var(--contact-line);
    border-radius: 34px;
    background:
      linear-gradient(rgba(245, 243, 229, 0.12) 1px, transparent 1px) 0 0 / 22px
        22px,
      linear-gradient(90deg, rgba(245, 243, 229, 0.12) 1px, transparent 1px) 0
        0 / 22px 22px,
      rgba(125, 162, 255, 0.14);
    transform: rotate(12deg);
  }

  .page-contact .contact-left-card::after {
    left: 20px;
    right: 20px;
    bottom: 158px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--contact-line),
      transparent
    );
  }

  .page-contact .contact-left-card > div:first-child {
    position: relative !important;
    z-index: 1 !important;
    min-height: 214px !important;
  }

  .page-contact .contact-kicker {
    border-color: rgba(125, 162, 255, 0.34) !important;
    background: rgba(125, 162, 255, 0.14) !important;
  }

  .page-contact h1 {
    max-width: 8.2ch !important;
    margin-top: 34px !important;
    font-size: clamp(3.05rem, 15vw, 4.6rem) !important;
    line-height: 0.84 !important;
    letter-spacing: -0.08em !important;
  }

  .page-contact .contact-lead {
    max-width: 25ch !important;
    margin-top: 16px !important;
    font-size: 0.95rem !important;
    line-height: 1.48 !important;
  }

  .page-contact .contact-quick-grid {
    position: relative !important;
    z-index: 1 !important;
  }
}

/* Final smoothness + rendering polish */
html {
  scroll-padding-top: clamp(86px, 10vw, 132px);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.intro-card,
.portfolio-card,
.about-card,
.software-card,
.service-card,
.feature-links a,
.automation-hero,
.automation-proof-card,
.automation-process-line article,
.web-dev-hero,
.web-dev-card-grid article,
.local-seo-hero,
.local-feature-card,
.project-stage,
.contact-left-card,
.contact-right-card {
  backface-visibility: hidden;
}

.automation-proof-section,
.automation-story,
.automation-process,
.automation-carousel-section,
.web-dev-proof-split,
.web-dev-direction,
.web-visual-showcase,
.local-seo-split,
.local-section,
.local-contact-band,
.project-lab,
.timeline-section,
.service-site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* Web Dev nav: match Automation toggle placement on phone/tablet */
@media (max-width: 980px) {
  .web-dev-nav {
    flex-direction: row !important;
    align-items: center !important;
  }
}

@media (max-width: 560px) {
  .web-dev-nav {
    flex-direction: row !important;
    align-items: center !important;
    min-height: 62px !important;
  }

  .web-dev-nav nav {
    align-items: center !important;
  }

  .web-dev-nav .page-theme-toggle {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* =========================================================
   INDEX ONLY FINAL FIXES
   This is the index-only stylesheet. Link this file on index.html only.
   Theme support: only light/dark through html[data-theme].
========================================================= */

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* Keep index navbar like the original, with theme toggle inside the nav. */
.site-nav {
  grid-template-columns: auto 1fr auto;
}

.site-nav .nav-theme-toggle {
  display: grid;
  flex: 0 0 42px;
}

/* If the old landing top-right toggle still exists, hide it so index has only one theme toggle. */
.landing-theme-toggle {
  display: none !important;
}

/* Back to top button used by js/index.js and other pages. */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--line, #111);
  border-radius: 50%;
  background: color-mix(in srgb, var(--page-bg, #f5f3e5) 82%, white 18%);
  color: var(--ink, #101010);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.12);
  font-size: 1.12rem;
  font-weight: 950;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  background: #e5a5e9;
  transform: translateY(-2px);
}

html[data-theme="dark"] .back-top {
  border-color: rgba(255, 243, 220, 0.78);
  background: rgba(17, 21, 31, 0.86);
  color: #fff3dc;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.26);
}

/* Mobile/tablet nav: no logo in phone view, links left, toggle right. */
@media (max-width: 760px) {
  .site-nav {
    top: 10px;
    width: min(100% - 18px, 100%);
    gap: 8px;
    min-height: 54px;
    padding: 8px 9px;
    border-radius: 12px;
  }

  .site-nav-brand {
    display: none !important;
  }

  .site-nav nav {
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav nav a {
    flex: 0 0 auto;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .site-nav .nav-theme-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-left: auto;
  }

  .nav-radar {
    display: none;
  }
}

/* FINAL INDEX PATCH: speed, cursor, protection, no popup. */
.reveal-item,
.reveal-item.is-revealed {
  opacity: 1 !important;
  transform: none !important;
  transition-duration: 0ms !important;
  transition-delay: 0ms !important;
}
.lab-toast {
  display: none !important;
}
img,
[data-protected-photo],
.intro-photo-frame,
.portrait-frame,
.quote-photo-frame {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}
.site-nav > nav {
  justify-content: center !important;
}
.back-top {
  width: 54px !important;
  height: 54px !important;
  font-size: 0.9rem !important;
}
@media (max-width: 680px) {
  .site-nav-brand {
    display: none !important;
  }
  .site-nav > nav {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .site-nav > nav::-webkit-scrollbar {
    display: none;
  }
}

/* CORRECT_ZIP_PATCH: index fast load + protected blur + fixed original theme nav sizing */
.reveal-item,
.reveal-item.is-revealed {
  opacity: 1 !important;
  transform: none !important;
  transition-duration: 0ms !important;
  transition-delay: 0ms !important;
}
.lab-toast {
  display: none !important;
}
.is-protected-blur {
  animation: protected-blur 900ms ease both !important;
}
@keyframes protected-blur {
  0%,
  100% {
    filter: blur(0);
  }
  45% {
    filter: blur(8px) saturate(0.72);
  }
}
.site-nav > nav {
  justify-content: center !important;
}
.site-nav .nav-theme-toggle {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
}

/* FINAL image protection blur restored */
img,
[data-protected-photo],
.intro-photo-frame,
.portrait-frame,
.quote-photo-frame {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}
.is-protected-blur {
  animation: protectedBlur 900ms ease both !important;
}
@keyframes protectedBlur {
  0% {
    filter: none;
    transform: scale(1);
  }
  35% {
    filter: blur(7px) saturate(0.72);
    transform: scale(0.985);
  }
  100% {
    filter: none;
    transform: scale(1);
  }
}

/* REMOVE EXTRA SMALL CURSOR ON INDEX */
body.page-home .fs-cursor {
  display: none !important;
}

/* INDEX PHONE TOP GRADIENT SIZE FIX */
@media (max-width: 980px) {
  .page-home {
    --hero-gradient-height: 82px !important;
  }

  .page-home .top-gradient {
    margin-bottom: 22px !important;
  }
}

@media (max-width: 430px) {
  .page-home {
    --hero-gradient-height: 68px !important;
  }

  .page-home .top-gradient {
    margin-bottom: 18px !important;
  }
}

/* GLASS GLOW SWEEP ON TOP BLUE GRADIENT */
.top-gradient::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  z-index: 1;
  width: 48%;
  height: 140%;
  pointer-events: none;

  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 22%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.08) 68%,
    transparent 100%
  );

  filter: blur(10px);
  transform: skewX(-22deg);
  opacity: 0;
  animation: topGlassSweep 7s ease-in-out infinite;
}

@keyframes topGlassSweep {
  0% {
    left: -35%;
    opacity: 0.3;
  }

  10% {
    opacity: 0.55;
  }

  28% {
    opacity: 0.7;
  }

  45% {
    left: 108%;
    opacity: 0.55;
  }

  100% {
    left: 108%;
    opacity: 0.3;
  }
}

/* PORTRAIT IMAGE FIX - keep natural ratio, stop overlap/stretch */
.page-home .portrait-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: clamp(420px, 38vw, 520px) !important;
  overflow: visible !important;
}

.page-home .portrait-frame img {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  display: block !important;
  width: min(100%, 360px) !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 520px !important;

  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 16px !important;

  transform: translate(
      calc(var(--portrait-x) + var(--play-photo-x)),
      calc(var(--portrait-y) + var(--play-photo-y))
    )
    rotateX(var(--photo-tilt-x)) rotateY(var(--photo-tilt-y))
    scale(var(--portrait-scale)) !important;

  transform-origin: center center !important;
}

.page-home .section-divider {
  z-index: 0 !important;
}

@media (max-width: 980px) {
  .page-home .portrait-frame {
    min-height: clamp(360px, 62vw, 470px) !important;
  }

  .page-home .portrait-frame img {
    width: min(88%, 320px) !important;
    max-width: 320px !important;
    max-height: 470px !important;
  }
}

@media (max-width: 520px) {
  .page-home .portrait-frame {
    min-height: 360px !important;
  }

  .page-home .portrait-frame img {
    width: min(92%, 290px) !important;
    max-width: 290px !important;
    max-height: 390px !important;
  }
}

/* PHONE SAFE CREATIVE TITLE TAP FIX */
.creative-title-word {
  cursor: pointer;
  touch-action: manipulation;
}

.creative-title-letter {
  backface-visibility: hidden;
}

@media (hover: none) {
  .creative-title-word:hover .creative-title-letter {
    transform: translateY(calc(var(--elastic-y, 0) * 1px))
      rotate(calc(var(--elastic-rotate, 0) * 1deg)) !important;
  }

  .creative-title-letter {
    transition:
      transform 620ms cubic-bezier(0.18, 1.45, 0.32, 1),
      color 200ms ease !important;
  }
}

/* Hero-only cursor pixel trail */
.hero-cursor-trail-block {
  position: fixed;
  z-index: 99999;
  width: 30px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: heroCursorTrailPop 650ms ease-out forwards;
}

@keyframes heroCursorTrailPop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -90%) scale(0.65);
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hero-cursor-trail-block {
    display: none;
  }
}

/* === MAIN INDEX UNIQUE SECTION EFFECTS START === */

/* =========================================================
   HERO / FIRST SECTION
   Pixel block cursor trail
========================================================= */
.hero-pixel-fx {
  position: fixed;
  z-index: 99999;
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: heroPixelFx 680ms ease-out forwards;
}

@keyframes heroPixelFx {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -86%) scale(0.62);
  }
}

/* =========================================================
   ABOUT / SECOND SECTION
   Bone snake follower
========================================================= */
.about-good-snake-fx {
  --bone: rgba(255, 244, 223, 0.96);
  --bone-soft: rgba(255, 235, 198, 0.82);
  --bone-edge: rgba(123, 96, 62, 0.46);
  --bone-cut: rgba(30, 24, 20, 0.28);
  --bone-eye: #17131f;

  position: fixed;
  left: 0;
  top: 0;
  z-index: 100030;
  width: calc(24px - (var(--snake-i) * 0.52px));
  height: calc(15px - (var(--snake-i) * 0.23px));
  min-width: 8px;
  min-height: 5px;
  border-radius: 999px;
  pointer-events: none;
  transform-origin: 50% 50%;
  transition: opacity 120ms ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint;

  background:
    radial-gradient(
      circle at 50% 50%,
      var(--bone) 0 2.8px,
      var(--bone-edge) 3px 3.6px,
      transparent 3.8px
    ),
    linear-gradient(
      90deg,
      transparent 0 37%,
      var(--bone) 38% 62%,
      transparent 63%
    ),
    radial-gradient(
      ellipse at 28% 50%,
      var(--bone-soft) 0 2.1px,
      transparent 2.4px
    ),
    radial-gradient(
      ellipse at 72% 50%,
      var(--bone-soft) 0 2.1px,
      transparent 2.4px
    );
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.about-good-snake-fx::before,
.about-good-snake-fx::after {
  content: "";
  position: absolute;
  left: 50%;
  width: calc(17px - (var(--snake-i) * 0.28px));
  height: calc(9px - (var(--snake-i) * 0.12px));
  min-width: 5px;
  min-height: 3px;
  border-radius: 999px;
  opacity: calc(0.9 - (var(--snake-i) * 0.018));
}

.about-good-snake-fx::before {
  top: 47%;
  border-top: 1.4px solid var(--bone);
  border-left: 1px solid transparent;
  transform: translate(-50%, -85%) rotate(-15deg);
}

.about-good-snake-fx::after {
  top: 53%;
  border-bottom: 1.4px solid var(--bone);
  border-left: 1px solid transparent;
  transform: translate(-50%, -15%) rotate(15deg);
}

/* skull head */
.about-good-snake-fx.about-good-snake-head {
  z-index: 100060 !important;
  width: 31px;
  height: 18px;
  min-width: 31px;
  min-height: 18px;
  border-radius: 68% 42% 46% 62% / 58% 48% 52% 56%;
  border: 1px solid var(--bone-edge);
  background:
    radial-gradient(
      circle at 68% 34%,
      var(--bone-eye) 0 2px,
      transparent 2.2px
    ),
    radial-gradient(
      circle at 68% 66%,
      var(--bone-eye) 0 2px,
      transparent 2.2px
    ),
    radial-gradient(
      ellipse at 82% 50%,
      var(--bone-cut) 0 2.5px,
      transparent 2.8px
    ),
    radial-gradient(
      ellipse at 38% 50%,
      rgba(255, 255, 255, 0.18) 0 6px,
      transparent 6.5px
    ),
    linear-gradient(90deg, var(--bone), var(--bone-soft));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.about-good-snake-fx.about-good-snake-head::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  left: auto;
  width: 12px;
  height: 1.4px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bone-cut);
  transform: translateY(-50%);
  opacity: 0.9;
}

.about-good-snake-fx.about-good-snake-head::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 52%;
  left: auto;
  width: 8px;
  height: 6px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--bone) 0 1px,
    transparent 1px 3px
  );
  transform: translateY(-50%);
  opacity: 0.82;
}

/* light theme */
:root:not([data-theme="dark"]) .about-good-snake-fx {
  --bone: rgba(24, 22, 20, 0.92);
  --bone-soft: rgba(38, 34, 29, 0.74);
  --bone-edge: rgba(250, 248, 241, 0.28);
  --bone-cut: rgba(250, 248, 241, 0.32);
  --bone-eye: #faf8f1;

  box-shadow: 0 1px 2px rgba(24, 22, 20, 0.14);
}
/* =========================================================
   SERVICE / THIRD SECTION
   Dollar spread hover effect - optimized
========================================================= */
.service-money-fx {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
  line-height: 1;
  color: #ffd76b;
  transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(0.7);
  animation: serviceMoneySpreadFx 760ms ease-out forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint;
}

.service-money-fx:nth-of-type(3n) {
  color: #5cf28b;
}

.service-money-fx:nth-of-type(4n) {
  color: #fff4df;
}

@keyframes serviceMoneySpreadFx {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(0.45);
  }

  18% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate3d(
        calc(-50% + var(--money-x, 0px)),
        calc(-50% + var(--money-y, -30px)),
        0
      )
      rotate(var(--money-rotate, 0deg)) scale(1.02);
  }
}

.service-money-bill-fx {
  position: fixed;
  z-index: 99998;
  width: 28px;
  height: 15px;
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(92, 242, 139, 0.9),
    rgba(255, 215, 107, 0.82)
  );
  border: 1px solid rgba(255, 244, 223, 0.26);
  transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(0.65);
  animation: serviceMoneyBillFx 780ms ease-out forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint;
}

.service-money-bill-fx::before {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  color: rgba(17, 17, 17, 0.72);
}

@keyframes serviceMoneyBillFx {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(0.45);
  }

  20% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translate3d(
        calc(-50% + var(--bill-x, 0px)),
        calc(-50% + var(--bill-y, -30px)),
        0
      )
      rotate(var(--bill-rotate, 0deg)) scale(0.92);
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .service-money-fx,
  .service-money-bill-fx {
    display: none;
  }
}

/* =========================================================
   AFTER SERVICE AREA
   Smoke / dhua
========================================================= */
.site-smoke-cursor-fx {
  position: fixed;
  z-index: 99999;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.07) 54%,
    transparent 76%
  );
  filter: blur(8px);
  transform: translate(-50%, -50%);
  animation: siteSmokeCursorFx 1300ms ease-out forwards;
  mix-blend-mode: screen;
}

html[data-theme="dark"] .site-smoke-cursor-fx {
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 244, 223, 0.26) 0%,
    rgba(255, 244, 223, 0.13) 32%,
    rgba(255, 244, 223, 0.06) 56%,
    transparent 78%
  );
}

:root:not([data-theme="dark"]) .site-smoke-cursor-fx {
  background: radial-gradient(
    circle at 35% 35%,
    rgba(18, 18, 18, 0.13) 0%,
    rgba(18, 18, 18, 0.075) 34%,
    rgba(18, 18, 18, 0.038) 58%,
    transparent 78%
  );
  mix-blend-mode: multiply;
}

@keyframes siteSmokeCursorFx {
  0% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(0.45) rotate(0deg);
  }

  55% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--smoke-x, 0px)),
        calc(-50% + var(--smoke-y, -18px))
      )
      scale(1.65) rotate(var(--smoke-rotate, 0deg));
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hero-pixel-fx,
  .about-bone-fx,
  .service-magic-fx,
  .site-smoke-cursor-fx {
    display: none;
  }
}

/* === MAIN INDEX UNIQUE SECTION EFFECTS END === */



/* =========================================================
   HOME / FLOWSYNC ESSENTIALS APP PREVIEW
========================================================= */
.apps-vault-preview-panel {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 330px;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
  padding: 34px 28px 28px;
}

.apps-vault-preview-panel::before {
  display: none;
}

.apps-vault-preview-panel::after {
  display: none;
}

.apps-vault-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 560px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(26px, 5vw, 54px);
  margin: 34px auto 0;
}

.apps-vault-preview-card {
  position: relative;
  display: grid;
  width: 132px;
  height: 118px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.17);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.apps-vault-preview-card:nth-child(1) {
  transform: translateY(7px) rotate(-2deg);
}

.apps-vault-preview-card:nth-child(2) {
  transform: translateY(-12px);
}

.apps-vault-preview-card:nth-child(3) {
  transform: translateY(7px) rotate(2deg);
}

.apps-vault-preview-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

.apps-vault-preview-card::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 58px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(8px);
  transform: translateX(-50%);
  opacity: 0.36;
  pointer-events: none;
}

.apps-vault-preview-card:hover,
.apps-vault-preview-card:focus-visible {
  border-color: rgba(185, 255, 52, 0.48);
  background:
    linear-gradient(135deg, rgba(185, 255, 52, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 46px rgba(0, 0, 0, 0.26);
}

.apps-vault-preview-card:nth-child(1):hover,
.apps-vault-preview-card:nth-child(1):focus-visible {
  transform: translateY(-4px) rotate(-3deg) scale(1.04);
}

.apps-vault-preview-card:nth-child(2):hover,
.apps-vault-preview-card:nth-child(2):focus-visible {
  transform: translateY(-20px) scale(1.04);
}

.apps-vault-preview-card:nth-child(3):hover,
.apps-vault-preview-card:nth-child(3):focus-visible {
  transform: translateY(-4px) rotate(3deg) scale(1.04);
}

.apps-vault-preview-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.16));
}

.apps-vault-preview-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 16px;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    opacity 170ms ease;
}

.apps-vault-preview-more:hover,
.apps-vault-preview-more:focus-visible {
  border-color: rgba(185, 255, 52, 0.38);
  background: rgba(185, 255, 52, 0.1);
  opacity: 0.9;
  transform: translateY(-2px);
}

:root:not([data-theme="dark"]) .apps-vault-preview-panel::before {
  display: none;
}

:root:not([data-theme="dark"]) .apps-vault-preview-card {
  border-color: rgba(17, 17, 17, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 32px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .apps-vault-preview-more {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

@media (max-width: 720px) {
  .apps-vault-preview-panel {
    min-height: 320px;
    padding: 28px 14px 24px;
  }

  .apps-vault-preview-panel::before {
  display: none;
}

  .apps-vault-preview-grid {
    width: min(100%, 350px);
    gap: 12px;
    margin-top: 20px;
  }

  .apps-vault-preview-card {
    width: 96px;
    height: 88px;
    border-radius: 21px;
  }

  .apps-vault-preview-card::before {
    inset: 8px;
    border-radius: 17px;
  }

  .apps-vault-preview-card img {
    width: 58px;
    height: 58px;
  }

  .apps-vault-preview-card::after {
    bottom: -12px;
    width: 36px;
  }

  .apps-vault-preview-more {
    margin-top: 26px;
    padding: 7px 13px;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

/* =========================================================
   FIX / ESSENTIALS PREVIEW REMOVE DOUBLE BACKGROUND
========================================================= */
.language-empty.apps-vault-preview-panel {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.language-empty.apps-vault-preview-panel::before,
.language-empty.apps-vault-preview-panel::after,
.apps-vault-preview-panel::before,
.apps-vault-preview-panel::after {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.apps-vault-preview-grid {
  margin-top: 30px !important;
}

.apps-vault-preview-more {
  margin-top: 36px !important;
}