@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== Tokens ===== */
:root[data-theme="light"] {
  --bg: #F7F3EA;
  --surface: #FFFFFF;
  --surface-alt: #F0EAE0;
  --line: #E3DAC9;
  --text: #1C1815;
  --muted: #6B6154;
  --accent: #1c1815;
  --accent-2: #4F6D62;

  /* Buttons */
  --btn-bg: #1C1815;
  --btn-text: #FFFFFF;
  --btn-hover: #4F6D62;
  --btn-outline-text: #1C1815;
}

:root {
  --bg: #12100E;
  --surface: #1B1815;
  --surface-alt: #221E19;
  --line: #332D26;
  --text: #F3EFE7;
  --muted: #A99C8C;
  --accent: #e4e4e7;
  --accent-2: #6E8C82;
  --serif: 'Space Grotesk', sans-serif;
  --sans: 'Space Grotesk', sans-serif;

  /* Buttons */
  --btn-bg: #E4E4E7;
  --btn-text: #12100E;
  --btn-hover: #FFFFFF;
  --btn-outline-text: #E4E4E7;
}

html::-webkit-scrollbar {
  width: 10px !important;
}

html::-webkit-scrollbar-thumb {
  background: #b7b7b7;
  border-radius: 20px;
}

html::-webkit-scrollbar-track {
  background: #494949;
  box-shadow: inset 0 0 5px grey;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--sans);
  cursor: pointer;
}

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

section[id] {
  scroll-margin-top: 90px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.lead {
  margin: auto;
}

.center p,
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 30px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 207, 110, .55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(63, 207, 110, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(63, 207, 110, 0);
  }
}

@keyframes blinkDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Icons ===== */
.cap-icon,
.p-icon,
.side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--accent);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.cap-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}

.s-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.s-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.cap-icon svg,
.s-icon svg {
  width: 20px;
  height: 20px;
}

.p-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.p-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.process-step:nth-child(1) .p-icon {
  background: #3B5BDB;
  border-color: #3B5BDB;
}

.process-step:nth-child(2) .p-icon {
  background: #2F9E44;
  border-color: #2F9E44;
}

.process-step:nth-child(3) .p-icon {
  background: #E64980;
  border-color: #E64980;
}

.process-step:nth-child(4) .p-icon {
  background: #F08C00;
  border-color: #F08C00;
}

.side-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-right: 2px;
}

.side-icon svg {
  width: 17px;
  height: 17px;
}

.cap-group:hover .cap-icon,
.side-row:hover .side-icon {
  background: var(--accent);
  color: var(--btn-text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service:nth-child(1) .s-icon { background: #3B5BDB; }
.service:nth-child(2) .s-icon { background: #2F9E44; }
.service:nth-child(3) .s-icon { background: #E64980; }
.service:nth-child(4) .s-icon { background: #495057; }
.service:nth-child(5) .s-icon { background: #F08C00; }
.service:nth-child(6) .s-icon { background: #E03131; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

/* Primary */
.btn-solid {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.btn-solid:hover {
  border-color: var(--btn-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
  opacity: 0.8;
}

/* Ghost */
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-alt);
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--btn-outline-text);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--btn-text);
  border-color: var(--accent);
}

/* ===== Header (floating pill nav) ===== */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 12px 14px 12px 26px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.floating-nav a {
  transition: color .2s ease;
  font-size: 13px;
}

.nav-icon-row {
  background: var(--surface-alt);
  padding: 4px 8px;
  border-radius: 50px;
  border: 1px solid var(--line);
}

.floating-nav a.nav-active {
  color: #3FCF6E;
}

.theme-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.theme-dot:hover {
  transform: rotate(20deg) scale(1.06);
}

.theme-dot::after {
  content: "☾";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--bg);
}

:root[data-theme="light"] .theme-dot::after {
  content: "☀";
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  position: static;
  flex-shrink: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.1rem;
  width: auto;
  height: auto;
  padding: 0 14px 0 2px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
}
.nav-avatar{
  display:inline-flex; width:32px; height:32px; border-radius:50%;
  overflow:hidden; flex-shrink:0;
/* 	border: 1px solid #ededed; */
}
.nav-avatar img{
  width:100%; height:100%; object-fit:cover; display:block;
  image-rendering:-webkit-optimize-contrast;
}
.nav-name{font-weight:700; color:var(--text); font-size:0.95rem; white-space:nowrap; margin-right:2px;font-style:italic;}
.nav-links{display:flex; align-items:center; gap:16px;}
.nav-icon-row, .nav-social{display:flex; align-items:center; gap:4px;}
.nav-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%; color:var(--muted); flex-shrink:0;
  transition:background .2s ease, color .2s ease;
}
.nav-icon svg{width:16px; height:16px;}
.nav-icon:hover{background:var(--surface-alt); color:var(--accent);}
.nav-divider{width:1px; height:22px; background:var(--line); flex-shrink:0;}
.nav-cta {
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 2px;
  padding: .3rem 1.2rem;
  border-radius: 30px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 60px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(45deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 22px);
  background-position: center top;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 26px;
  animation: fadeInUp .6s ease both;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3FCF6E;
  animation: pulseDot 1.4s infinite, blinkDot 1.4s infinite;
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp .6s ease .1s both;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 32px;
  animation: fadeInUp .6s ease .2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp .6s ease .3s both;
}

.clients-strip {
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  width: 100%;
  animation: fadeInUp .6s ease .4s both;
}

.clients-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.clients-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.scroll-cue {
  display: inline-block;
  margin-top: 44px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 32px;
  transition: transform .25s ease, color .25s ease, border-color .25s ease;
}

.scroll-cue:hover {
  transform: translateY(4px);
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== About ===== */
.resume-link{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:6px;
  color:var(--text); font-size:0.9rem; font-weight:600;
  border-bottom:1px solid var(--line); padding-bottom:2px;
  transition:color .2s ease, border-color .2s ease;
}
.resume-link:hover{color:var(--accent); border-color:var(--accent);}
.resume-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; flex-shrink:0;
}
.resume-icon svg{width:16px; height:16px;}
.about {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "i i c c"
    "i i s1 s2"
    "s3 s4 k k"
    "q q q q";
}

.b-intro { grid-area: i; }
.b-code { grid-area: c; }
.b-s1 { grid-area: s1; }
.b-s2 { grid-area: s2; }
.b-s3 { grid-area: s3; }
.b-s4 { grid-area: s4; }
.b-skills { grid-area: k; }
.b-quote { grid-area: q; }

.b-tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform .25s ease, border-color .25s ease;
}

.b-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.b-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 70%);
}

:root[data-theme="light"] .b-tile::before {
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .05), transparent 70%);
}

.b-tile:hover::before { opacity: 1; }

/* intro */
.b-intro {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.b-intro h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0 0 16px;
}
.b-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.b-avatar-photo {
  position: relative;
  width: 80px;
  height: 80px;
  flex: none;
}

.b-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3FCF6E, transparent 40%, #3FCF6E 100%);
  opacity: .5;
}

.b-avatar-img {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface);
  display: block;
}

.b-avatar-img {
  background: var(--surface-alt);
}

.b-avatar-img img {
  width: 90%;
  height: 122%;
  margin: 5%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.b-avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3FCF6E;
  border: 2px solid var(--surface);
}

@keyframes bAvatarSpin {
  to { transform: rotate(360deg); }
}

.b-avatar-name strong {
  display: block;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
}

.b-avatar-name small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 2px;
}

.b-hl {
  color: #3FCF6E;
  position: relative;
  display: inline-block;
}

.b-hl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: #3FCF6E;
  transform-origin: left;
}

.bento.b-anim .b-hl::after { transform: scaleX(0); }

.bento.b-anim.is-in .b-hl::after {
  animation: svLine .7s cubic-bezier(.2, .8, .2, 1) 1.05s backwards;
}

.b-intro p {
  color: var(--muted);
  margin: 0 0 14px;
}

.b-intro .lead {
  color: var(--text);
  max-width: none;
  margin: 0 0 14px;
}

/* code card (stays dark in both themes) */
.b-code {
  background: #15130f;
  border-color: #332D26;
  color: #A99C8C;
  padding: 18px 20px;
}

.b-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: #A99C8C;
}

.b-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.b-dots i:nth-child(1) { background: #ff5f57; }
.b-dots i:nth-child(2) { background: #febc2e; }
.b-dots i:nth-child(3) { background: #28c840; }
.b-dots span { margin-left: 6px; }

.b-codeblock {
  margin-top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
}

.b-ln { display: block; }
.ck { color: #E64980; }
.cy { color: #74C0FC; }
.cs { color: #3FCF6E; }
.cb { color: #F08C00; }
.cw { color: #F3EFE7; }
.b-caret { animation: bBlink 1s steps(1) infinite; }

/* stats */
.b-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
  align-items: center;
}

.b-wm {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 76px;
  height: 76px;
  color: var(--text);
  opacity: .06;
  transition: transform .4s ease;
}

.b-tile:hover .b-wm { transform: rotate(-10deg) scale(1.12); }

.b-num {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.b-lb {
  position: relative;
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--muted);
}

.b-dt {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 7px;
  vertical-align: middle;
}

.b-pb {
  display: none;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.b-pb i { display: block; height: 100%; width: 95%; background: var(--c); transform-origin: left; }

/* skills ticker */
.g-cms { --c: #3B5BDB; }
.g-front { --c: #2F9E44; }
.g-design { --c: #E64980; }
.g-perf { --c: #F08C00; }

.b-skills h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0;
}

.b-skills h3 svg { width: 18px; height: 18px; color: #3FCF6E; }

.b-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0 2px;
  font-size: .72rem;
  color: var(--muted);
}

.b-mw {
  overflow: hidden;
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.b-mq {
  display: flex;
  width: max-content;
  animation: bScroll 34s linear infinite;
}

.b-mq.is-rev { animation-direction: reverse; animation-duration: 40s; }
.b-mw:hover .b-mq { animation-play-state: paused; }

.b-chip {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 20px;
  font-size: .8rem;
  white-space: nowrap;
  color: var(--text);
}

/* quote */
.b-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
}

.b-quote-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  min-width: 240px;
}

.b-qmark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: .8;
  color: #3FCF6E;
  flex: none;
}

.b-quote-text {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}

.b-w { display: inline-block; }

.b-author { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.b-author strong { display: block; font-weight: 600; }
.b-author small { display: block; color: var(--muted); font-size: .78rem; }

.b-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-text);
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* reveal animation (classes are added and removed by JS) */
@keyframes bUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes bScroll { to { transform: translateX(-50%); } }
@keyframes bBlink { 50% { opacity: 0; } }

.bento.b-anim .b-rv { opacity: 0; }
.bento.b-anim.is-in .b-rv {
  animation: bUp .6s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--d, 0s);
}
.bento.b-anim .b-pb i { transform: scaleX(0); }
.bento.b-anim.is-in .b-pb i { transform: scaleX(1); transition: transform 1.2s ease .9s; }

/* responsive */
@media (max-width: 900px) {
  .about { padding: 80px 0; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "i i"
      "c c"
      "s1 s2"
      "s3 s4"
      "k k"
      "q q";
  }
  .b-intro { padding: 24px; }
}

@media (max-width: 560px) {
  .about { padding: 64px 0; }
  .bento { gap: 12px; }
  .b-tile { padding: 16px; border-radius: 16px; }
  .b-intro { padding: 20px; }
  .b-code { padding: 16px; }
  .b-stat { min-height: 112px; }
  .b-quote { padding: 20px; }
  .b-author { width: 100%; }
}

/* ===== Services ===== */
.services {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

/* heading */
.sv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0px;
  font-size: .78rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sv-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3FCF6E;
  display: block;
  animation: pulseDot 1.4s infinite, blinkDot 1.4s infinite;
}

.sv-h {
  max-width: 640px;
  margin: 16px auto 0;
}

.sv-hl {
  color: #3FCF6E;
  position: relative;
  display: inline-block;
}

.sv-hl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: #3FCF6E;
  transform-origin: left;
}

.sv-hd .lead {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
}

.sv-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
}

.sv-rule span {
  height: 1px;
  width: 70px;
  background: var(--line);
}

.sv-rule b {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #3FCF6E;
  transform: rotate(45deg);
  display: block;
}

/* cards */
.service-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service {
  --c: #3B5BDB;
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 22px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s;
}

.service:nth-child(1) { --c: #3B5BDB; }
.service:nth-child(2) { --c: #2F9E44; }
.service:nth-child(3) { --c: #E64980; }
.service:nth-child(4) { --c: #7B8794; }
.service:nth-child(5) { --c: #F08C00; }
.service:nth-child(6) { --c: #E03131; }

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--c);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}

.service:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 60%, var(--line));
}

.service:hover::before { opacity: 1; }
.service:hover::after { width: 100%; }

.sv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
}

.service .s-icon {
  background: var(--c);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}

.service:hover .s-icon {
  transform: rotate(-8deg) scale(1.1);
  animation: svRing 1s ease-out infinite;
}

.sv-n {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--line);
  transition: color .3s;
}

.service:hover .sv-n { color: var(--c); }

.s-cat {
  display: block;
  position: relative;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service h3 {
  position: relative;
  margin: 4px 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.service p {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
}

.sv-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: .8rem;
  color: var(--c);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}

.sv-more svg { width: 14px; height: 14px; }
.service:hover .sv-more { opacity: 1; transform: none; }

@media (hover: none) {
  .sv-more { opacity: 1; transform: none; }
}

/* scroll-in animation (JS adds .sv-anim and .is-in) */
@keyframes svUp {
  from { opacity: 0; transform: translateY(22px); }
}

@keyframes svLine {
  from { transform: scaleX(0); }
}

@keyframes svRing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

.services.sv-anim:not(.is-in) .sv-rv { opacity: 0; }
.services.sv-anim:not(.is-in) .sv-hl::after { transform: scaleX(0); }

.services.sv-anim.is-in .sv-rv {
  animation: svUp .6s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: var(--d, 0s);
}

.services.sv-anim.is-in .sv-hl::after {
  animation: svLine .7s cubic-bezier(.2, .8, .2, 1) .8s backwards;
}

/* ===== Portfolio ===== */
.work {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}

/* -- cards -- */
.project-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease;
  outline: none;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--accent);
}

.project-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-alt);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 22px;
  border-radius: 45px !important;
}

.project-media-fallback {
  width: 100%;
  height: 100%;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity .2s ease;
}

.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 22px;
}

.project-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info h3 {
  margin-bottom: 8px;
}

.project-info p {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stack-pill {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* -- view more button -- */
.project-card-extra {
  display: none;
}

.project-card-extra.is-visible {
  display: block;
}

.project-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.project-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 190px;
}

.project-more-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.project-more-btn.is-expanded svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .project-more-wrap {
    margin-top: 28px;
  }

  .project-more-btn {
    width: 100%;
    max-width: 240px;
  }
}

/* -- project modal -- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.project-modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  max-width: 760px;
  margin: 5vh auto;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
}

.modal-panel::-webkit-scrollbar {
  width: 10px !important;
}

.modal-panel::-webkit-scrollbar-thumb {
  background: #b7b7b7;
  border-radius: 20px;
}

.modal-panel::-webkit-scrollbar-track {
  background: #494949;
  box-shadow: inset 0 0 5px grey;
}

/* Firefox scrollbar (webkit rules don't work there) */
.modal-panel {
  scrollbar-width: thin;
  scrollbar-color: #b7b7b7 #494949;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
}

.modal-hero {
  width: 100%;
  object-fit: cover;
  margin: 18px 0 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.modal-panel h4 {
  margin-top: 26px;
  color: var(--accent);
  font-size: 1rem;
}

.modal-desc p {
  color: var(--muted);
  margin-top: 8px;
}

.modal-visit {
  margin-top: 26px;
}

/* -- gallery grid inside modal -- */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 20px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s ease;
}

.gallery-thumb:hover .thumb-overlay,
.gallery-thumb:focus-visible .thumb-overlay {
  opacity: 1;
}

/* -- lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Process ===== */
.process {
  padding: 110px 0 120px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.process-grid {
  --process-gap: 28px;
  position: relative;
  margin-top: 82px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--process-gap);
  isolation: isolate;
}

/* animated route running through all four steps */
.process-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  top: 48px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #3B5BDB 8%,
    #2F9E44 38%,
    #E64980 68%,
    #F08C00 92%,
    transparent 100%);
  opacity: .58;
  transform: scaleX(0);
  transform-origin: left center;
}

.process.is-in .process-grid::before {
  animation: processLineDraw 1.15s cubic-bezier(.2,.8,.2,1) .2s forwards;
}

.process-step {
  --pc: #3B5BDB;
  position: relative;
  min-height: 285px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 74px 24px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}

.process-step:nth-child(1) { --pc: #3B5BDB; }
.process-step:nth-child(2) { --pc: #2F9E44; }
.process-step:nth-child(3) { --pc: #E64980; }
.process-step:nth-child(4) { --pc: #F08C00; }

/* coloured top edge */
.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pc), transparent);
  opacity: .95;
}

.process-step:hover {
  transform: translateY(-9px);
  box-shadow: 0 22px 46px rgba(0,0,0,.28), 0 0 30px color-mix(in srgb, var(--pc) 12%, transparent);
  border-color: color-mix(in srgb, var(--pc) 62%, var(--line));
}

.process-step .p-icon {
  position: absolute;
  top: -31px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  margin: 0;
  border: 1px solid var(--pc);
  background: color-mix(in srgb, var(--pc) 78%, #111);
  color: #fff;
  z-index: 2;
}

.process-step .p-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.process-step:hover .p-icon {
  transform: translateX(-50%) scale(1.08);
}

.p-num {
  display: block;
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 16px;
  letter-spacing: .05em;
}

.process-step h3 {
  margin-bottom: 14px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* staggered reveal */
.process.process-anim:not(.is-in) .process-rv {
  opacity: 0;
  transform: translateY(34px) scale(.97);
}
.process.process-anim.is-in .process-rv {
  animation: processCardIn .72s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: var(--pd, 0s);
}

@keyframes processCardIn {
  from { opacity: 0; transform: translateY(34px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes processLineDraw {
  to { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 58px 20px; }
  .process-grid::before { display: none; }
}

@media (max-width: 600px) {
  .process { padding: 90px 0; }
  .process-grid { grid-template-columns: 1fr; gap: 58px; margin-top: 72px; }
  .process-step { min-height: auto; padding: 66px 22px 28px; }
}

/* ===== Testimonials ===== */
.testimonials{
  padding:110px 0 105px;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}

.testimonial-slider {
  position: relative;
  margin-top: 58px;
  padding: 18px 58px 10px;
  overflow: hidden;
}

/* side masks so only complete cards are visible (desktop + tablet) */
.testimonial-slider::before,
.testimonial-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 58px;
  background: var(--bg);
  z-index: 4;
  pointer-events: none;
}

.testimonial-slider::before { left: 0; }
.testimonial-slider::after { right: 0; }

/* position is driven by JS (inline transform / transition) */
.quote-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  width: 100%;
  overflow: visible;
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.quote-track.is-dragging {
  cursor: grabbing;
}

.quote-track.is-dragging,
.quote-track.is-dragging * {
  user-select: none;
  -webkit-user-select: none;
}

.t-card{
  --tc:#3FCF6E;
  position:relative;
  min-height:365px;
  margin:0;
  padding:30px 28px 25px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    radial-gradient(440px circle at 50% -12%, color-mix(in srgb,var(--tc) 8%,transparent), transparent 48%),
    var(--surface);
  opacity:1;
  transform:none;
  transition:transform .35s ease,opacity .35s ease,border-color .35s ease;
  -webkit-user-drag: none;
}

/* desktop: 3 cards */
.quote-track > .t-card {
  flex: 0 0 calc((100% - 52px) / 3);
  width: calc((100% - 52px) / 3);
  min-width: calc((100% - 52px) / 3);
}

.t-card:hover{
  transform:translateY(-5px);
}

.t-green{--tc:#3FCF6E}

.t-card .quote-icon{
  display:block;
  height:30px;
  color:var(--tc);
  font-family:Georgia,serif;
  font-size:3.1rem;
  font-weight:700;
  line-height:.8;
  margin-bottom:16px;
  text-shadow:0 0 16px color-mix(in srgb,var(--tc) 30%,transparent);
}

.t-card .stars{
  display:block;
  color:#F6B73C;
  letter-spacing:2px;
  font-size:.9rem;
  margin-bottom:17px;
}

.t-card>p{
  margin:0;
  color:var(--text);
  font-size:.94rem;
  line-height:1.75;
}

.t-card footer{
  margin-top:22px;
  padding-top:17px;
  border-top:1px solid var(--line);
}

.t-author{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.t-author strong{
  display:block;
  color:var(--text);
  font-family:var(--serif);
  font-size:.96rem;
}

.t-author small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.45;
}

.t-avatar{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid color-mix(in srgb,var(--tc) 45%,var(--line));
  background:color-mix(in srgb,var(--tc) 9%,var(--surface-alt));
  color:var(--text);
  font-size:.72rem;
}

.t-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--surface);
  color:var(--text);
  font-size:1.25rem;
  z-index:6;
  transition:border-color .25s ease,background .25s ease,transform .25s ease;
}
.t-prev{left:0}
.t-next{right:0}
.t-nav:hover{
  border-color:#3FCF6E;
  background:var(--surface-alt);
  transform:translateY(-50%) scale(1.08);
}

/* pagination dots are hidden (JS still creates them) */
.quote-dots {
  display: none;
}

.testimonial-cta{margin-top:38px}
.testimonial-cta p{margin:0 0 18px;color:var(--muted)}
.testimonial-cta p strong{color:var(--text)}
.testimonial-cta .btn{border-radius:13px}

/* tablet: 2 cards */
@media (max-width: 900px) and (min-width: 769px) {
  .quote-track {
    gap: 18px;
  }

  .quote-track > .t-card {
    flex: 0 0 calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
    min-width: calc((100% - 18px) / 2);
  }
}

/* mobile: 1 card, arrows overlay the card */
@media (max-width: 768px) {

  .testimonial-slider {
    padding: 8px 0 8px;
  }

  .testimonial-slider::before,
  .testimonial-slider::after {
    display: none;
  }

  .quote-track {
    gap: 18px;
  }

  .quote-track > .t-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: auto;
    /* side space so text doesn't go under the arrows */
    padding: 26px 46px 22px;
    transform: none;
  }

  .t-card:hover {
    transform: none;
  }

  .testimonial-slider .t-nav {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    transform: translateY(-50%) !important;
  }

  .testimonial-slider .t-prev { left: 6px; right: auto; }
  .testimonial-slider .t-next { right: 6px; left: auto; }
}

/* ===== Contact ===== */
.contact {
  padding: 110px 0;
}

.contact-inner {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 50px;
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: -6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.95rem;
  width: 100%;
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A99C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 140, 130, .18);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 12px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip.active {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form button[type="submit"] {
  justify-self: stretch;
  margin-top: 6px;
  border-radius: 30px;
}

.form-fineprint {
  color: #9AA3D4;
  font-size: 0.8rem;
  text-align: center;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  justify-self: stretch;
}

.btn-send svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.9rem;
}

.form-success {
  border-color: var(--accent);
  color: var(--accent);
}

.form-error {
  border-color: #b5654f;
  color: #d98b76;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-box {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.side-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  border-radius: 40px;
  padding: 14px 20px;
}

.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--accent);
  flex-shrink: 0;
}

.chip-icon svg {
  width: 14px;
  height: 14px;
}

.side-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
	font-size: 1.05rem;
  margin-bottom: 8px;
}

.h4-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text);
}

.h4-icon svg {
  width: 18px;
  height: 18px;
}

.side-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.side-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.9rem;
  transition: color .2s ease;
}

.side-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-row-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.side-row-value {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.side-row:hover .side-row-value {
  color: var(--accent);
}

.side-available {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(63, 207, 110, .08);
  border: 1px solid rgba(63, 207, 110, .35);
  border-radius: 14px;
}

.side-available p {
  margin-bottom: 0;
  color: #3FCF6E;
  font-size: 0.9rem;
  line-height: 1.5;
}

.side-available strong {
  color: #3FCF6E;
}

.avail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3FCF6E;
  margin-top: 5px;
  flex-shrink: 0;
  animation: pulseDot 1.4s infinite, blinkDot 1.4s infinite;
}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--line); padding:40px 0;}
.footer-mini{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;}
.footer-mini-left h2{font-size:1rem; font-weight:700; font-style:normal; margin-bottom:4px;}
.footer-mini-left p{color:var(--muted); font-size:0.82rem;}
.footer-mini-right{display:flex; align-items:center; gap:10px;}
.footer-social-icon{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  width:38px; height:38px; padding:0; border-radius:10px;
  background:var(--surface-alt); border:1px solid var(--line); color:var(--muted);
  transition:background .2s ease, color .2s ease, transform .2s ease;
  font-size:0.82rem; font-weight:600;
}
.footer-social-icon svg{width:17px; height:17px;}
.footer-social-icon:hover{background:var(--accent); color:var(--btn-text); border-color:var(--accent); transform:translateY(-2px);}
.footer-top{width:auto; padding:0 16px;}

/* ===== Responsive ===== */
@media (max-width:900px) {
  .hero {
    padding: 120px 0 40px;
  }

  .hero h1 {
    font-size: 3.4rem;
    line-height: 1.15;
  }

  .hero-lede {
    font-size: 0.95rem;
  }

  .hero-cta .btn {
    padding: 11px 20px;
    font-size: 0.88rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 5px 14px;
  }

  .floating-nav {
    gap: 12px;
    padding: 8px 8px 8px 16px;
    font-size: 0.75rem;
  }

  .floating-nav a {
    padding: 4px 10px;
    white-space: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .nav-cta{padding:9px 18px; font-size:0.8rem;}

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-panel {
    padding: 22px;
    margin: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
	.nav-name{display:none;}
.nav-avatar{display:none;}
  .floating-nav {
    gap: 8px;
    padding: 8px 16px 8px 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle{
    display:flex; align-items:center; justify-content:center;
    font-size:20px; margin-top:-4px; padding-left:8px;
  }

  .theme-dot:hover{transform:rotate(-4deg) scale(1.06);}

  .nav-name{display:none;}
  .nav-cta{padding:8px 16px; font-size:0.78rem;}

  .nav-links.open{
    display:flex; flex-direction:column; align-items:center; gap:12px;
    position:fixed; top:78px; left:50%; transform:translateX(-50%);
    background:var(--surface); border:1px solid var(--line); border-radius:24px;
    padding:20px 22px; min-width:330px;
    box-shadow:0 20px 40px rgba(0,0,0,0.45); z-index:52;
  }
  .nav-links.open .nav-icon-row,
  .nav-links.open .nav-social{
    flex-wrap:wrap; justify-content:center; gap:10px;
  }
  .nav-links.open .nav-divider{
    width:80%; height:1px; margin:2px 0;
  }

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

  .stat {
    padding: 26px 10px;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .clients-row {
    gap: 16px;
  }

  .project-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .footer-mini {
    justify-content: center;
  }

  .footer-mini-left {
    text-align: center;
  }

  .b-lb {
    font-size: .65rem;
  }
}

/* ===== Hero polish: eyebrow, highlighted last word, ticker + cue ===== */
.hero-eyebrow {
  margin-bottom: 26px;
  animation: fadeInUp .6s ease both;
}

.hero-hl {
  color: #3FCF6E;
  position: relative;
  display: inline-block;
}

.hero-hl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #3FCF6E;
  transform-origin: left;
  animation: heroLine .7s cubic-bezier(.2,.8,.2,1) .8s backwards;
}

@keyframes heroLine {
  from { transform: scaleX(0); }
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee .clients-row {
  width: max-content;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  animation: heroClientsScroll 24s linear infinite;
  will-change: transform;
}

.clients-marquee .clients-row span {
  white-space: nowrap;
  padding: 0 20px;
}

.clients-marquee .clients-row i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  align-self: center;
  border-radius: 50%;
  background: #3FCF6E;
}

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

@keyframes heroClientsScroll {
  to { transform: translateX(-50%); }
}

.scroll-cue {
  animation: fadeInUp .6s ease .5s both, heroCueBounce 1.7s ease-in-out 1.1s infinite;
}

@keyframes heroCueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.scroll-cue:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee .clients-row,
  .scroll-cue,
  .hero-hl::after {
    animation: none !important;
  }
}


.form-notice[hidden] {
  display: none;
}