/* ==========================================================================
   Philip Nelson — Recovery specialist & white-hat investigator
   Minimalist portfolio styles
   ========================================================================== */

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --panel: #eeece7;
  --panel-soft: #f5f3ef;
  --ink: #111110;
  --ink-soft: #3c3b36;
  --body: #4c4b45;
  --muted: #75736b;
  --line: #e3e1da;
  --line-strong: #d2cfc7;
  --green: #1f8a53;
  --green-dot: #2fbe6f;
  --green-soft: #e8f4ec;
  --amber: #8a5a12;
  --amber-soft: #fdf7e9;
  --amber-line: #eeddb6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 16, 0.04);
  --shadow-md: 0 12px 30px rgba(17, 17, 16, 0.08);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: #dcefe2;
  color: var(--ink);
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

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

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 249, 0.88);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(17, 17, 16, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-link[aria-current="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.linkedin-link:hover {
  opacity: 0.65;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(20px, 2.4vw, 30px);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.section-note {
  max-width: 64ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn .icon {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 17, 16, 0.16);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: #fdfdfc;
  border-color: #b8b4aa;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 24px;
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(46px, 6.5vw, 82px);
  padding-bottom: clamp(24px, 3vw, 36px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  max-width: 22ch;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5.2vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero-sub {
  max-width: 46ch;
  margin: 0 0 28px;
  color: var(--body);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.65;
}

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

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: clamp(190px, 24vw, 258px);
  aspect-ratio: 1 / 1;
}

.avatar-sm {
  width: 112px;
  aspect-ratio: 1 / 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 0 3px rgba(47, 190, 111, 0.16);
}

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--panel-soft);
  color: #4d4b44;
}

.chip-row-sm {
  gap: 6px;
  margin-top: 14px;
}

.chip-sm {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  box-shadow: none;
  white-space: normal;
}

/* --------------------------------------------------------------------------
   Featured projects
   -------------------------------------------------------------------------- */

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card-media {
  aspect-ratio: 320 / 220;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.card-media svg {
  width: 100%;
  height: 100%;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.card-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.855rem;
  line-height: 1.62;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink);
  font-size: 0.845rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link span {
  transition: transform 0.2s ease;
}

.card-link:hover span {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.about-copy p {
  max-width: 66ch;
  margin: 0 0 14px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-lead {
  color: var(--ink) !important;
  font-size: 1.06rem !important;
  font-weight: 500;
  line-height: 1.6 !important;
}

.about-photo {
  padding-top: 4px;
}

/* --------------------------------------------------------------------------
   Experience timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 16px;
  left: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 26px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c2beb5;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline li:first-child::before {
  background: var(--green);
}

.timeline-role {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.timeline-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.timeline-text {
  max-width: 62ch;
  margin: 0;
  color: var(--body);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   How I work
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.quote-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.quote-badge--sample {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

/* Reserve this style for real feedback from a known client, used with permission. */
.quote-badge--verified {
  border-color: #bfe0cc;
  background: var(--green-soft);
  color: var(--green);
}

.quote-card blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.quote-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.quote-name {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
}

.quote-detail {
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-result {
  align-self: flex-start;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-heading {
  margin: 0;
  font: inherit;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 19px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.faq-q:hover {
  opacity: 0.65;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--muted);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.faq-icon::before {
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 2px;
  left: 8px;
  width: 2px;
  height: 14px;
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}

.js .faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-a-inner {
  padding: 0 42px 20px 0;
}

.faq-a-inner p {
  max-width: 74ch;
  margin: 0;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-a-inner a {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  justify-self: end;
}

.contact-actions .btn {
  min-width: 245px;
}

.contact-note {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(20px, 3vw, 32px);
  padding-block: 28px 84px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-header .header-inner {
  min-height: var(--header-h);
}

.legal-back {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-page {
  padding-block: clamp(36px, 6vw, 68px) clamp(20px, 3vw, 32px);
}

.legal-container {
  max-width: 840px;
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-page h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-toc a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--green);
}

.legal-section {
  padding-top: clamp(34px, 5vw, 56px);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-section h3 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.legal-section p,
.legal-section li {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-section li::marker {
  color: var(--green);
}

.legal-section a {
  color: var(--ink);
  font-weight: 600;
}

.legal-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--amber-soft);
}

.legal-callout p {
  margin: 0;
  color: #5c4112;
}

.legal-callout p + p {
  margin-top: 8px;
}

.legal-callout a {
  color: #5c4112;
}

.legal-disclosures {
  border-top: 1px solid var(--line);
}

.legal-footer {
  margin-top: clamp(24px, 4vw, 44px);
  padding-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   -------------------------------------------------------------------------- */

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 90, 52, 0.28),
    0 2px 6px rgba(17, 17, 16, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-fab:hover {
  background: #1fbe5a;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(18, 90, 52, 0.34),
    0 3px 8px rgba(17, 17, 16, 0.14);
}

.whatsapp-fab:active {
  transform: translateY(0) scale(0.98);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .js .nav-toggle {
    display: flex;
  }

  .js .nav-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    padding: 4px clamp(20px, 5vw, 32px) 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

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

  /* No-JS fallback: links wrap onto their own row instead of hiding. */
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  html:not(.js) .nav-panel {
    order: 3;
    flex: 0 0 100%;
  }

  html:not(.js) .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 18px;
  }

  html:not(.js) .nav-list li + li {
    border-top: 0;
  }

  html:not(.js) .nav-link {
    padding: 7px 0;
    font-size: 0.9rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li {
    border-top: 1px solid var(--panel-soft);
  }

  .nav-link {
    display: block;
    padding: 13px 2px;
    font-size: 0.96rem;
  }

  .nav-link[aria-current="true"]::after {
    display: none;
  }

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

/* --------------------------------------------------------------------------
   Responsive — small tablet / large phone
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 8.6vw, 2.75rem);
  }

  .hero-photo {
    gap: 14px;
  }

  .avatar-lg {
    width: min(220px, 62vw);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .about-photo {
    order: -1;
    padding-top: 0;
  }

  .avatar-sm {
    width: 92px;
  }

  .about-lead {
    font-size: 1rem !important;
  }

  .steps,
  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .step-card,
  .quote-card {
    padding: 20px;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }

  .contact-actions {
    align-items: stretch;
    justify-self: stretch;
  }

  .contact-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .faq-a-inner {
    padding-right: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer {
    padding-bottom: 104px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — phone
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(1.95rem, 9.2vw, 2.4rem);
    line-height: 1.09;
  }

  .hero-sub {
    margin-bottom: 24px;
    font-size: 0.95rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    padding-inline: 12px;
    font-size: 0.85rem;
  }

  .chip {
    gap: 6px;
    padding: 6px 10px 6px 8px;
    font-size: 0.81rem;
  }

  .chip-icon {
    width: 20px;
    height: 20px;
  }

  .card-body {
    padding: 16px;
  }

  .card-title {
    font-size: 0.94rem;
  }

  .contact-card {
    padding: 22px;
  }

  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .footer-links {
    gap: 6px 14px;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }

  .linkedin-link span {
    display: none;
  }

  .chip-row {
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
