:root {
  /* brand accents — identical in both themes */
  --purple: #bc80bb;
  --green: #97c594;
  --blue: #669aca;
  --coral: #eb5f69;
  --sand: #e3e3e3;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'Roboto Mono', Menlo, Consolas, monospace;

  /* dark theme (base/default) */
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-elevated: #0f0f0f;
  --bg-elevated-2: #050505;
  --surface: #1a1a1a;
  --text: #ffffff;
  --text-soft: #c9c9c9;
  --text-secondary: #9a9a9a;
  --text-dim: #6f6f6f;
  --line: #2a2a2a;
  --line-strong: #4a4a4a;
  --header-scrim: rgba(10, 10, 10, 0.86);
  --btn-invert-bg: #ffffff;
  --btn-invert-text: #000000;
  --cta-gradient: linear-gradient(120deg, #171018 0%, #000 60%);
  --hero-fade: #000;
}

[data-theme='light'] {
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f2f0ed;
  --surface: #f0efec;
  --text: #15120f;
  --text-soft: #3d3a37;
  --text-secondary: #6b655f;
  --text-dim: #726c65;
  --line: #e7e3de;
  --line-strong: #cfc9c1;
  --header-scrim: rgba(255, 255, 255, 0.86);
  --btn-invert-bg: #15120f;
  --btn-invert-text: #ffffff;
  --cta-gradient: linear-gradient(120deg, #f5eef6 0%, #ffffff 60%);
  --hero-fade: #fff;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Browsers italicize <address> by default; reset since it's used here
   purely for semantics (contact info), not the traditional letter style. */
address {
  font-style: normal;
  margin: 0;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}
section {
  position: relative;
  transition: background-color 0.3s ease;
}
#work,
#services,
#process,
#why,
#about,
#contact {
  scroll-margin-top: 110px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 18px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.03;
}
h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
}
h3 {
  font-size: 22px;
  line-height: 1.2;
}
p {
  color: var(--text-secondary);
  margin: 0;
}
.txt-purple {
  color: var(--purple);
  font-style: italic;
}
.txt-green {
  color: var(--green);
  font-style: italic;
}
.txt-blue {
  color: var(--blue);
  font-style: italic;
}
.txt-coral {
  color: var(--coral);
  font-style: italic;
}
/* Visually hidden but present for screen readers / the document outline —
   used for headings that would be visually redundant with an .eyebrow
   label already on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition:
    background 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: var(--header-scrim);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-dot {
  color: var(--purple);
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s;
}
nav.main-nav a:hover {
  opacity: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--btn-invert-bg);
  color: var(--btn-invert-text);
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--text);
}
.btn-purple {
  background: var(--purple);
  color: #000;
}
.btn-green {
  background: var(--green);
  color: #000;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme='light'] .theme-toggle .icon-sun {
  display: none;
}
[data-theme='light'] .theme-toggle .icon-moon {
  display: block;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 100px 30px 30px;
}
.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 24px;
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 180px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(188, 128, 187, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(102, 154, 202, 0.16), transparent 55%),
    var(--hero-fade);
}
.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin-bottom: 26px;
}
.hero p.lede {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-flags {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-flags span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ---------- Marquee ---------- */
.marquee-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
  transition: background-color 0.3s ease;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 28px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.marquee-track span em {
  color: var(--text);
  font-style: normal;
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Pitch ---------- */
.pitch {
  padding: 120px 0;
  background: var(--bg);
}
.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: start;
}
.pitch-grid h2 {
  margin-bottom: 30px;
}
.pitch-cta {
  margin-top: 34px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.value-item p:not(.value-label) {
  font-size: 15px;
}

/* ---------- Work ---------- */
.work {
  padding: 60px 0 130px;
  background: var(--bg);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2 {
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
}
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.work-filter:empty {
  display: none;
}
.work-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}
.work-filter-pill svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}
.work-filter-pill:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.work-filter-pill.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.work-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.work-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.work-caption-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.work-caption-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -6px 0 10px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-tags li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.work-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.work-card:hover,
.work-card.is-previewing {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.4);
}
/* Persistent "browser chrome" strip — signals up front that this tile is a
   live site preview, and doubles as a friendly stand-in for the raw demo
   URL. Stays visible in both the default and previewing states. */
.work-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.work-chrome-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.work-chrome-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  display: block;
}
.work-chrome-url {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-chrome-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
}
/* Persistent "View Project" affordance — visible by default, fades away
   once the live preview takes over so it doesn't sit on top of the iframe. */
.work-cta {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.work-card.is-previewing .work-cta {
  opacity: 0;
  transform: translateY(6px);
}
.work-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.work-icon--image {
  width: 132px;
  height: 132px;
  background: none;
  border-radius: 0;
}
.work-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
}
.work-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  overflow: hidden;
  background: #fff;
}
.work-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}
.work-card.is-previewing .work-icon {
  opacity: 0;
  transform: scale(0.9);
}
.work-card.is-previewing .work-preview {
  opacity: 1;
}
/* Card background gradients, cycled by category (see categories.json's
   "theme" field / js/projects.js's THEME_COUNT). Themes 1–2 are the
   original two gradients (kept pixel-identical); 3–6 extend the same
   155deg, 3-stop formula so any number of new categories still gets a
   visually distinct card without per-project manual design work. */
.work-theme-1 {
  background: linear-gradient(155deg, #cdeee6 0%, #3fae9c 55%, #1c5f56 100%);
}
.work-theme-2 {
  background: linear-gradient(155deg, #e9c9d8 0%, var(--purple) 65%, #7c5591 100%);
}
.work-theme-3 {
  background: linear-gradient(155deg, #d6e6f7 0%, var(--blue) 65%, #2f4f70 100%);
}
.work-theme-4 {
  background: linear-gradient(155deg, #fbe3d6 0%, var(--coral) 65%, #7a2f36 100%);
}
.work-theme-5 {
  background: linear-gradient(155deg, #e4ecd9 0%, var(--green) 55%, #3d5c3a 100%);
}
.work-theme-6 {
  background: linear-gradient(155deg, #ece8e0 0%, var(--sand) 55%, #6f6b62 100%);
}
/* Touch-only hint: hover-capable devices already get the mouseover
   preview as the discoverability cue, so this stays hidden there and
   only shows where there's no hover to rely on. */
.work-hint {
  display: none;
}
@media (hover: none) {
  .work-hint {
    display: block;
    position: absolute;
    right: 16px;
    bottom: 20px;
    z-index: 1;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
  }
  .work-card.is-previewing .work-hint {
    opacity: 0;
  }
}

/* ---------- Services ---------- */
.services {
  padding: 40px 0 130px;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated-2));
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.3s ease;
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}
.service-card h3 {
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
}

/* ---------- Process ---------- */
.process {
  padding: 100px 0;
  background: var(--bg);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.process-step {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.process-num {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
}

/* ---------- Why Work With Me ---------- */
.why {
  padding: 40px 0 130px;
  background: var(--bg);
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- Big CTA ---------- */
.big-cta {
  padding: 120px 0;
  background: var(--cta-gradient);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.big-cta .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.big-cta h2 {
  margin-bottom: 26px;
}
.big-cta-lede {
  margin: 22px 0 30px;
  font-size: 16px;
}
.big-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-methods {
  display: grid;
  gap: 14px;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.contact-pill:hover {
  border-color: var(--line-strong);
  background: var(--bg-elevated-2);
}
.contact-pill .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-pill .icon svg {
  width: 20px;
  height: 20px;
}
.contact-pill .meta {
  display: flex;
  flex-direction: column;
}
.contact-pill .meta .label {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-pill .meta .value {
  font-size: 15px;
  font-weight: 600;
}
.icon-call {
  background: rgba(151, 197, 148, 0.15);
}
.icon-call svg {
  stroke: var(--green);
}
.icon-whatsapp {
  background: rgba(37, 211, 102, 0.15);
}
.icon-whatsapp svg {
  fill: #25d366;
  stroke: none;
}
.icon-facetime {
  background: rgba(102, 154, 202, 0.15);
}
.icon-facetime svg {
  stroke: var(--blue);
}
.icon-email {
  background: rgba(188, 128, 187, 0.15);
}
.icon-email svg {
  stroke: var(--purple);
}

/* ---------- About ---------- */
.about {
  padding: 130px 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 28% 18%, rgba(188, 128, 187, 0.16), transparent 55%),
    linear-gradient(155deg, #3a2a3d, #0a0a0a 70%);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.about-photo::before {
  content: 'DR';
  position: absolute;
  top: -40px;
  right: -20px;
  font-size: 220px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: -0.05em;
}
.about-photo .name-tag {
  position: relative;
  z-index: 1;
}
.about-photo .name-tag .n {
  font-weight: 700;
  font-size: 17px;
}
.about-photo .name-tag .r {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.about-heading {
  margin-bottom: 24px;
}
.about-copy p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.about-stats .stat {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.about-stats .stat .num {
  /* Fluid instead of fixed: "1 Business Day" is a lot longer than the old
     "24h", so this scales down before it can wrap awkwardly in a narrow
     grid column. */
  font-size: clamp(16px, 4vw, 28px);
  font-weight: 700;
}
.about-stats .stat .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ---------- Footer ---------- */
footer {
  padding: 70px 0 30px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-top h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.footer-top ul li {
  margin-bottom: 10px;
}
.footer-top ul li a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s;
}
.footer-top ul li a:hover {
  color: var(--text);
}
.footer-brand .logo {
  font-size: 22px;
  margin-bottom: 14px;
}
.footer-brand .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
}
.footer-brand p {
  font-size: 14px;
  max-width: 280px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Admin dashboard ----------
   Client-side project/category editor opened via the gear icon in the
   header (js/project-admin.js). No backend — see that file's top comment
   for the honest explanation of what this can and can't do. Visually it
   reuses the same overlay pattern as .mobile-menu (fixed, full-screen,
   var(--bg)) and the site's existing .btn / form-field conventions, since
   this is the first place the site needs real form controls. */
/* .admin-toggle intentionally has no rules of its own — the gear button
   carries the shared .theme-toggle class too, so it already gets the same
   circular sizing/hover treatment as the theme switcher next to it. */
.admin-dashboard {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* The unconditional `display: flex` above has higher precedence than the
   browser's default `[hidden] { display: none }` UA rule (author CSS beats
   UA CSS at equal specificity), so without this override the dashboard
   stayed visible — empty, since it's never been opened/rendered — the
   moment the page loaded, regardless of the `hidden` property JS sets.
   This rule restores `hidden` as the actual source of truth. */
.admin-dashboard[hidden] {
  display: none;
}
.admin-panel {
  width: 100%;
  max-width: 760px;
  max-height: min(820px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.admin-panel-header h2 {
  font-size: 18px;
  margin: 0;
}
.admin-user-email {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}
.admin-user-email:empty {
  display: none;
}
.admin-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.admin-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}
.admin-close:hover {
  color: var(--text);
}
.admin-toast {
  margin: 16px 26px 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.admin-toast--success {
  background: rgba(151, 197, 148, 0.15);
  color: var(--green);
  border: 1px solid rgba(151, 197, 148, 0.35);
}
.admin-toast--error {
  background: rgba(235, 95, 105, 0.12);
  color: var(--coral);
  border: 1px solid rgba(235, 95, 105, 0.35);
}
.admin-body {
  padding: 22px 26px 28px;
  overflow-y: auto;
}
.admin-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 18px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.admin-toolbar .btn {
  padding: 10px 18px;
  font-size: 13px;
}
.admin-subhead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.admin-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 14px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-category-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-category-cell svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  flex-shrink: 0;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  text-align: right;
}
.admin-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-link-btn:hover {
  color: var(--text);
}
.admin-link-btn--danger {
  color: var(--coral);
}
.admin-confirm {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-form-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}
.admin-form-header h3 {
  font-size: 18px;
  margin: 0;
}

/* ---------- Form fields ----------
   No forms existed on the site before this dashboard, so these are the
   site's first base input/select/textarea styles — kept scoped to
   .admin-form so they can't leak into anything else. */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.admin-form input[type='text'],
.admin-form input[type='url'],
.admin-form select,
.admin-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
}
.admin-form input[type='text']:focus,
.admin-form input[type='url']:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--line-strong);
}
.admin-form input[type='file'] {
  font-size: 13px;
  color: var(--text-secondary);
}
.admin-form textarea {
  resize: vertical;
  font-family: inherit;
}
.admin-help {
  font-size: 12px;
  color: var(--text-dim);
  margin: -8px 0 0;
}
.admin-image-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px;
}
.admin-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.admin-checkbox input {
  width: auto;
}
.admin-extra {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.admin-extra summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.admin-extra .admin-form {
  margin-top: 14px;
}
.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}
.admin-form-actions .btn {
  padding: 11px 20px;
  font-size: 13px;
}
.admin-inline-category {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-category-edit-row td {
  background: var(--bg-soft);
}
.admin-form--inline {
  padding: 4px 0;
}

/* ---------- Icon picker ---------- */
.admin-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-icon-option {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.admin-icon-option svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-soft);
}
.admin-icon-option:hover {
  border-color: var(--line-strong);
}
.admin-icon-option.is-selected {
  background: var(--text);
  border-color: var(--text);
}
.admin-icon-option.is-selected svg {
  stroke: var(--bg);
}

@media (max-width: 560px) {
  .admin-dashboard {
    padding: 0;
  }
  .admin-panel {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }
  .admin-row-actions {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }
  nav.main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .pitch-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reasons-grid {
    grid-template-columns: 1fr 1fr;
  }
  .big-cta .container {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 280px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 150px 0 70px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
