/*
Theme Name: Chetan Pal
Theme URI: https://chetanpal.dev
Author: Chetan Pal
Author URI: https://chetanpal.dev
Description: A lightweight, professional portfolio theme for Chetan Pal — Senior Full Stack Web Developer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chetanpal
*/

/* ============================================================
   Chetan Pal - Portfolio
   Warm-neutral, type-led, professional.
   ============================================================ */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #1B1916;
  --ink-2: #5C574E;
  --ink-3: #706B62;
  --line: #E8E3DA;
  --line-soft: #F0ECE4;
  --accent: #2D7A6D;
  --accent-soft: #EDF6F4;
  --accent-line: #B6D9D1;
  --font-head: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --container: 1100px;
}

@supports (color: oklch(0.46 0.08 170)) {
  :root {
    --accent: oklch(0.46 0.08 170);
    --accent-soft: oklch(0.96 0.015 170);
    --accent-line: oklch(0.88 0.04 170);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 800px; }

/* ---------- Skip link (accessibility) ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Focus styles ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.site-nav a:focus-visible { outline-offset: -2px; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 21px; }

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.muted { color: var(--ink-2); }
.prose-stack { display: flex; flex-direction: column; gap: 20px; }
.prose-stack p { font-size: 18px; }
.prose-stack strong, .section-head strong { color: var(--ink); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 8px -2px rgba(27, 25, 22, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 72px;
  transition: height 0.2s ease;
}

.site-header.scrolled .container { height: 60px; }

.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand .brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

/* -- Desktop navigation -- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-family: var(--font-head);
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1.2;
  position: relative;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--line-soft);
  text-decoration: none;
}
.site-nav a.current {
  color: var(--ink);
  font-weight: 600;
}
.site-nav a.current::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header-cta {
  margin-left: 24px;
  display: flex;
  align-items: center;
}

/* -- Mobile hamburger toggle -- */
.nav-toggle {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  align-items: center;
  z-index: 52;
  position: relative;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 6px 18px -6px rgba(45, 122, 109, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section + .section { padding-top: 0; }
.section--flush { padding-top: 0; }
.section--snug { padding-top: 24px; }

.section-head {
  margin-bottom: 52px;
  max-width: 64ch;
}
.section-head h2 { margin-bottom: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 64px; }
.hero--compact { padding-bottom: 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin: 0 0 24px; max-width: 18ch; }
.hero h1.h1--narrow { max-width: 20ch; }
.hero h1.h1--mid { max-width: 22ch; }

.hero-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  margin-bottom: 20px;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  align-self: flex-start;
}
.avail-pill .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 122, 109, 0.4); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.avail-pill--unavailable {
  color: var(--ink-3);
  border-color: var(--line);
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 30px 28px 30px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}
.stat .label {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 6px;
  display: block;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(27, 25, 22, 0.14);
}
.card h3 { font-size: 19px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

.card .kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
}

/* ---------- Work / project blocks ---------- */

.project {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.project:last-of-type { border-bottom: 1px solid var(--line); }

.project-meta { display: flex; flex-direction: column; gap: 10px; }
.project-meta h2 { font-size: 26px; margin: 0; }
.project-meta .role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-meta .period { font-size: 14px; color: var(--ink-3); }

.project-body { display: flex; flex-direction: column; gap: 18px; }
.project-body p { color: var(--ink-2); }

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 16px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}
.bullets li strong { color: var(--ink); font-weight: 600; }

/* ---------- Featured work cards (home) ---------- */

.work-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.work-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.work-card:hover {
  text-decoration: none;
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -18px rgba(27, 25, 22, 0.18);
}
.work-card .kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.work-card h3 { margin-bottom: 10px; }
.work-card p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.work-card .go {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Quote ---------- */

.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote .who { font-size: 15px; color: var(--ink-2); }
.quote .who strong { color: var(--ink); }
.quote .mark {
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 0.5;
  color: var(--accent);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 72px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { color: var(--bg); margin-bottom: 14px; }
.cta-band p { color: rgba(250, 248, 245, 0.72); }
.cta-band .actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cta-band .btn-primary { background: var(--accent); }
.cta-band .contact-line {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: rgba(250, 248, 245, 0.6);
}
.cta-band .contact-line a { color: var(--bg); }

/* ---------- Timeline ---------- */

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-item .when {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 4px;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 4px; }
.timeline-item .org { font-size: 14.5px; color: var(--accent); font-weight: 500; }
.timeline-item p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }

/* ---------- Stack table (about) ---------- */

.stack-table { display: flex; flex-direction: column; }
.stack-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.stack-row:last-child { border-bottom: 1px solid var(--line); }
.stack-row .area {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stack-row .items { font-size: 16px; color: var(--ink-2); }
.stack-row .items strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact page ---------- */

/* -- Tab switcher -- */
.contact-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-head);
}
.contact-tab:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.contact-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.contact-tab .tab-icon { font-size: 28px; line-height: 1; }
.contact-tab .tab-label { font-size: 18px; font-weight: 600; color: var(--ink); }
.contact-tab .tab-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* -- Tab panels -- */
.contact-panel { display: none; }
.contact-panel.active { display: block; }

/* -- Message grid -- */
.message-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

/* -- Contact details -- */
.contact-details { display: flex; flex-direction: column; }
.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: 1px solid var(--line); }
.detail-row .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.detail-link {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.detail-link:hover { color: var(--accent); text-decoration: none; }
.detail-text {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 2px;
}
.profile-links a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.profile-links a:hover { color: var(--accent); text-decoration: none; }
.profile-links a .arrow { color: var(--accent); }

/* -- Contact form -- */
/* WPForms theme overrides */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px 34px;
}
.contact-form-wrap .wpforms-container {
  max-width: 100%;
  --wpforms-field-size-input-height: 50px;
  --wpforms-field-size-padding-h: 16px;
}
.contact-form-wrap .wpforms-field { max-width: 100% !important; }
.contact-form-wrap .wpforms-field select,
.contact-form-wrap .wpforms-field .choices { max-width: 100% !important; }
.contact-form-wrap .wpforms-field-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.contact-form-wrap .wpforms-field input,
.contact-form-wrap .wpforms-field select,
.contact-form-wrap .wpforms-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-wrap .wpforms-field select,
div.wpforms-container-full .wpforms-form .wpforms-field-select select,
.contact-form-wrap div.wpforms-container-full select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: #fff;
  padding: 0 40px 0 16px !important;
  height: 50px !important;
  min-height: 50px !important;
  line-height: 50px !important;
  cursor: pointer;
}
/* Choices.js dropdown overrides (WPForms modern style) */
.contact-form-wrap .choices { margin-bottom: 0; }
.contact-form-wrap .choices .choices__inner {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form-wrap .choices .choices__inner:focus,
.contact-form-wrap .choices.is-open .choices__inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form-wrap .choices .choices__list--dropdown {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact-form-wrap .choices .choices__list--dropdown .choices__item {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 16px;
}
.contact-form-wrap .choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-form-wrap .wpforms-field input:focus,
.contact-form-wrap .wpforms-field select:focus,
.contact-form-wrap .wpforms-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form-wrap .wpforms-submit-container button,
div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-form-wrap .wpforms-submit-container button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.contact-form-wrap .wpforms-confirmation-container-full {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 10px;
}

/* -- Calendly section -- */
.calendly-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  padding: 4px;
}

/* ---------- Toptal badge ---------- */

.toptal-badge { font-family: proxima-nova, Arial, sans-serif; align-self: center; margin-top: 2px; }
.toptal-badge-outer { display: inline-block; background: #25a9ef; padding: 5px; clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); }
.toptal-badge-inner {
  width: 170px; padding: 20px 0 34px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; color: #204ecf; text-align: center;
  background: radial-gradient(circle at 20% -10%, #00c3ff -80%, #fff 30%),
              radial-gradient(circle at -20% 20%, #00c3ff -80%, #fff 30%),
              radial-gradient(circle at 70% 100%, #00c3ff -80%, #fff 30%),
              radial-gradient(circle at 120% 80%, #00c3ff -80%, #fff 30%);
  background-blend-mode: multiply;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  box-shadow: 0 28px 50px rgba(6, 30, 96, .35);
}
.toptal-badge-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1; }
.toptal-badge-rule { width: 100px; height: 1px; background: #25a9ef; }
.toptal-badge-vetted { font-size: 14px; margin-bottom: -4px; }
.toptal-badge-logo { width: 86px; }
.toptal-badge-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 20px; border-radius: 6px; background: #296bff; color: #fff;
  font-size: 16px; font-weight: 500;
}
.toptal-badge-link:hover { color: #fff; }

/* ---------- 404 / Centered hero ---------- */

.hero--centered { text-align: center; }
.hero--centered h1 { max-width: none; }
.hero--centered .lede { max-width: none; margin: 24px auto 0; }
.hero-actions--centered { justify-content: center; margin-top: 40px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- Blog / Archive ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.post-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.post-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.post-card:hover .post-card__thumb img {
  transform: scale(1.03);
}
.post-card__body {
  padding: 28px 28px 32px;
}
.post-card .post-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.post-card h3 {
  margin: 10px 0 12px;
  font-size: 20px;
  line-height: 1.35;
}
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .read-more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.post-card .read-more:hover { text-decoration: underline; }

/* ===== Single Post ===== */
.single-post { padding-bottom: 0; }

/* Back link */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .2s ease;
}
.post-back:hover { color: var(--accent); }

/* Hero */
.post-hero {
  padding: 64px 0 48px;
}
.post-hero__title {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  max-width: 720px;
  margin: 0 0 20px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.post-hero__meta time { font-weight: 500; }
.meta-sep { opacity: 0.5; }
.post-hero__cat {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.post-hero__cat:hover { background: var(--accent-line); }

/* Featured image */
.post-hero-image {
  margin: 0 0 48px;
  border-radius: 14px;
  overflow: hidden;
}
.post-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post body */
.post-body {
  padding-bottom: 48px;
}
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}
.post-content h2 {
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  font-size: 26px;
  font-weight: 700;
}
.post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 21px;
  font-weight: 600;
}
.post-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  font-weight: 600;
}
.post-content p { margin-bottom: 1.6em; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5em 0;
}
.post-content ul, .post-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 20px 28px;
  color: var(--ink-2);
  font-style: italic;
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}
.post-content code {
  background: var(--line-soft);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.post-content pre {
  background: var(--ink);
  color: #f0f0f0;
  padding: 22px 26px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.8em 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Tags */
.post-tags {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags a {
  display: inline-block;
  background: var(--line-soft);
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
}
.post-tags a:hover { background: var(--accent-soft); color: var(--accent); }

/* Author box */
.post-author {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.post-author__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-author__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.post-author__bio {
  font-size: 14px;
  color: var(--ink-3);
}

/* Post navigation */
.post-nav-section {
  padding: 48px 0 64px;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s ease;
}
.post-nav__link:hover {
  border-color: var(--accent-line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.post-nav__link--next { text-align: right; }
.post-nav__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.post-nav__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.post-nav__link:hover .post-nav__title { color: var(--accent); }

/* ===== Comments ===== */
.comments-area {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.comments-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-list > li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment-list > li:first-child { padding-top: 0; }
.comment-list > li:last-child { border-bottom: none; }
.comment-list .comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}
.comment-list .comment-body .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-list .comment-author {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.comment-list .comment-author .says { display: none; }
.comment-list .comment-metadata {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.comment-list .comment-metadata a {
  color: var(--ink-3);
  text-decoration: none;
}
.comment-list .comment-metadata a:hover { color: var(--accent); }
.comment-list .comment-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.comment-list .reply a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.comment-list .reply a:hover { text-decoration: underline; }
.comment-list .children {
  list-style: none;
  padding-left: 32px;
  margin: 0;
  border-left: 2px solid var(--line-soft);
}
.comment-list .children li { padding: 20px 0; border-bottom: none; }

/* Comment navigation */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.comment-navigation a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.comment-navigation a:hover { text-decoration: underline; }

/* Comment form */
.comment-respond {
  margin-top: 48px;
}
.comment-respond .comment-reply-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.comment-respond .comment-reply-title small {
  font-size: 13px;
  font-weight: 400;
  margin-left: 12px;
}
.comment-respond .comment-reply-title small a {
  color: var(--ink-3);
  text-decoration: none;
}
.comment-respond .logged-in-as {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.comment-respond .logged-in-as a { color: var(--accent); text-decoration: none; }
.comment-form .form-group {
  margin-bottom: 20px;
}
.comment-form .form-row {
  margin-bottom: 20px;
}
.comment-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.comment-form label .required { color: var(--accent); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form textarea { resize: vertical; min-height: 140px; }
.comment-form .btn-primary {
  margin-top: 4px;
}
.no-comments {
  font-size: 15px;
  color: var(--ink-3);
  font-style: italic;
}

/* Sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar .widget {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sidebar .widget-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--ink-2); font-size: 14.5px; }
.sidebar a:hover { color: var(--accent); }

/* Pagination */
.pagination {
  margin-top: 48px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Search form */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
}
.search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: var(--surface);
}
.search-form .search-field:focus { outline: none; border-color: var(--accent); }
.search-form .search-submit {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark, #246b5f); }

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; }
  .post-author { padding: 20px; gap: 14px; }
  .post-hero { padding: 40px 0 32px; }
  .comment-list .comment-body { grid-template-columns: 40px 1fr; gap: 12px; }
  .comment-list .comment-body .avatar { width: 40px; height: 40px; }
  .comment-list .children { padding-left: 20px; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  margin-top: 0;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.site-footer .links { display: flex; gap: 24px; }
.site-footer a { color: var(--ink-2); font-size: 14.5px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .copy { font-size: 14px; color: var(--ink-3); }

/* ---------- Reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Scrollbar ---------- */

@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-header .container { height: 64px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    z-index: 51;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a {
    font-size: 28px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    padding: 18px 24px;
    border-radius: 12px;
    text-align: center;
    letter-spacing: -0.01em;
  }
  .site-nav a:hover { color: var(--accent); background: transparent; }
  .site-nav a.current { color: var(--accent); }
  .site-nav a.current::after { display: none; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-aside { flex-direction: column; align-items: center; gap: 20px; }
  .hero-photo { width: 220px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 0; border-left: none; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-top: none; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .work-cards { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .contact-tabs { gap: 10px; }
  .contact-tab { padding: 20px 16px; }
  .contact-tab .tab-icon { font-size: 24px; }
  .contact-tab .tab-label { font-size: 16px; }
  .message-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .profile-links { gap: 10px 24px; }
  .steps { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .stack-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 36px 24px; }
  .contact-form-wrap { padding: 28px 22px; }
  .hero-photo { width: 180px; }
  .stat .num { font-size: 28px; }
  .toptal-badge-inner { width: 150px; padding: 16px 0 28px; }
  .toptal-badge-title { font-size: 14px; }
  .site-footer .links { gap: 16px; flex-wrap: wrap; }
}

/* ---------- Landing Pages ---------- */

.landing-page .landing-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-page .landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.landing-logo-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.landing-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.landing-header-toptal {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.landing-header-toptal svg { flex-shrink: 0; }
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.landing-hero {
  padding: 72px 0 56px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.landing-hero-badge {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.landing-hero-badge .toptal-badge { margin: 0; }
.landing-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.landing-hero .lede {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 32px;
}
.landing-hero .btn { font-size: 17px; padding: 16px 36px; }
.landing-hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}
.landing-hero-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.landing-hero-trust-text {
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.landing-hero-trust-text strong {
  color: var(--ink);
  font-size: 15px;
}
.landing-hero-trust-text span {
  font-size: 13px;
  color: var(--ink-3);
}

.landing-problems {
  padding: 64px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.landing-problems h2 {
  text-align: center;
  margin-bottom: 40px;
}
.landing-problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.landing-problem {
  background: var(--bg);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.landing-problem .problem-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}
.landing-problem h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.landing-problem p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.landing-how {
  padding: 72px 0;
}
.landing-how h2 {
  text-align: center;
  margin-bottom: 48px;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.landing-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.landing-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.landing-step p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.landing-trust {
  padding: 56px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.landing-trust-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-trust-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.landing-trust-text {
  flex: 1;
  min-width: 280px;
}
.landing-trust-text h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.landing-trust-text p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.landing-trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.landing-trust-badge {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.landing-trust-badge .trust-num {
  display: block;
  font-size: 28px;
  color: var(--ink);
}

.landing-form-section {
  padding: 72px 0;
}
.landing-form-section h2 {
  text-align: center;
  margin-bottom: 12px;
}
.landing-form-section .form-sub {
  text-align: center;
  color: var(--ink-2);
  margin-bottom: 40px;
  font-size: 16px;
}
.landing-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 36px;
}
.landing-form-wrap .wpforms-field input,
.landing-form-wrap .wpforms-field select,
.landing-form-wrap .wpforms-field textarea {
  background: #fff !important;
}
.landing-form-wrap .wpforms-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-color: #fff !important;
}

.landing-cta-bar {
  padding: 56px 0;
  background: var(--ink);
  text-align: center;
}
.landing-cta-bar h2 {
  color: var(--bg);
  margin-bottom: 8px;
  font-size: 24px;
}
.landing-cta-bar p {
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 24px;
}
.landing-cta-bar .btn-primary {
  background: var(--accent);
  font-size: 17px;
  padding: 16px 36px;
}

.landing-footer {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.landing-footer p {
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 600px) {
  .landing-header-inner { gap: 8px; }
  .landing-header-toptal { display: none; }
  .landing-page .landing-logo span { font-size: 16px; }
  .btn-sm { padding: 8px 16px; font-size: 13px; }
  .landing-hero { padding: 48px 0 36px; }
  .landing-hero h1 { font-size: 28px; }
  .landing-hero .lede { font-size: 16px; }
  .landing-hero .btn { font-size: 15px; padding: 14px 28px; }
  .landing-hero-trust { flex-direction: column; gap: 8px; }
  .landing-hero-trust-text { text-align: center; }
  .landing-problems, .landing-how, .landing-form-section { padding: 48px 0; }
  .landing-form-wrap { padding: 28px 20px; }
  .landing-trust-inner { flex-direction: column; text-align: center; }
  .landing-trust-badges { gap: 16px; }
  .landing-cta-bar { padding: 40px 0; }
  .landing-cta-bar h2 { font-size: 20px; }
}

/* ---------- Print ---------- */

@media print {
  *, *::before, *::after { background: transparent !important; box-shadow: none !important; }
  body { font-size: 12pt; line-height: 1.5; color: #000; }
  .site-header, .nav-toggle, .header-cta, .skip-link,
  .hero-actions, .cta-band, .toptal-badge, .avail-pill,
  .btn { display: none !important; }
  .site-footer { border-top: 1px solid #ccc; margin-top: 2em; padding: 1em 0; }
  .site-footer .links { display: none; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
  .hero { padding: 2em 0; }
  .section { padding: 2em 0; }
  .card, .work-card { border: 1px solid #ccc; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  img { max-width: 100% !important; }
  .hero-photo { width: 120px !important; }
}
