/* =============================================================================
 * Renaldi Hairil — Portfolio
 * Design system + layout. Dark navy / electric blue / minimal / premium.
 * ========================================================================== */

/* -------------------------------------------------------------- 1. Tokens */
:root {
  /* surfaces */
  --page: #040c14;
  --bg: #06111c;
  --surface: #0a1928;
  --card: #0b1b2b;
  --card-hover: #0e2436;

  /* lines */
  --border: rgba(80, 130, 180, 0.22);
  --border-strong: rgba(80, 130, 180, 0.42);

  /* accent */
  --accent: #1683ff;
  --accent-strong: #087eff;
  --accent-soft: rgba(22, 131, 255, 0.14);
  --accent-glow: rgba(22, 131, 255, 0.35);

  /* text */
  --text: #f5f7fa;
  --text-2: #8c9aa8;
  --muted: #637383;

  /* shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* rhythm */
  --shell-pad: clamp(22px, 4.5vw, 60px);
  --section-gap: clamp(56px, 9vw, 116px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------- 2. Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ------------------------------------------------------- 3. Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ------------------------------------------------------ 4. Shell (full page) */
.shell {
  /* content column centred at max 1280px; edge gutter never below --shell-pad */
  --pad-x: max(var(--shell-pad), calc((100% - 1280px) / 2));
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  padding: 0 var(--pad-x) clamp(48px, 7vw, 90px);
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

/* faint glow near the top of the page */
.shell::before {
  content: "";
  position: absolute;
  top: -220px;
  right: 6%;
  width: 620px;
  height: 620px;
  max-width: 80vw;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
  filter: blur(24px);
  z-index: -1;
}

.section {
  position: relative;
  z-index: 1;
  padding-top: var(--section-gap);
}

/* -------------------------------------------------------------- 5. Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 15px 0;
  margin-bottom: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand .brand-mark {
  color: var(--accent);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right 0.24s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
}
.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  right: 0;
}

.nav-toggle {
  display: flex;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}
.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.15s var(--ease);
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}
.nav-toggle .bars::before {
  top: -6px;
}
.nav-toggle .bars::after {
  top: 6px;
}
.nav[data-open="true"] .nav-toggle .bars {
  background: transparent;
}
.nav[data-open="true"] .nav-toggle .bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav[data-open="true"] .nav-toggle .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* dropdown opened by the menu button (all breakpoints) */
.nav-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 234px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85);
  z-index: 70;
  animation: pop 0.18s var(--ease);
}
.nav-pop[hidden] {
  display: none;
}
.nav-pop a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-pop a:hover {
  background: var(--surface);
  color: var(--text);
}
.nav-pop a[aria-current="page"] {
  color: var(--accent);
}
.nav-pop-div {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}
/* on desktop the dropdown only carries the extra pages; Home/Portfolio/Contact
   already sit in the header. On mobile everything shows. */
@media (min-width: 761px) {
  .nav-pop .nav-pop-core {
    display: none;
  }
}
.nav-pop-mail {
  font-size: 0.8rem !important;
  color: var(--accent) !important;
  word-break: break-all;
}
.nav-pop-social {
  display: flex;
  gap: 8px;
  padding: 8px 6px 4px;
}
.nav-pop-social a {
  padding: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.nav-pop-social a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------- 6. Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "/";
  color: var(--accent);
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

.display {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
}
.h-section {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  margin-top: 16px;
}
.lead {
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  max-width: 46ch;
}
.accent-text {
  color: var(--accent);
}

/* ------------------------------------------------------------- 7. Buttons */
.btn {
  --bh: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--bh);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg {
  flex: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px -14px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -16px var(--accent-glow);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------- 8. Hero */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 48px);
}
.hero-kicker {
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}
.hero-title .line-accent {
  display: block;
  color: var(--accent);
}
.hero-copy .lead {
  margin-top: 22px;
}

.scroll-cue {
  margin-top: 32px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.scroll-cue:hover {
  transform: translateY(3px);
  background: var(--accent-strong);
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-media::after {
  /* blue glow pool behind the portrait */
  content: "";
  position: absolute;
  inset: auto 0 8% 0;
  height: 78%;
  background: radial-gradient(
    60% 60% at 50% 60%,
    var(--accent-glow),
    transparent 72%
  );
  filter: blur(12px);
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  /* feather every edge so the cut-out melts into the page */
  --m-fade: linear-gradient(
    to bottom,
    #000 54%,
    rgba(0, 0, 0, 0.45) 80%,
    transparent 100%
  );
  --m-vignette: radial-gradient(
    128% 94% at 50% 40%,
    #000 50%,
    rgba(0, 0, 0, 0.4) 75%,
    transparent 96%
  );
  -webkit-mask-image: var(--m-fade), var(--m-vignette);
  -webkit-mask-composite: source-in;
  mask-image: var(--m-fade), var(--m-vignette);
  mask-composite: intersect;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-social {
  position: absolute;
  right: 0;
  bottom: 7%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}
.hero-social .follow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}

.social-row {
  display: flex;
  gap: 9px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: transform 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.social-row a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------- 9. About + caps */
.about-head {
  max-width: 640px;
}
.about-head .lead {
  margin-top: 16px;
  max-width: 60ch;
}

.cap-grid {
  margin-top: clamp(34px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cap-card {
  min-height: 188px;
  padding: 22px 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--card) 42%, transparent);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cap-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 14px 30px -22px var(--accent-glow);
}
.cap-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.cap-card h3 {
  font-size: 1rem;
  font-weight: 700;
}
.cap-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ------------------------------------------------- 9b. Section heads (shared) */
.sec-head {
  max-width: 640px;
}
.sec-head .h-section {
  margin-top: 14px;
}
.sec-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------- 9c. Keahlian & Skill */
.skill-list {
  margin-top: clamp(30px, 5vw, 52px);
  border-top: 1px solid var(--border);
}
.skills-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  margin-bottom: clamp(28px, 5vw, 56px);
  padding-top: clamp(26px, 4vw, 36px);
  padding-bottom: clamp(26px, 4vw, 36px);
  border-top: 1px solid var(--border);
}
.skills-cta-text {
  color: var(--text-2);
  font-size: 0.92rem;
}
.skills-cta .btn {
  flex: none;
}
.skill-item {
  display: grid;
  grid-template-columns: minmax(64px, 0.14fr) 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
  padding: clamp(22px, 3.5vw, 34px) 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.skill-item:hover {
  background: linear-gradient(
    90deg,
    var(--accent-soft),
    transparent 60%
  );
  padding-left: 16px;
}
.skill-no {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}
.skill-item:hover .skill-no {
  color: var(--accent);
}
.skill-body h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
}
.skill-body p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.94rem;
  max-width: 62ch;
}

/* ------------------------------------------------------- 9d. Testimonials */
.tsm {
  --tsm-visible: 3;
  --tsm-gap: 20px;
}
.tsm-nav {
  display: flex;
  gap: 10px;
}
.tsm-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), opacity 0.16s var(--ease);
}
.tsm-btn:hover:not([disabled]) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tsm-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.tsm-btn svg {
  width: 18px;
  height: 18px;
}
.tsm-btn--prev svg {
  transform: scaleX(-1);
}
.tsm-viewport {
  margin-top: clamp(26px, 4vw, 40px);
  overflow: hidden;
}
.tsm-track {
  display: flex;
  gap: var(--tsm-gap);
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.tsm-card {
  flex: 0 0
    calc(
      (100% - (var(--tsm-visible) - 1) * var(--tsm-gap)) / var(--tsm-visible)
    );
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}
.tsm-quote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}
.tsm-quote::before {
  content: "\201C";
  display: block;
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 6px;
}
.tsm-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tsm-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.tsm-name {
  font-weight: 700;
  font-size: 0.92rem;
}
.tsm-role {
  color: var(--muted);
  font-size: 0.8rem;
}
.tsm-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.tsm-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}
.tsm-dot[aria-current="true"] {
  width: 22px;
  background: var(--accent);
}

/* --------------------------------------------------------------- 9e. CTA */
.cta {
  margin-top: clamp(20px, 4vw, 40px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background: radial-gradient(
    120% 140% at 50% 0%,
    var(--accent-soft),
    transparent 60%
  );
}
.cta-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
}
.cta-text {
  margin: 16px auto 28px;
  color: var(--text-2);
  max-width: 52ch;
}

/* menu button highlighted when the current page lives in the dropdown */
.nav-toggle--active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------ 9f. Service Rates */
.rate-calc {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}
.rate-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.rate-step-no {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  display: grid;
  place-items: center;
}
.rate-step-hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.rate-cats {
  display: block;
}
.rate-select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background-color: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 650;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.rate-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.rate-select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.rate-feature-detail {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.rate-empty {
  color: var(--muted);
  font-size: 0.88rem;
}
.rate-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.rate-detail-head strong {
  font-size: 1.05rem;
}
.rate-price-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.rate-hosting-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.rate-hosting-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
.rate-hosting-option:hover,
.rate-hosting-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.rate-hosting-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rate-hosting-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.45;
}
.rate-hosting-copy strong {
  display: block;
  font-size: 0.95rem;
}
.rate-hosting-copy span,
.rate-hosting-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.rate-hosting-price {
  line-height: 1.5;
}
.rate-detail-head p {
  max-width: 58ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.rate-base {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
}
.rate-base small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.rate-standard {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.rate-standard ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-top: 10px;
}
.rate-standard li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.82rem;
}
.rate-standard li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.rate-addon-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}
.rate-addon-heading .rate-subtitle {
  color: var(--text-2);
}
.rate-cat {
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.rate-cat:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.rate-cat.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.rate-cat-name {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
}
.rate-cat-desc {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rate-feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.rate-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
.rate-feat:hover {
  border-color: var(--border-strong);
}
.rate-feat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rate-feat-box {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.rate-feat-box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.14s var(--ease);
}
.rate-feat input:checked ~ .rate-feat-box {
  background: var(--accent);
  border-color: var(--accent);
}
.rate-feat input:checked ~ .rate-feat-box::after {
  transform: rotate(-45deg) scale(1);
}
.rate-feat input:focus-visible ~ .rate-feat-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rate-hosting-option input:checked ~ .rate-feat-box {
  background: var(--accent);
  border-color: var(--accent);
}
.rate-hosting-option input:checked ~ .rate-feat-box::after {
  transform: rotate(-45deg) scale(1);
}
.rate-hosting-option input:focus-visible ~ .rate-feat-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rate-feat input:checked ~ .rate-feat-name {
  color: var(--text);
}
.rate-feat-name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-2);
}
.rate-feat-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 4px;
}
.rate-feat-price {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.rate-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rate-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  scroll-margin-top: 90px;
}
.rate-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
}
.rate-plan--pro {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 55%),
    var(--card);
}
.rate-plan-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
}
.rate-plan-name {
  font-size: 1.1rem;
  font-weight: 800;
}
.rate-plan-tag {
  color: var(--text-2);
  font-size: 0.86rem;
}
.rate-price {
  margin: 12px 0 6px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rate-price span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
}
.rate-incl {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0 0;
}
.rate-incl li {
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
}
.rate-incl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231683FF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.rate-addons {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.rate-addons-label,
.rate-note {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rate-addons ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rate-addons li {
  font-size: 0.84rem;
  color: var(--text-2);
}
.rate-note {
  margin-top: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.rate-plan .btn {
  margin-top: 22px;
}
.rate-plan .btn svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------- 9g. Product Digital */
.pd-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pd-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.pd-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--accent-soft);
}
.pd-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-type {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
}
.pd-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 11px;
}
.pd-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.pd-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.pd-body p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}
.pd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.pd-price {
  font-weight: 800;
  font-size: 1.02rem;
}
.pd-price--free {
  color: #7ee2a8;
}
.pd-foot .btn {
  --bh: 42px;
  font-size: 0.85rem;
}
.pd-foot .btn svg {
  width: 14px;
  height: 14px;
}

.pd-modal[hidden] {
  display: none;
}
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.pd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.78);
  backdrop-filter: blur(5px);
  animation: pd-modal-fade 0.2s var(--ease);
}
.pd-modal-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(680px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 34px clamp(22px, 5vw, 42px) 30px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--accent-soft);
  animation: pd-modal-rise 0.24s var(--ease);
}
.pd-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease);
}
.pd-modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pd-modal-type {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pd-modal-dialog h2 {
  max-width: 14ch;
  margin-top: 12px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}
.pd-modal-desc,
.pd-modal-detail {
  margin-top: 18px;
  color: var(--text-2);
  line-height: 1.7;
}
.pd-modal-detail {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.pd-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.pd-modal-foot strong {
  font-size: 1.05rem;
}
.pd-modal-foot .btn {
  flex: none;
}
body.pd-modal-open {
  overflow: hidden;
}
@keyframes pd-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pd-modal-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- 10. Page header */
.page-head {
  position: relative;
  padding-top: clamp(30px, 6vw, 60px);
}
.page-head .eyebrow,
.page-head .display {
  position: relative;
  z-index: 1;
}
.page-head .display {
  margin-top: 16px;
  max-width: 12ch;
}
.page-head .lead {
  margin-top: 18px;
  max-width: 52ch;
}
.page-head--rates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: clamp(28px, 7vw, 96px);
}
.rate-mode-panel {
  align-self: center;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--accent-soft), transparent 72%), var(--card);
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.8);
}
.rate-panel-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rate-mode-label,
.rate-subtitle {
  display: block;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.rate-mode-select {
  margin-top: 9px;
}
.rate-mode-note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* decorative "send" flourish on the contact header */
.contact-badge {
  position: absolute;
  top: clamp(28px, 7vw, 78px);
  right: 0;
  width: clamp(72px, 12vw, 92px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 22px 54px -18px var(--accent-glow);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.contact-badge::before {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  transform: rotate(-18deg);
}
.contact-badge > span {
  display: grid;
  place-items: center;
}
.contact-badge svg {
  width: 34px;
  height: 34px;
  transform: rotate(-6deg);
}
.contact-badge:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent-strong);
}

/* --------------------------------------------------------- 11. Portfolio */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 40px);
}
.pill {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.work-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.work-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.75),
    0 0 0 1px var(--accent-soft);
}
.work-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.work-card:hover .work-thumb img {
  transform: scale(1.05);
}
.work-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  align-items: stretch;
  gap: 24px;
  min-height: 142px;
  padding: 18px 20px 20px;
}
.work-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 8px;
}
.work-progress {
  display: block;
  width: min(175px, 100%);
  margin-top: 22px;
}
.work-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}
.work-progress-top strong {
  color: var(--accent);
  font-weight: 750;
}
.work-progress-track,
.pm-progress {
  display: block;
  overflow: hidden;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--border);
}
.work-progress-track span,
.pm-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.work-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
}
.work-info > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.work-body .work-cat {
  color: var(--muted);
  font-size: 0.82rem;
}
.work-type-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.work-type--client {
  color: #8ee8ad;
  background: rgba(46, 180, 94, 0.13);
  border-color: rgba(46, 180, 94, 0.42);
}
.work-type--personal {
  color: #8fc4ff;
  background: var(--accent-soft);
  border-color: rgba(22, 131, 255, 0.38);
}
.work-dates {
  display: grid;
  align-self: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 28px 4px 20px;
  border-left: 1px solid var(--border);
}
.work-date {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 0.72rem;
  line-height: 1.2;
}
.work-date > span:last-child {
  display: grid;
  gap: 2px;
}
.work-date small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.work-date strong {
  font-size: 0.74rem;
  font-weight: 650;
}
.work-date-icon {
  display: grid;
  flex: 0 0 17px;
  place-items: center;
  color: var(--accent);
}
.work-date-icon svg {
  width: 15px;
  height: 15px;
}
.work-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.work-card:hover .work-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.work-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}

/* ------------------------------------------------------------- 12. Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 13, 0.72);
  backdrop-filter: blur(4px);
  animation: fade 0.2s var(--ease);
}
.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  min-width: 0;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px clamp(20px, 4vw, 34px) clamp(24px, 4vw, 34px);
  animation: pop 0.24s var(--ease);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
.modal-close {
  position: sticky;
  top: 0;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.modal-close:hover {
  color: #fff;
  border-color: var(--accent);
}
.pm-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 24px);
}
.pm-body > :first-child {
  padding-right: 52px;
}
.modal-card .work-cat {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.modal-card h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-top: 8px;
}
.pm-desc {
  color: var(--text-2);
  line-height: 1.7;
}
.pm-features {
  margin-top: -4px;
}
.pm-feature-list {
  display: grid;
  gap: 8px;
}
.pm-feature {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.pm-feature[open] {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface) 78%, var(--accent-soft));
}
.pm-feature summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}
.pm-feature summary::-webkit-details-marker {
  display: none;
}
.pm-feature summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.pm-feature-icon {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.pm-feature-icon svg {
  width: 16px;
  height: 16px;
}
.pm-feature[open] .pm-feature-icon {
  transform: rotate(45deg);
}
.pm-feature p {
  margin: -2px 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.65;
}
.pm-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* 16:9 demo video */
.pm-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.pm-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pm-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.pm-video-link svg {
  width: 14px;
  height: 14px;
}
.pm-video-link:hover {
  text-decoration: underline;
}

/* project meta */
.pm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
}
.pm-meta dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.pm-meta dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.pm-meta-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}
.pm-meta-icon svg {
  width: 15px;
  height: 15px;
}
.pm-status {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.pm-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pm-status .pm-label {
  margin-bottom: 0;
}
.pm-status-top strong {
  color: var(--accent);
  font-size: 0.86rem;
}
.pm-progress {
  height: 8px;
  margin-top: 14px;
}
.pm-progress-value {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

/* Natural image-ratio photo slider */
.pm-gallery {
  position: relative;
}
.pm-gv {
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.pm-gt {
  display: flex;
  transition: transform 0.45s var(--ease);
}
.pm-gcard {
  flex: 0 0 100%;
  background: var(--surface);
}
.pm-gcard img {
  width: 100%;
  height: auto;
  display: block;
}
.pm-gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.pm-gbtn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pm-gbtn svg {
  width: 16px;
  height: 16px;
}
.pm-gbtn--prev {
  left: 10px;
}
.pm-gbtn--prev svg {
  transform: scaleX(-1);
}
.pm-gbtn--next {
  right: 10px;
}
.pm-dots {
  margin-top: 14px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.tech-list li {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.modal-actions .btn {
  --bh: 46px;
}

/* ------------------------------------------------------------ 13. Contact */
.contact-grid {
  margin-top: clamp(30px, 5vw, 48px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 26px);
  padding-top: 6px;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: center;
}
a.info-item {
  transition: transform 0.16s var(--ease);
}
a.info-item:hover {
  transform: translateX(3px);
}
a.info-item:hover .info-value {
  color: var(--accent);
}
a.info-item:hover .info-icon {
  background: var(--accent);
  color: #fff;
}
.info-item .info-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.info-item .info-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.info-item .info-value {
  transition: color 0.16s var(--ease);
}
.info-item .info-value {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-word;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  color: var(--text);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: #ff5470;
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #ff8097;
}
.field[data-invalid="true"] .field-error {
  display: block;
}

.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.form-status[data-state="success"] {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #7ee2a8;
}
.form-status[data-state="error"] {
  display: block;
  background: rgba(255, 84, 112, 0.12);
  border-color: rgba(255, 84, 112, 0.4);
  color: #ff8097;
}
.form-hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* FAQ accordion ------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 96px;
}
.faq-intro .h-section {
  margin-top: 14px;
}
.faq-intro .lead {
  margin-top: 18px;
  max-width: 430px;
}
.faq-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.faq-item {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.faq-item[open] {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--card) 82%, var(--accent-soft));
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.faq-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease);
}
.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}
.faq-answer {
  padding: 0 18px 18px;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.7;
}
.faq-answer p + p {
  margin-top: 12px;
}
.faq-answer strong {
  color: var(--text);
  font-weight: 650;
}
.faq-example,
.faq-code {
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--text-2);
}
.faq-code code {
  color: var(--accent);
  font-family: inherit;
  font-weight: 650;
}
.btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.8;
}
.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------- 14. Footer */
.foot {
  margin-top: var(--section-gap);
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot .brand {
  font-size: 0.95rem;
}
.foot .foot-role {
  color: var(--muted);
  font-size: 0.82rem;
}
.foot-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-social-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-social .social-row {
  gap: 7px;
}
.foot-social .social-row a {
  width: 32px;
  height: 32px;
  background: var(--card);
}

/* ---------------------------------------------------- 15. Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- 16. Responsive */
@media (max-width: 940px) {
  .page-head--rates {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }
  .rate-mode-panel {
    max-width: 560px;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-media {
    flex-direction: column;
    min-height: 0;
    margin-top: 20px;
    align-items: center;
  }
  .hero-media::after {
    inset: auto 0 4% 0;
    height: 84%;
  }
  .hero-photo {
    max-width: 380px;
    margin: 0 auto;
    --m-fade: linear-gradient(
      to bottom,
      #000 52%,
      rgba(0, 0, 0, 0.4) 78%,
      transparent 96%
    );
  }
  .hero-social {
    position: static;
    align-items: center;
    text-align: center;
    margin-top: 16px;
  }
  .scroll-cue {
    display: none;
  }
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .faq-intro {
    position: static;
  }
  .faq-intro .lead {
    max-width: 640px;
  }
  .tsm {
    --tsm-visible: 2;
  }
  .sec-head--row {
    align-items: flex-start;
  }
  .rate-cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .rate-results {
    grid-template-columns: 1fr;
  }
  .pd-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .work-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .work-dates {
    align-self: stretch;
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .work-arrow {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    margin-left: auto;
  }
  .nav-pop {
    position: static;
    order: 3;
    width: 100%;
    margin-top: 12px;
    box-shadow: none;
    animation: none;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .rate-feats {
    grid-template-columns: 1fr;
  }
  .rate-hosting-options {
    grid-template-columns: 1fr;
  }
  .rate-hosting-option {
    width: 100%;
    min-width: 0;
    padding: 14px;
  }
  .rate-hosting-copy {
    flex: 1;
  }
  .skills-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    margin-top: 64px;
    margin-bottom: 84px;
    padding-top: 34px;
    padding-bottom: 42px;
  }
  .skills-cta .btn {
    justify-content: center;
    width: 100%;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .page-head .display {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    max-width: 100%;
  }
  .tsm {
    --tsm-visible: 1;
    --tsm-gap: 14px;
  }
  .rate-cats {
    grid-template-columns: 1fr;
  }
  .rate-detail-head,
  .rate-addon-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .rate-base {
    align-items: flex-start;
    white-space: normal;
  }
  .rate-detail-head > div {
    min-width: 0;
  }
  .rate-standard ul {
    grid-template-columns: 1fr;
  }
  .rate-feat-price {
    display: none;
  }
  .pd-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .pd-foot .btn {
    justify-content: center;
  }
  .skill-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 0;
  }
  .skill-item:hover {
    padding-left: 0;
  }
  .cta {
    border-radius: var(--r-lg);
  }
  .contact-badge {
    top: clamp(20px, 6vw, 40px);
    width: 58px;
  }
  .contact-badge svg {
    width: 22px;
    height: 22px;
  }
  .contact-badge::before {
    inset: -9px;
  }
}

/* --------------------------------------------------- 17. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 941px) {
  .pd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
