/* ==========================================================================
   UB Web Care - stylesheet
   Table of contents:
   1. Tokens & reset
   2. Base typography
   3. Layout utilities
   4. Buttons
   5. Header & nav
   6. Hero
   7. Trust strip
   8. Sections (services, work, process, pricing, about, cta, footer)
   9. Dark mode tokens
   10. Motion & accessibility
   11. Responsive breakpoints
   ========================================================================== */

/* -------------------- 1. Tokens & reset -------------------- */
:root {
  --ink: #17201d;
  --ink-soft: #4c564f;
  --ink-faint: #7c857d;
  --paper: #f7f5ef;
  --paper-alt: #efece2;
  --line: #ded9c9;
  --white: #ffffff;
  --accent: #4f7a63;
  --accent-dark: #3a5c49;
  --accent-light: #72a98f;
  --accent-tint: #e8efe9;
  --gold: #b9843a;

  /* Status badge tokens */
  --status-live-bg: #eaf6ee;
  --status-live-text: #1f7a3f;
  --status-live-border: #cdeed8;

  /* Featured card accent tokens */
  --featured-check: #8fa0ff;
  --featured-subtext: #a9a9ba;

  /* Navbar & Glassmorphism Tokens */
  --nav-bg: rgba(247, 245, 239, 0.45);
  --nav-border: rgba(222, 217, 201, 0.5);
  --nav-glass-inset: rgba(255, 255, 255, 0.3);
  --nav-sheen: rgba(114, 169, 143, 0.6);
  --nav-pill-hover: rgba(79, 122, 99, 0.08);
  --nav-scrolled-shadow: 0 8px 24px -12px rgba(23, 32, 29, 0.12);
  --glass-control-bg: rgba(255, 255, 255, 0.15);
  --mobile-menu-bg: rgba(247, 245, 239, 0.85);
  --brand-hover-bg: rgba(79, 122, 99, 0.06);
  --mobile-link-hover-bg: rgba(79, 122, 99, 0.05);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(23, 32, 29, 0.05), 0 12px 28px -16px rgba(23, 32, 29, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* -------------------- 9. Dark mode tokens -------------------- */
[data-theme="dark"] {
  --ink: #e8efe9;
  --ink-soft: #c7d1c7;
  --ink-faint: #a6b3ad;
  --paper: #0d1410;
  --paper-alt: #141e19;
  --line: #2a3e37;
  --white: #17201d;
  --accent: #72a98f;
  --accent-dark: #8bc1a7;
  --accent-light: #4f7a63;
  --accent-tint: rgba(146, 185, 160, 0.15);
  --gold: #c9a247;

  /* Status badge tokens (Dark Mode) */
  --status-live-bg: rgba(31, 122, 63, 0.22);
  --status-live-text: #8bc1a7;
  --status-live-border: rgba(139, 193, 167, 0.35);

  /* Featured card accent tokens (Dark Mode) */
  --featured-check: #a4b2ff;
  --featured-subtext: #c0c0d0;

  /* Navbar & Glassmorphism Tokens (Dark Mode) */
  --nav-bg: rgba(13, 20, 16, 0.5);
  --nav-border: rgba(42, 62, 55, 0.55);
  --nav-glass-inset: rgba(255, 255, 255, 0.04);
  --nav-sheen: rgba(139, 193, 167, 0.75);
  --nav-pill-hover: rgba(114, 169, 143, 0.14);
  --nav-scrolled-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45);
  --glass-control-bg: rgba(255, 255, 255, 0.05);
  --mobile-menu-bg: rgba(13, 20, 16, 0.88);
  --brand-hover-bg: rgba(114, 169, 143, 0.08);
  --mobile-link-hover-bg: rgba(114, 169, 143, 0.1);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 28px -16px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-faint) var(--paper-alt);
}

/* Custom slim scrollbar - sage on hover */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-alt); }
::-webkit-scrollbar-thumb {
  background-color: var(--ink-faint);
  border-radius: 999px;
  border: 2.5px solid var(--paper-alt);
  transition: background-color 0.18s var(--ease);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--accent-light); }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* -------------------- 2. Base typography -------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 2.85rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.mono { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  margin: 0 0 0.7em;
}
.eyebrow-invert { color: var(--accent-light); }

.section-lead {
  max-width: 46ch;
  font-size: 1.05rem;
}

code {
  font-family: var(--font-mono);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 0.7em 1.2em;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* -------------------- 3. Layout utilities -------------------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-alt { background: var(--paper-alt); }
.section-form { padding-block: clamp(3.5rem, 7vw, 6rem); background-color: var(--paper-alt);}

section[id], .cta-band[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}
.card-grid-3 {   
  grid-template-columns: repeat(2, minmax(280px, 380px)); 
  justify-content: center;
}

/* -------------------- 4. Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.btn-outline-invert { background: transparent; color: var(--white); border-color: var(--paper-alt); }
.btn-outline-invert:hover { border-color: var(--white); }

.btn-small { padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn-large { padding: 1em 1.7em; font-size: 1rem; }
.btn-full { width: 100%; }

/* -------------------- 5. Header & nav -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  isolation: isolate;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 0 var(--nav-glass-inset) inset;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 15%,
    var(--nav-sheen) 50%,
    transparent 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glassSheen 7s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes glassSheen {
  0% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

.site-header[data-scrolled="true"] {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--nav-border);
  box-shadow: var(--nav-scrolled-shadow), 0 1px 0 var(--nav-glass-inset) inset;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--glass-control-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex: none;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--ink);
  transition: fill 0.18s var(--ease);
}

.theme-toggle:hover svg {
  fill: var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  flex: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.brand:hover {
  background: var(--brand-hover-bg);
}
.brand-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand-word { white-space: nowrap; }

.main-nav ul {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.main-nav a:hover {
  color: var(--ink);
  background: var(--nav-pill-hover);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--glass-control-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  cursor: pointer;
  flex: none;
  transition: all 0.2s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) 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(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  height: calc(100dvh - var(--header-h));
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--line);
  z-index: 201;
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.25s var(--ease);
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem;}
.mobile-menu a {
  display: block;
  padding: 0.85em 0.5em;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: padding-left 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.mobile-menu a:hover {
  padding-left: 0.85em;
  color: var(--accent);
  background: var(--mobile-link-hover-bg);
}
.mobile-menu-actions { display: flex; flex-direction: column; gap: 0.8rem; }

/* -------------------- 6. Hero -------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3rem, 7vh, 5.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-ambient-glow {
  position: absolute;
  width: clamp(320px, 60vw, 760px);
  height: clamp(320px, 60vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 169, 143, 0.22) 0%, rgba(114, 169, 143, 0.06) 45%, transparent 70%);
  filter: blur(40px);
  transform: translateZ(0);
}

[data-theme="dark"] .hero-ambient-glow {
  background: radial-gradient(circle, rgba(114, 169, 143, 0.16) 0%, rgba(114, 169, 143, 0.04) 45%, transparent 70%);
}

.hero-watermark {
  position: absolute;
  max-width: 620px;
  width: 75%;
  height: auto;
  opacity: 0.07;
  mix-blend-mode: multiply;
  user-select: none;
  pointer-events: none;
  transform: translateY(-8px);
}

[data-theme="dark"] .hero-watermark {
  opacity: 0.05;
  filter: invert(1);
  mix-blend-mode: screen;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-card {
  position: relative;
  text-align: center;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.4rem, 3.5vw, 2.75rem);
  background: rgba(247, 245, 239, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(79, 122, 99, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -15px rgba(23, 32, 29, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

[data-theme="dark"] .hero-card {
  background: rgba(13, 20, 16, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
}

.status-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(79, 122, 99, 0.7);
  animation: pulse-green 2.2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(79, 122, 99, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(79, 122, 99, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(79, 122, 99, 0);
  }
}

.hero-card h1 {
  font-size: clamp(2.1rem, 4vw + 0.5rem, 3.35rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
  color: var(--ink);
  text-shadow: none;
}

.hero-card .hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1.35rem auto 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
}

.hero-card .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-card .hero-fineprint {
  margin-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 500;
}

@media (max-height: 560px) {
  .hero-section { min-height: auto; padding-block: 2rem; }
  .hero-card {
    max-width: 620px;
    padding: 1rem 1.25rem;
  }
  .hero-card .eyebrow { font-size: 0.82rem; margin-bottom: 0.35rem; }
  .hero-card h1 { font-size: clamp(1.8rem, 4vw + 0.4rem, 2.45rem); margin-bottom: 0.35rem; }
  .hero-card .hero-lead { font-size: 0.88rem; line-height: 1.3; }
  .hero-proof { margin-top: 0.65rem; font-size: 0.68rem; gap: 0.35rem 0.8rem; }
  .hero-card .hero-actions { margin-top: 0.85rem; gap: 0.55rem; }
  .hero-card .hero-actions .btn { padding: 0.65em 1em; font-size: 0.86rem; }
  .hero-card .hero-fineprint { display: none; }
}

/* -------------------- 7. Trust strip -------------------- */
.trust-strip {
  background: var(--ink);
  color: var(--white);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 1.6rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.2rem; }
.trust-figure {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--paper);
}
.trust-label { font-size: 0.78rem; color: var(--accent); }

/* -------------------- 8. Sections -------------------- */

/* Services */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-card);
}
.service-icon {
  width: 30px; height: 30px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.1rem;
}
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { margin: 0; font-size: 0.96rem; }

/* Work / project cards */
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.project-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.project-status {
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  flex: none;
}
.project-status[data-status="live"] { background: var(--status-live-bg); color: var(--status-live-text); border-color: var(--status-live-border); }

.project-card h3 { margin-bottom: 0.3em; }
.project-card p { font-size: 0.95rem; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 0.25em 0.55em;
  border-radius: 6px;
  color: var(--ink-soft);
}
.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}
.project-link .icon { width: 1em; height: 1em; }
.project-link:hover { text-decoration: underline; }

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 2px solid var(--line);
}
.process-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.process-step h3 { margin-bottom: 0.35em; }
.process-step p { font-size: 0.94rem; margin: 0; }

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.18s var(--ease);
}

.faq-item:hover { box-shadow: 0 4px 20px -4px rgba(23, 32, 29, 0.12); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--ink);
}

.faq-question:hover { background: var(--paper-alt); }

.faq-question:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.faq-question span {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  text-align: left;
}

.faq-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  transform: rotate(0deg);
  transition: transform 0.25s var(--ease), color 0.18s var(--ease);
  color: var(--accent);
}

.faq-item[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-dark);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.8rem;
  background: transparent;
  transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.35s var(--ease);
}

.faq-item[aria-expanded="true"] .faq-answer {
  max-height: 2000px;
  opacity: 1;
  padding: 0 1.8rem 1.6rem 1.8rem;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
}

.faq-answer p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 760px) {
  .faq-item {
    border-radius: var(--radius-md);
  }
  .faq-question { padding: 1.2rem 1.4rem; }
  .faq-question span { font-size: 1rem; }
  .faq-item[aria-expanded="true"] .faq-answer { padding: 0 1.4rem 1.2rem 1.4rem; }
}

/* Pricing */
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.price-card-featured {
  border-color: var(--ink);
  border-top: 3px solid var(--gold);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-6px);
}
.price-card-featured h3,
.price-card-featured .price-figure { color: var(--white); }
.price-card-featured .price-renewal { color: var(--paper-alt); }
.price-card-featured .price-features li { color: var(--paper); border-color: rgba(255,255,255,0.14); }
.price-card-featured .price-features li::before { color: var(--featured-check); }

.price-badge {
  position: absolute;
  top: -13px;
  left: 1.7rem;
  width: max-content;
  max-width: calc(100% - 3.4rem);
  margin: 0;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35em 0.75em;
  border-radius: 999px;
}

.price-figure {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.5rem 0 0.1rem;
}
.price-figure span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--ink-faint); }
.price-card-featured .price-figure span { color: var(--featured-subtext); }
.price-renewal { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.3rem; }

.price-features { margin: 0 0 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.price-features li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}
.price-features li:first-child { border-top: 0; padding-top: 0; }
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.price-features li:first-child::before { top: 0.15rem; }

/* About (compact) */
.about-grid { max-width: 68ch; }
.about-compact {
  max-width: 56ch;
  text-align: center;
  margin-inline: auto;
}
.about-compact h2 { max-width: 20ch; margin-inline: auto; }
.about-compact .btn { margin-top: 1rem; }

/* Glassmorphic services horizontal strip */
/* Services grid (free cards) */
.services-section { background: var(--paper-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 1.5rem;
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card,
.glass-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.65rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
[data-theme="dark"] .service-card,
[data-theme="dark"] .glass-card {
  background: rgba(20, 30, 25, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}
.service-card:hover,
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -8px rgba(79, 122, 99, 0.18);
  border-color: var(--accent-light);
}
.service-card .glass-icon,
.service-card .service-icon,
.glass-card .glass-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.5rem;
}
.service-card h3,
.glass-card h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.service-card p,
.glass-card p { font-size: 0.92rem; margin: 0; color: var(--ink-soft); line-height: 1.5; }
.service-card .glass-price,
.glass-card .glass-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.8rem;
}
.service-card .glass-link,
.glass-card .glass-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.3rem;
}
.service-card .glass-link:hover,
.glass-card .glass-link:hover { text-decoration: underline; }

/* Work horizontal swipe strip */
.work-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.work-header-row > div:first-child {
  max-width: 62ch;
}
.work-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.work-move-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(79, 122, 99, 0.08);
  border: 1px solid rgba(79, 122, 99, 0.22);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
  animation: work-guide-subtle-nudge 2.8s ease-in-out infinite;
}
[data-theme="dark"] .work-move-guide {
  background: rgba(114, 169, 143, 0.12);
  border-color: rgba(114, 169, 143, 0.3);
  color: var(--accent-light);
}
.work-guide-icon {
  width: 15px;
  height: 15px;
  animation: work-arrow-pan 1.4s ease-in-out infinite alternate;
}
@keyframes work-arrow-pan {
  0% { transform: translateX(-2px); }
  100% { transform: translateX(3px); }
}
@keyframes work-guide-subtle-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.work-nav-btns {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.work-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), color 0.18s var(--ease);
  padding: 0;
}
.work-nav-btn svg {
  width: 18px;
  height: 18px;
}
.work-nav-btn:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.06);
}
[data-theme="dark"] .work-nav-btn {
  background: var(--paper-alt);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .work-nav-btn:hover {
  background: rgba(114, 169, 143, 0.15);
  border-color: var(--accent-light);
  color: var(--white);
}
.work-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.work-swipe-strip {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.25rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) transparent;
  outline: none;
}
.work-swipe-strip::-webkit-scrollbar {
  height: 6px;
}
.work-swipe-strip::-webkit-scrollbar-track {
  background: transparent;
}
.work-swipe-strip::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 999px;
}
.work-swipe-strip .project-card {
  flex: 0 0 clamp(290px, 80vw, 360px);
  min-width: 290px;
  scroll-snap-align: start;
  opacity: 1 !important;
  transform: none !important;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.work-swipe-strip .project-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 36px -8px rgba(16, 20, 18, 0.14);
}

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem); }
.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-lead { color: var(--paper); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
}
.brand-footer { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.88rem; color: var(--ink-soft); text-align: right; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--ink-faint); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 0.85rem; }
.footer-legal a { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.footer-legal a:hover { color: var(--ink); }

/* Error / status pages (404, 500) */
.status-page { min-height: 60vh; display: flex; align-items: center; }
.status-page-inner { max-width: 46ch; text-align: center; margin-inline: auto; }
.status-page-inner .eyebrow { font-size: 1.3rem; }
.status-page-inner p { margin-inline: auto; }
.status-page-actions { justify-content: center; margin-top: 1.8rem; }

/* Contact form */
.contact-form { max-width: 46rem; margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 9rem; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: -0.3rem; }

/* -------------------- Services Page & Detail Components -------------------- */
.services-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--accent-tint) 0%, transparent 70%);
}
.services-hero h1 { max-width: 22ch; margin-inline: auto; }
.services-hero .section-lead { max-width: 58ch; margin-inline: auto; }

.service-nav-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.service-nav-bar::-webkit-scrollbar { display: none; }
[data-theme="dark"] .service-nav-bar {
  background: rgba(13, 20, 16, 0.88);
}
.service-nav-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.service-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(0,0,0,0.04);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
[data-theme="dark"] .service-nav-link {
  background: rgba(255,255,255,0.06);
}
.service-nav-link:hover {
  color: var(--ink);
  background: var(--accent-tint);
  border-color: var(--accent-light);
}

.service-detail-block {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.service-detail-block:last-of-type { border-bottom: none; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.service-detail-grid.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.service-detail-grid.reverse .service-detail-content {
  order: 2;
}
.service-detail-grid.reverse .service-detail-visual {
  order: 1;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-detail-content h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.5rem);
  margin-bottom: 0.2em;
}
.service-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  width: fit-content;
}
.service-feature-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.5rem;
}
.service-feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}
.service-feature-checklist svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 2px;
}

.service-pricing-box {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
[data-theme="dark"] .service-pricing-box {
  background: rgba(255, 255, 255, 0.03);
}
.service-pricing-rate {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.service-pricing-rate span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.service-pricing-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: 0;
}

/* Portfolio slot / Visual preview box */
.portfolio-slot {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 16px 36px -12px rgba(16, 20, 18, 0.06);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .portfolio-slot {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.35);
}
.portfolio-slot-mockup {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  position: relative;
}
.portfolio-slot-mockup svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
  opacity: 0.85;
}
.portfolio-slot-mockup span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.portfolio-slot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.portfolio-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  color: var(--ink-soft);
}
[data-theme="dark"] .portfolio-pill {
  background: rgba(255,255,255,0.08);
}
.portfolio-slot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.portfolio-slot-foot a {
  color: var(--accent);
  font-weight: 600;
}
.portfolio-slot-foot a:hover { text-decoration: underline; }

/* Comparison Table */
.comparison-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--paper-alt);
}
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}
.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  background: var(--paper);
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.comparison-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.03);
  color: var(--ink-soft);
  font-weight: 700;
}
[data-theme="dark"] .comparison-table th {
  background: rgba(255,255,255,0.04);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td {
  background: rgba(79, 122, 99, 0.04);
}
.comparison-table .service-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.comparison-table .price-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}
.comparison-table .feature-snippet {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* -------------------- 10. Responsive -------------------- */
@media (max-width: 980px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .price-card-featured { transform: none; }
  .cta-grid { justify-content: flex-start; }
  .footer-contact { text-align: left; }
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail-grid.reverse .service-detail-content {
    order: 1;
  }
  .service-detail-grid.reverse .service-detail-visual {
    order: 2;
  }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
  .header-actions .btn-small { display: none; }
  .header-row { height: var(--header-h); }
}

@media (max-width: 600px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .hero-card .hero-actions .btn { width: 100%; }
  .hero-card .hero-actions { flex-direction: column; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .price-badge {
    left: 1.25rem;
    max-width: calc(100% - 2.5rem);
  }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
  .services-glass-strip .glass-card { flex: 0 0 260px; }
  .work-header-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .work-controls { width: 100%; justify-content: space-between; margin-bottom: 0.25rem; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 1rem; }
  .btn-large { padding: 0.9em 1.2em; font-size: 0.92rem; }
  h1 { font-size: 2rem; }
}