/* ==========================================================================
   akhlaque.dev — single stylesheet, dark + light themes
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  /* Same in both themes: white text on these passes WCAG AA */
  --btn-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --btn-glow: rgba(99, 102, 241, 0.55);

  /* Dark theme (default) */
  color-scheme: dark;
  --bg: #070b19;
  --bg-soft: #0b1124;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #10172f;
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --text-2: #c3ccdb;
  --muted: #8f9bb2;
  --accent: #8b93ff;
  --accent-2: #38d6f0;
  --grad-text: linear-gradient(95deg, #a5b4fc 0%, #c4b5fd 45%, #67e8f9 100%);
  --glow-1: rgba(99, 102, 241, 0.34);
  --glow-2: rgba(34, 211, 238, 0.16);
  --grid-line: rgba(148, 163, 184, 0.07);
  --chip-bg: rgba(129, 140, 248, 0.13);
  --chip-text: #c7d2fe;
  --star: #fbbf24;
  --success: #34d399;
  --success-text: #34d399;
  --danger: #f87171;
  --form-bg: #0b1124;
  --field-bg: #070b19;
  --header-bg: rgba(7, 11, 25, 0.74);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 90px -34px rgba(0, 0, 0, 0.85);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fc;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f2f4fa;
  --border: #e2e7f0;
  --border-strong: #cdd5e2;
  --text: #0b1220;
  --text-2: #3a4457;
  --muted: #5f6b83;
  --accent: #4f46e5;
  --accent-2: #0e7490;
  --grad-text: linear-gradient(95deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
  --glow-1: rgba(99, 102, 241, 0.16);
  --glow-2: rgba(8, 145, 178, 0.1);
  --grid-line: rgba(15, 23, 42, 0.05);
  --chip-bg: #eef0ff;
  --chip-text: #3730a3;
  --star: #f59e0b;
  --success: #059669;
  --success-text: #047857;
  --danger: #dc2626;
  --form-bg: #ffffff;
  --field-bg: #ffffff;
  --header-bg: rgba(247, 248, 252, 0.82);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 22px 45px -24px rgba(15, 23, 42, 0.22);
  --shadow-lg: 0 40px 80px -38px rgba(30, 27, 75, 0.34);
}

/* Smooth colour change only while the theme is being switched */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
}

html.theme-anim .theme-toggle svg {
  transition: transform 0.5s var(--ease), opacity 0.3s !important;
}

/* Circle reveal used by the theme toggle (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(99, 102, 241, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--btn-grad);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

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

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The theme button needs JavaScript */
html:not(.js) .theme-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, filter 0.25s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn:hover .icon-external {
  transform: translate(2px, -2px);
}

.btn-primary {
  color: #fff;
  background: var(--btn-grad);
  box-shadow: 0 12px 30px -14px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  filter: brightness(1.06);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}

.btn-soft {
  color: var(--accent);
  background: var(--chip-bg);
}

.btn-soft:hover {
  color: #fff;
  background: var(--btn-grad);
  transform: translateY(-2px);
}

.btn-whatsapp {
  color: #052e16;
  background: #25d366;
  box-shadow: 0 12px 30px -16px rgba(37, 211, 102, 0.8);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-sm {
  --btn-h: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.btn-lg {
  --btn-h: 56px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--btn-grad);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 22px -10px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.site-nav .nav-cta {
  margin-left: 10px;
  padding: 9px 18px;
  color: #fff;
  font-weight: 600;
  background: var(--btn-grad);
  box-shadow: 0 10px 24px -14px var(--btn-glow);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--btn-grad);
  filter: brightness(1.08);
}

.site-nav .nav-cta.is-active {
  color: #fff;
}

.site-nav .nav-cta.is-active::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.nav-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

/* Dark theme shows the sun (switch to light); light theme shows the moon */
.icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

:root[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

:root[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 19px;
}

.nav-toggle span:nth-child(3) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 5.5vw, 76px)) 0 clamp(88px, 8.5vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 82% 18%, var(--glow-1), transparent 70%),
    radial-gradient(42% 50% at 8% 80%, var(--glow-2), transparent 72%),
    var(--bg);
  /* fade out at the bottom so the glow never ends in a hard edge */
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
}

.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 4.7vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-title .text-gradient {
  /* keeps descenders from being clipped by background-clip */
  padding-bottom: 0.06em;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Small reassurance row under the hero buttons */
.hero-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-assure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-assure svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  stroke-width: 2.6;
}

.hero-visual {
  position: relative;
  aspect-ratio: 10 / 8.4;
}

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}

.shot img {
  width: 100%;
  aspect-ratio: 1280 / 889;
  object-fit: cover;
  object-position: top left;
}

.shot-back {
  top: 0;
  right: 0;
  width: 76%;
  transform: rotate(2.5deg);
  opacity: 0.92;
}

.shot-front {
  bottom: 0;
  left: 0;
  width: 86%;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.browser-bar .url {
  max-width: 62%;
  margin-inline: auto;
  padding: 3px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-solid);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--chip-bg);
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.float-icon svg {
  width: 19px;
  height: 19px;
}

.float-icon.is-star {
  background: rgba(251, 191, 36, 0.15);
  color: var(--star);
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text);
}

.float-card small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.float-rating {
  right: -3%;
  bottom: 9%;
}

.float-live {
  top: 4%;
  left: -6%;
  animation-delay: -3.5s;
}

.stars {
  color: var(--star);
  letter-spacing: 1px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Stats strip ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(-64px, -6vw, -40px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 28px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text);
}

.stat span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(72px, 8.5vw, 112px);
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: none;
}

.section-head-row > div {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--btn-grad);
}

.section-head h2,
.section-title {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
}

/* ---------- Cards & grids ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  font-size: 1.07rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}

.profile-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.profile-links svg {
  width: 17px;
  height: 17px;
}

.mini-title {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--chip-bg);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Skills ---------- */
.skill-card {
  padding: 26px;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--chip-bg);
  color: var(--accent);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.icon-tile {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.skill-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}

/* Full-width tools row under the skill cards */
.tools-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 24px;
}

.tools-strip .icon-tile {
  margin-bottom: 0;
}

.tools-strip h3 {
  margin-right: 6px;
  font-size: 1.1rem;
}

.tools-strip .chips {
  flex: 1 1 320px;
}

/* ---------- Services ---------- */
.service-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--btn-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-index {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--chip-bg);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  font-size: 0.97rem;
  line-height: 1.65;
}

/* Featured service: Website Fix & Care */
.service-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(26px, 4vw, 52px);
  border-color: var(--border-strong);
  background:
    radial-gradient(70% 130% at 0% 0%, var(--glow-1), transparent 62%),
    radial-gradient(60% 110% at 100% 100%, var(--glow-2), transparent 66%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.service-feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--btn-grad);
}

.service-feature:hover {
  transform: none;
}

.feature-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chip-text);
}

.service-feature h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

.service-feature-copy > p {
  max-width: 32rem;
  font-size: 1.04rem;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}

.feature-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.feature-list li {
  font-weight: 500;
  color: var(--text);
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

/* line joining each step number to the next one */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 66px;
  right: -16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--btn-grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 30px -14px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.step h3 {
  margin: 22px 0 10px;
  font-size: 1.18rem;
}

.step p {
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ---------- Projects ---------- */
.projects-featured {
  display: grid;
  gap: 28px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
}

.project-featured:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.project-featured .project-media {
  margin: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.projects-grid .project-media {
  border-bottom: 1px solid var(--border);
}

.project-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}

.project:hover .project-media img {
  transform: scale(1.035);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 40px);
}

.project-type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.project-body h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.project-featured .project-body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

.project-body > p {
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.tags li {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--chip-text);
}

.project-body .btn {
  margin-top: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

/* Component previews (cropped UI pieces shown on a soft stage) */
.media-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 8%;
  background:
    radial-gradient(70% 80% at 25% 15%, var(--glow-1), transparent 70%),
    radial-gradient(60% 70% at 85% 90%, var(--glow-2), transparent 70%),
    var(--surface-2);
}

.projects-grid .media-stage img {
  width: var(--w, 100%);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Dark-mode toggle mock-up */
.mock-site {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 74%;
  transition: transform 0.7s var(--ease);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.mock-half {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16% 12% 12%;
  background: #f8fafc;
}

.mock-half.is-dark {
  background: #0f172a;
}

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
}

.mock-half.is-dark .mock-line {
  background: #334155;
}

.mock-line.is-title {
  height: 13px;
  width: 72%;
  margin-bottom: 4px;
  background: #0f172a;
}

.mock-half.is-dark .mock-line.is-title {
  background: #e2e8f0;
}

.mock-line.w-80 {
  width: 80%;
}

.mock-line.w-60 {
  width: 60%;
}

.mock-line.w-40 {
  width: 40%;
}

.mock-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 8px 18px -8px rgba(249, 115, 22, 0.9);
}

.mock-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}

.project:hover .mock-site {
  transform: scale(1.035);
}

/* ---------- Two-column section (heading left, content right) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

/* the heading stays in view while the longer column scrolls past */
@media (min-width: 961px) {
  .split > .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.section-head .btn {
  margin-top: 28px;
}

/* ---------- Experience timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  max-width: 880px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 11px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  padding-left: 48px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 4px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--chip-bg);
}

.timeline-card {
  padding: 24px 28px;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.timeline-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* ---------- Reviews ---------- */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.reviews-summary .stars {
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.reviews-summary strong {
  font-family: var(--font-display);
  color: var(--text);
}

.carousel-track {
  display: grid;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  grid-auto-flow: column;
  gap: 20px;
  padding: 6px 2px 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  scroll-snap-align: start;
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--star);
}

.review-stars strong {
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--text);
}

.review-card blockquote {
  flex: 1;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text);
}

.review-project {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.review-project span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn:hover:not(:disabled) {
  border-color: transparent;
  background: var(--btn-grad);
  color: #fff;
}

.carousel-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

/* ---------- FAQ ---------- */
.section-sub {
  max-width: 30rem;
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px 19px 22px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline-offset: -2px;
}

/* plus sign that turns into a cross when the answer is open */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat,
    var(--chip-bg);
  transition: transform 0.35s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 22px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item[open] .faq-answer {
  animation: faq-in 0.4s var(--ease);
}

@keyframes faq-in {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}

/* Browsers that can animate to `auto` also slide the answer open */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Contact & free check form ---------- */
.section-contact {
  padding-top: 0;
}

.contact-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  overflow: hidden;
  padding: clamp(24px, 5.5vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, var(--glow-1), transparent 62%),
    radial-gradient(70% 100% at 100% 100%, var(--glow-2), transparent 62%),
    var(--surface-solid);
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.contact-intro > p {
  max-width: 34rem;
  margin-top: 16px;
}

.contact-intro > .contact-alt {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 16px;
  overflow-wrap: anywhere;
  padding: 10px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.contact-email svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--form-bg);
  box-shadow: var(--shadow);
}

.hp {
  display: none !important;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.field .optional {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field ::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--chip-bg);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
}

/* keep browser autofill in the site colours */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--field-bg) inset;
}

.field input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px var(--field-bg) inset, 0 0 0 4px var(--chip-bg);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 14px;
  height: 14px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-note {
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.form-status {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-status.is-info {
  background: var(--chip-bg);
  color: var(--chip-text);
}

.form-status.is-success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: var(--success-text);
}

.form-status.is-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 84px);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  font-size: 0.95rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-2);
}

.back-top svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.back-top:hover {
  color: var(--accent);
}

.back-top:hover svg {
  transform: translateY(-3px);
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}

/* Hero entrance (pure CSS, so content is never stuck hidden) */
.hero-copy > * {
  animation: rise 0.8s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.07s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.14s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.21s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.28s;
}

.hero-visual {
  animation: rise 1s var(--ease) 0.2s both;
}

/* Reveal on scroll: main.js adds .reveal only to items below the fold.
   It uses `translate`, so card hover effects (`transform`) keep working. */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  opacity: 1;
  animation: rise 0.8s var(--ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 8px 11px;
  }
}

@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .project-featured,
  .split,
  .contact-card,
  .service-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .hero-visual {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }

  .project-featured:nth-child(even) .project-media {
    order: 0;
  }

  .project-featured .project-media {
    margin: 12px 12px 0;
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

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

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-2);
  }

  .site-nav a.is-active::after {
    top: 50%;
    right: 14px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .grid-4,
  .grid-3,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel-track {
    grid-auto-columns: 88%;
  }

  .feature-list,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* steps become a vertical list with the number on the left */
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .step {
    padding-left: 70px;
  }

  .step-num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step h3 {
    margin-top: 12px;
  }

  .step:not(:last-child)::after {
    display: block;
    top: 64px;
    right: auto;
    bottom: -20px;
    left: 25px;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--accent), transparent);
  }

  .stat {
    padding: 18px 18px 20px;
  }

  .stat strong {
    font-size: 1.02rem;
  }

  .stat span {
    font-size: 0.84rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  /* full row, so the email address stays on one line */
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 66px;
  }

  body {
    font-size: 1rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-actions .btn,
  .contact-direct .btn {
    flex: 1 1 auto;
  }

  .hero-assure {
    gap: 8px 16px;
    font-size: 0.86rem;
  }

  .faq-item summary {
    padding: 17px 16px 17px 18px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 18px 20px;
  }

  .contact-card {
    padding: 26px 18px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .hero-visual {
    aspect-ratio: auto;
    padding: 18px 0 22px;
  }

  .shot-back {
    display: none;
  }

  .shot-front {
    position: relative;
    width: 100%;
  }

  .float-card {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .float-card strong {
    font-size: 0.95rem;
  }

  /* small screens: keep one badge so the screenshot stays readable */
  .float-live {
    display: none;
  }

  .float-rating {
    right: 10px;
    bottom: 0;
  }

  .timeline-item {
    padding-left: 36px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-card {
    padding: 20px;
  }

  .review-card {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
  }
}

@media print {
  .site-header,
  .hero-bg,
  .float-card,
  .carousel-controls {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    animation: none !important;
  }

  .carousel-track {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
}
