/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #f2e8dc;
  --cream-2: #e8d8c8;
  --white:   #ffffff;
  --navy:    #1a1f36;
  --navy-2:  #2d3561;
  --teal:    #2a6464;
  --teal-light: #3d8080;
  --orange:  #e85d3a;
  --orange-light: #f07050;
  --muted:   #6b7280;
  --border:  #ddd0c4;
  --card:    #ffffff;
  --radius:  16px;
  --transition: 0.25s ease;
  --max-w:   1120px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --line:    rgba(26, 31, 54, 0.05); /* ruled-paper background lines */
  --shadow:  26, 31, 54;             /* rgb triplet for tinted shadows */
  --topbar:  #1a1f36;
  --footer-bg: #1a1f36;
}

/* Dark theme: same tokens, flipped values. Orange accent stays identical. */
html[data-theme="dark"] {
  --cream:   #14172b;
  --cream-2: #1d2140;
  --white:   #1f2440;
  --navy:    #f2ede4;
  --navy-2:  #d8d2c6;
  --teal:    #6db3ad;
  --teal-light: #8cc7c1;
  --muted:   #9aa1b5;
  --border:  #333a5c;
  --card:    #1f2440;
  --line:    rgba(255, 255, 255, 0.045);
  --shadow:  0, 0, 0;
  --topbar:  #0d1020;
  --footer-bg: #0d1020;
}

html { scroll-behavior: smooth; }

/* Anchored sections stop below the fixed nav */
[id] { scroll-margin-top: 56px; }

body {
  /* Ruled-paper texture carried over from the carrd site, at lower contrast */
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    var(--line) 47px,
    var(--line) 48px
  ), var(--cream);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 24px;
}

.section--alt {
  background: transparent;
}

.section .container {
  background: var(--white);
  border-radius: 24px;
  padding: 64px 56px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 720px;
  margin: 0 auto;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
  text-wrap: balance;
}

.section__sub {
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 56px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,93,58,0.3); }

.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: var(--white);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav__topbar {
  height: 6px;
  background: var(--topbar);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
}

.nav {
  position: fixed;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  padding: 14px 24px;
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: 0 4px 20px rgba(var(--shadow),0.08); }

.nav__pills-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--navy);
  transition: all var(--transition);
}
.nav__theme:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.nav__theme .icon-sun { display: none; }
html[data-theme="dark"] .nav__theme .icon-sun { display: block; }
html[data-theme="dark"] .nav__theme .icon-moon { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  position: absolute;
  right: 0;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: transparent;
  padding: 100px 0 72px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero__card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 48px rgba(var(--shadow),0.10), 0 2px 8px rgba(var(--shadow),0.06);
  padding: 48px 48px 40px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

/* ── HERO PHOTO ──────────────────────────────────────────────────────────── */
.hero__photo-wrap {
  position: relative;
  margin-bottom: 24px;
}

.hero__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow: 0 8px 32px rgba(var(--shadow),0.12);
  background: var(--cream-2);
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero__photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--orange);
  animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__specialty {
  display: inline-block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--teal);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

.hero__platforms {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero__divider {
  width: 72px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin: 4px auto 28px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.85;
  max-width: 460px;
  width: 100%;
  margin-bottom: 0;
}

.hero__tagline-accent {
  color: var(--orange);
  font-style: italic;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.hero__socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero__socials .hero__social-cv {
}
.hero__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: var(--white);
  transition: all var(--transition);
}
.hero__socials a:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 4px 12px rgba(232,93,58,0.15);
}

/* ── ABOUT ───────────────────────────────────────────────────────────────── */
.about .section__title {
  letter-spacing: 0.06em;
}

.about__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.about__pill {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid var(--teal);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.about__video {
  width: 100%;
}

.video-ring-wrap {
  position: relative;
  padding: 10px;
}

.video-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-ring rect {
  animation: marchingAnts 1.5s linear infinite;
}

@keyframes marchingAnts {
  to { stroke-dashoffset: -20; }
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  background: var(--cream);
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.about__content {
  width: 100%;
  text-align: left;
}

.about__content p {
  color: var(--muted);
  margin-bottom: 16px;
}
.about__content p strong { color: var(--navy); }

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  width: 100%;
}

.stat__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── VIDEO EMBED ─────────────────────────────────────────────────────────── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 8px 32px rgba(var(--shadow),0.1);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── TOOLS ───────────────────────────────────────────────────────────────── */
.tools__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(var(--shadow),0.05);
}
.tool-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,58,0.12);
}
.tool-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.tool-card span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.tools__cta {
  text-align: center;
  margin-top: 48px;
}
.tools__cta p {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────────────── */
.testimonials__videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.testimonial-video {
  flex: 0 1 260px;
  text-align: center;
}

.video-embed--portrait {
  padding-bottom: 177.78%; /* 9:16 for YouTube Shorts */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--shadow),0.12);
}

.testimonial-video__quote {
  margin-top: 18px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.testimonial-video__name {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--navy);
}
.testimonial-video__role {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.testimonials__upwork {
  margin-top: 56px;
  text-align: center;
}
.testimonials__divider {
  width: 64px;
  height: 2px;
  background: var(--orange);
  margin: 0 auto 32px;
}
.testimonials__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.upwork-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.upwork-scroll img {
  flex: 0 0 auto;
  width: min(480px, 85%);
  scroll-snap-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(var(--shadow),0.06);
}
.upwork-scroll__hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}
.upwork-scroll img { cursor: zoom-in; }

/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(var(--shadow),0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  overscroll-behavior: contain;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

/* ── MY WORK ─────────────────────────────────────────────────────────────── */
.work__rows {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.work-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.work-row__label {
  display: inline-block;
  border: 1.5px solid var(--orange);
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 100px;
}
.work-row__hint {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.work-row { position: relative; }

.work-row__deck {
  display: grid;
  padding: 4px 0 10px;
}
.work-row__deck .project-card {
  grid-area: 1 / 1;
  width: min(480px, 90%);
  justify-self: center;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}
/* deck positions: active card in front, next ones peeking behind on the right */
.work-row__deck .project-card.is-active { z-index: 3; }
.work-row__deck .project-card.is-next {
  z-index: 2;
  transform: translateX(20px) scale(0.965);
  pointer-events: none;
}
.work-row__deck .project-card.is-next2 {
  z-index: 1;
  transform: translateX(40px) scale(0.93);
  pointer-events: none;
}
.work-row__deck .project-card.is-gone {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-28px) scale(0.95);
  pointer-events: none;
}

.work-row__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(var(--shadow),0.15);
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition);
}
.work-row__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--orange);
  animation: spinSlow 12s linear infinite;
}
.work-row__arrow--prev { left: -18px; }
.work-row__arrow--next { right: -18px; }
.work-row__arrow:hover { color: var(--orange); }
.work-row__arrow[disabled] {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 640px) {
  .work-row__arrow { display: none; }
}
/* single-card rows: no scrolling needed, hide the hint */
.work-row:has(.project-card:only-child) .work-row__hint { visibility: hidden; }

/* compact card treatment inside rows */
.work-row__deck .project-card__thumb--contain { padding: 12px; }
.work-row__deck .project-card__body { padding: 18px; }
.work-row__deck .project-card__body p:not(.project-card__metric) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.work-row__deck .project-card__body p.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.card-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.card-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(var(--shadow),0.05);
}
.project-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232,93,58,0.12);
}
.project-card.hidden { display: none; }

.project-card__thumb {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: var(--cream-2);
}
.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 8px;
  margin: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.project-card__thumb a {
  display: block;
  height: 100%;
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card__thumb--contain {
  background: #f2e8dc;
  display: flex;
  align-items: center;
  padding: 20px;
}
.project-card__thumb--contain a {
  display: block;
  height: auto;
}
.project-card__thumb--contain img {
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(var(--shadow),0.18);
}

.project-card__title-link {
  color: inherit;
  text-decoration: none;
}
.project-card__title-link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-card__watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  align-self: flex-start;
  padding: 9px 20px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  background: var(--white);
}
.project-card__watch:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 4px 14px rgba(232,93,58,0.18);
}
.project-card:hover .project-card__thumb img { transform: scale(1.04); }

.project-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.project-card__metric {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-card__body p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.project-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-card__tools span {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.work__cta {
  text-align: center;
  margin-top: 56px;
  color: var(--muted);
}
.work__cta p { margin-bottom: 14px; }

/* ── CONTACT ─────────────────────────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text .section__title,
.contact__text p { text-align: left; }

.contact__text p {
  color: var(--muted);
  margin-bottom: 32px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact__links a:hover { color: var(--orange); }

.contact__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--border); }
html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder { color: #646c8f; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

/* Honeypot field: visually removed but present for bots */
.form-group--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__form-status {
  font-size: 0.875rem;
  color: var(--teal);
  min-height: 1.2em;
  margin: -8px 0 0;
}
.contact__form-status.is-error { color: var(--orange); }

.contact__book {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.contact__book a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.contact__book a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__inner p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

.footer__links { display: flex; gap: 24px; }
.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }

/* ── UPWORK BADGES ───────────────────────────────────────────────────────── */
.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
}

.badge svg { flex-shrink: 0; }

/* ── SCROLL TO TOP ───────────────────────────────────────────────────────── */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(var(--shadow),0.15);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--orange);
  animation: spinSlow 12s linear infinite;
}
.to-top:hover {
  color: var(--orange);
  box-shadow: 0 6px 20px rgba(232,93,58,0.25);
}

/* ── FADE-IN ANIMATION ───────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__photo-ring { animation: none; }
  .video-ring rect { animation: none; }
  .work-row__arrow::before { animation: none; }
  .to-top::before { animation: none; }
  .fade-in { transition: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .section { padding: 32px 16px; }
  .section .container { padding: 40px 24px; border-radius: 16px; }

  .nav__pills-wrap { min-height: 44px; }
  .nav__theme {
    margin-left: auto;
    margin-right: 12px;
    width: 38px;
    height: 38px;
    z-index: 100; /* stays clickable above the open menu overlay */
  }
  .nav__burger {
    position: relative;
    z-index: 100; /* stays clickable above the open menu overlay */
    margin-left: 0;
    padding: 10px;
  }

  .nav__pills { display: none; }
  /* Full-screen overlay below the fixed nav (nav z-index 100 keeps it visible) */
  .nav__pills.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--cream);
    padding: 110px 24px 32px;
    gap: 16px;
    z-index: 99;
    align-items: center;
    justify-content: flex-start;
    overscroll-behavior: contain;
  }
  .nav__pills.open .nav__pill { width: 100%; max-width: 280px; justify-content: center; font-size: 1rem; }
  .nav__burger { display: flex; }

  .hero__card { padding: 36px 24px 32px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .tools__cta .btn { white-space: normal; }

  /* 16px floor prevents iOS Safari zooming the page on input focus */
  .form-group input,
  .form-group textarea { font-size: 16px; }

  .project-card__thumb--contain { padding: 14px; }
  .project-card__watch { align-self: stretch; justify-content: center; }

  .about__pill { font-size: 0.68rem; padding: 5px 12px; letter-spacing: 0.03em; }

  .upwork-scroll img { width: 94%; }

  .tool-card { flex: 0 0 100px; padding: 16px 10px; gap: 8px; }
  .tool-card img { width: 44px; height: 44px; }
  .tool-card span { font-size: 0.7rem; }

  .about__stats { grid-template-columns: 1fr 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
}
