/* ============================================
   TSM International — Design System
   ============================================ */

/* ---------- CSS Variables ----------
   Palette grounded in the studio's actual place: dusk over the fields
   around Tratna pri Grobelnem — deep spruce dark, ripened-wheat gold,
   clay roof-tile rust. Deliberately not hacker-terminal green-on-black. */
:root {
  /* Colors */
  --bg-base: #16211A;
  --bg-surface: #1F2E23;
  --accent-green: #C99A44;
  --accent-coral: #CC6B48;
  --accent-coral-deep: #9B442D;
  --text-body: #ECE6D6;
  --text-muted: #93A38F;
  --text-muted-on-light: #6E6650;
  --bg-light: #EDE7D8;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse at 30% 10%, rgba(201, 154, 68, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 90%, rgba(194, 96, 63, 0.05) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(201, 154, 68, 0.03) 0%, transparent 70%);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-body);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ----------
   Fraunces (a warm, characterful slab serif) carries the studio's voice
   in headlines; Work Sans stays plain and quiet everywhere else. No
   monospace anywhere — it read as "developer chrome," not craft. */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-coral { color: var(--accent-coral); }
.section--light .text-coral { color: var(--accent-coral-deep); }
.text-light { color: var(--bg-light); }

/* Small structural labels — a quiet signature, not a shouted eyebrow.
   Sentence case, no tracking, no background chip, no "//" prefix. */
.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-coral);
}

.section--light .section__header .eyebrow {
  color: var(--accent-coral-deep);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--light {
  background-color: var(--bg-light);
  color: var(--bg-base);
}

.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--bg-base);
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(16, 24, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 154, 68, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
}

.header__logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header__logo-text span {
  color: var(--accent-green);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__links {
  display: flex;
  gap: var(--space-md);
}

.header__link {
  font-size: 0.9rem;
  color: var(--text-body);
  transition: color var(--transition-fast);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.header__link:hover,
.header__link--active {
  color: var(--accent-green);
}

.header__link:hover::after,
.header__link--active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.lang-switch__btn {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-switch__btn--active {
  background: var(--accent-green);
  color: var(--bg-base);
}

.lang-switch__btn:hover:not(.lang-switch__btn--active) {
  color: var(--text-body);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-body);
  transition: all var(--transition-fast);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    /* enlarge the tap target closer to the ~44px touch guideline
       without changing its visual icon size (padding grows the hit area) */
    padding: 10px;
  }

  .header__links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(201, 154, 68, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
  }

  .header__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Make the whole row tappable, not just the text glyph — previously the
     <a> only sized to its own text (~17px tall) inside a full-width <li>,
     so tapping anywhere beside the label did nothing. */
  .header__links .header__link {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .header__nav {
    gap: var(--space-sm);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn--primary {
  background: var(--accent-green);
  color: var(--bg-base);
}

.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--accent-coral);
  border: 1px solid var(--accent-coral);
}

.btn--secondary:hover {
  background: var(--accent-coral);
  color: var(--bg-base);
}

.btn--outline {
  background: transparent;
  color: var(--text-body);
  border: 1px solid rgba(230, 222, 204, 0.3);
}

.btn--outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

@media (max-width: 768px) {
  /* Buttons measured ~42px tall on phones (e.g. the contact form's submit
     button) — nudge padding up toward the ~44px touch-target guideline. */
  .btn {
    padding: 0.9rem 1.5rem;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(201, 154, 68, 0.35);
  transform: translateY(-2px);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 154, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card .card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--text-body);
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pinned card (e.g. the lead blog post) — same card shape, lifted with a
   gold wash, a soft glow that breathes gently, and a small badge. The
   glow keeps a real offset and blur rather than a flat halo, so it still
   reads as depth, not just decoration. */
.card--pinned {
  position: relative;
  border-color: rgba(201, 154, 68, 0.4);
  background: linear-gradient(160deg, rgba(201, 154, 68, 0.12), transparent 65%), var(--bg-surface);
  animation: card-pinned-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both,
             card-pinned-glow 4s ease-in-out 0.6s infinite;
}

@keyframes card-pinned-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-pinned-glow {
  0%, 100% { box-shadow: 0 14px 32px rgba(201, 154, 68, 0.16); }
  50% { box-shadow: 0 14px 40px rgba(201, 154, 68, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .card--pinned {
    animation: none;
    box-shadow: 0 14px 32px rgba(201, 154, 68, 0.22);
  }
}

.card__badge {
  position: absolute;
  top: -10px;
  right: var(--space-md);
  background: var(--accent-green);
  color: var(--bg-base);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(201, 154, 68, 0.35);
}

/* ---------- Blog Post: Stat Bars & Callouts ---------- */
.stat-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.15);
  border-radius: var(--radius-lg);
}

.stat-bar__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.stat-bar__value {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-green);
  min-width: 3.2em;
  flex-shrink: 0;
}

.stat-bar__track {
  flex: 1;
  height: 10px;
  background: rgba(201, 154, 68, 0.12);
  border-radius: 100px;
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 100px;
}

.stat-bar__label {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat-bars__caption {
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.stat-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(201, 154, 68, 0.08);
  border: 1px solid rgba(201, 154, 68, 0.25);
  border-radius: var(--radius-md);
}

.stat-callout__number {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--accent-green);
  line-height: 1;
}

.stat-callout__label {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-callout-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.stat-callout-row .stat-callout {
  margin-bottom: 0;
}

/* Hairline break between post sections — same divider language as
   .showcase-item / .service-detail, just used inline in article flow. */
.post-divider {
  border: none;
  border-top: 1px solid rgba(201, 154, 68, 0.15);
  margin: var(--space-xl) 0 0;
}

/* Small icon badge on a niche blog card, sized down from .card__icon
   but same circular-chip language. */
.blog-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(201, 154, 68, 0.1);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

.blog-card__icon svg {
  width: 18px;
  height: 18px;
}

/* Two labeled groupings on the blog listing — same card grid as before,
   just gathered into a bold, rounded panel per group instead of one
   flat list. Radius is deliberately oversized (a pill, not a card). */
.blog-section {
  background: linear-gradient(160deg, rgba(201, 154, 68, 0.08), transparent 60%), var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.15);
  border-radius: 48px;
  padding: var(--space-xl) var(--space-lg);
}

.blog-section + .blog-section {
  margin-top: var(--space-lg);
}

/* Section label as a solid pill badge — same language as .hero__price-badge
   (solid gold fill, dark text, soft glow), just sized for a section label
   rather than a hero headline. */
.blog-section__badge {
  display: flex;
  width: fit-content;
  margin: 0 auto var(--space-lg);
  align-items: center;
  padding: 8px 20px;
  background: var(--accent-green);
  border-radius: 100px;
  box-shadow: 0 8px 22px rgba(201, 154, 68, 0.35);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--bg-base);
}

@media (max-width: 600px) {
  .blog-section {
    border-radius: 28px;
    padding: var(--space-lg) var(--space-md);
  }
}

/* Push card actions to a shared baseline so cards of different text
   length still end at the same height within a row. */
.blog-section .card {
  display: flex;
  flex-direction: column;
}

.blog-section .card > p:last-child {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Niche grid — 2 up with generous room to breathe, not 4 crammed in. */
.blog-section__grid--niche {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 700px) {
  .blog-section__grid--niche {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog Post: Alternate Stat Treatments ---------- */

/* Large standalone number tiles — used solo (a row of two) or as a 2x2
   grid, in place of a bar chart when a post's data calls for it. */
.stat-tiles-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.stat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

@media (max-width: 600px) {
  .stat-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.stat-tile {
  flex: 1;
  min-width: 160px;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.15);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-tile__number {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--accent-green);
  line-height: 1;
}

.stat-tile__label {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Segmented bar — one bar divided into proportional colored slices, with
   a legend carrying the real, independently-measured percentages (the
   slices compare relative magnitude; they aren't parts of one whole). */
.stat-segmented {
  margin: var(--space-lg) 0;
}

.stat-segmented__bar {
  display: flex;
  height: 14px;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(201, 154, 68, 0.08);
}

.stat-segmented__seg {
  height: 100%;
}

.stat-segmented__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-segmented__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-segmented__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-segmented__note {
  margin-top: var(--space-xs);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Before/after contrast — two numbers with an arrow, sized and colored
   to read as a decline at a glance. */
.stat-before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.15);
  border-radius: var(--radius-lg);
}

.stat-before-after__item {
  text-align: center;
}

.stat-before-after__number {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--text-muted);
}

.stat-before-after__item--now .stat-before-after__number {
  color: var(--accent-coral);
  font-size: 4rem;
}

.stat-before-after__label {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-before-after__arrow {
  font-size: 2rem;
  color: var(--accent-coral);
}

/* Inline stat badge — woven directly into a heading instead of shown as
   a separate chart or callout. */
.stat-inline-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: var(--space-sm);
  padding: 4px 12px;
  background: rgba(201, 154, 68, 0.12);
  border: 1px solid rgba(201, 154, 68, 0.3);
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201, 154, 68, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(194, 96, 63, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(201, 154, 68, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(194, 96, 63, 0.04) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover, cover, 256px 256px;
  pointer-events: none;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: hero-text-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* The one authored focal moment on the page, specific to this surface:
   the copy settles first, then the proof photo lands into its resting
   tilt a beat later — as if it were just set down on the desk next to
   the pitch. Everything else on the page holds still. */
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-photo-land {
  from { opacity: 0; transform: translateY(26px) rotate(5deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes settle-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__proof,
  .page-hero__content {
    animation: none;
  }
}

/* Price-led hook — the pill shape is already this site's language (the
   chat quick-question buttons use the same 100px radius), just applied
   here to lead with the number rather than bury it on the pricing page. */
.hero__price-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  padding: 13px 26px;
  margin-bottom: var(--space-sm);
  background: var(--accent-green);
  border-radius: 100px;
  box-shadow: 0 10px 28px rgba(201, 154, 68, 0.4);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bg-base);
  animation: badge-pop 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* One small, deliberate flourish on the single element meant to be seen
   first — everything else in the hero keeps the quieter settle-in. */
@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__price-badge {
    animation: none;
  }
}

@media (max-width: 480px) {
  /* At 1.15rem the full phrase wraps and strands "€" alone on its own
     line — shrink just enough to fit in one line, still clearly bigger
     than the 0.9rem eyebrow below it. */
  .hero__price-badge {
    font-size: 1rem;
    padding: 11px 20px;
    white-space: nowrap;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-coral);
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__title .highlight {
  color: var(--accent-green);
  position: relative;
}

.hero__subheading {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Asymmetric hero: copy on the left, one real screenshot as proof on the
   right — pinned at a slight angle, like a photo tacked to a board,
   rather than a generic centered gradient graphic. */
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__proof {
  position: relative;
  z-index: 1;
  animation: hero-photo-land 0.75s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__proof img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 154, 68, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.5deg);
}

.hero__proof-caption {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__proof img {
    transform: none;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Tech overlay — subtle circuit pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 154, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 154, 68, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-green), transparent);
  opacity: 0.5;
}

/* ---------- Services Grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stats Section ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat__number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --bg-light is a genuinely light paper tone, so text tuned for the dark
   base needs a readable counterpart here — not the same muted sage. */
.section--light .stat__number {
  color: var(--bg-base);
}

.section--light .stat__label,
.section--light .section__header p {
  color: var(--text-muted-on-light);
}

/* Section header */
.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section__header .eyebrow {
  color: var(--accent-coral);
  margin-bottom: var(--space-xs);
}

.section__header h2 {
  margin-bottom: var(--space-sm);
}

.section__header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Left-aligned variant — breaks the centered-eyebrow rhythm for sections
   that read better as a short editorial intro than a banner headline. */
.section__header--left {
  text-align: left;
  margin: 0 0 var(--space-xl);
  max-width: 600px;
}

/* ---------- Portfolio Showcase (alternating rows) ----------
   Real screenshots deserve room to breathe, not identical card tiles —
   each project gets a full-width row, alternating image side to side. */
.showcase-item {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-lg) 0;
}

.showcase-item:not(:last-child) {
  border-bottom: 1px solid rgba(201, 154, 68, 0.12);
}

.showcase-item:nth-child(even) {
  direction: rtl;
}

.showcase-item:nth-child(even) > * {
  direction: ltr;
}

.showcase-item__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 154, 68, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.showcase-item__media img:hover {
  transform: scale(1.015);
  filter: brightness(1.05);
}

.showcase-item__content .showcase-item__tag {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-coral);
  margin-bottom: 4px;
}

.showcase-item__content h3 {
  margin-bottom: var(--space-xs);
}

.showcase-item__content p {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .showcase-item,
  .showcase-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ---------- Process Section ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-coral));
  opacity: 0.3;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid::before {
    display: none;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 80px;
  height: 80px;
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: 'Work Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
}

.process-step__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.process-step__text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Testimonials (Light section) ---------- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.testimonial-card__quote {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: #1a1a2e;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: white;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--bg-base);
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: #666;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.portfolio-item:hover {
  border-color: rgba(201, 154, 68, 0.3);
  transform: translateY(-4px);
}

.portfolio-item__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(201, 154, 68, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-item__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(201, 154, 68, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-item__image::before {
  transform: translateX(100%);
}

.portfolio-item__placeholder {
  font-family: 'Work Sans', sans-serif;
  font-size: 3rem;
  color: rgba(201, 154, 68, 0.3);
}

.portfolio-item__content {
  padding: var(--space-md);
}

.portfolio-item__tags {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.tag {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(201, 154, 68, 0.12);
  color: var(--accent-green);
  border-radius: 4px;
}

.tag--coral {
  background: rgba(194, 96, 63, 0.1);
  color: var(--accent-coral);
}

.portfolio-item__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.portfolio-item__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Pricing (comparison list, not identical cards) ----------
   The three tiers offer genuinely different things, not the same
   feature at three price points — so they read as one connected list
   with dividers, not three duplicate boxed products. */
.pricing-list {
  display: flex;
  flex-direction: column;
}

.pricing-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(201, 154, 68, 0.12);
}

/* The recommended tier earns real color-driven weight, not just a small
   inline label — a warm enclosed panel instead of a plain divided row. */
.pricing-row--featured {
  background: linear-gradient(160deg, rgba(201, 154, 68, 0.1), transparent 65%), var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-sm) 0;
}

.pricing-row:first-child {
  padding-top: 0;
}

.pricing-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pricing-row__head h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.pricing-row__badge {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-coral);
  vertical-align: middle;
  margin-left: var(--space-xs);
}

.pricing-row__price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-row__price span {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-row__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.pricing-row__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px var(--space-md);
  margin-bottom: var(--space-md);
}

.pricing-row__features li {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-size: 0.92rem;
  padding: 5px 0;
}

.pricing-row__features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .pricing-row__features {
    grid-template-columns: 1fr;
  }
}

.section--light .tag {
  background: rgba(10, 10, 15, 0.06);
  color: #1a1a2e;
}

.section--light .tag--coral {
  background: rgba(194, 96, 63, 0.1);
  color: var(--accent-coral-deep);
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member {
  text-align: center;
}

.team-member__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(135deg, var(--bg-surface), rgba(201, 154, 68, 0.2));
  border: 2px solid rgba(201, 154, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
}

.team-member__name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-member__role {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-family: 'Work Sans', sans-serif;
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-body);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(230, 222, 204, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(201, 154, 68, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8A99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-body);
}

.form-error {
  color: var(--accent-coral);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
  border-color: var(--accent-coral);
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  background: rgba(201, 154, 68, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
  color: var(--accent-green);
  display: none;
}

.form-success.show {
  display: block;
  animation: message-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-submit-error {
  display: none;
  margin-top: var(--space-md);
  background: rgba(232, 93, 93, 0.1);
  border: 1px solid var(--accent-coral);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
  color: var(--accent-coral);
}

.form-submit-error.show {
  display: block;
  animation: message-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Shared reveal for form/popup outcome messages — a submit is a state
   change that deserves acknowledgment, not an instant, silent snap. */
@keyframes message-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .form-success.show,
  .form-submit-error.show,
  .callback-popup__success.show,
  .callback-popup__submit-error.show {
    animation: none;
  }
}

/* Contact info */
.contact-info {
  padding: var(--space-lg);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 154, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(201, 154, 68, 0.1);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.footer__brand p {
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--accent-green);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-green);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(230, 222, 204, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201, 154, 68, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  animation: settle-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-hero__content .page-hero__eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-coral);
  margin-bottom: var(--space-sm);
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Service Detail Cards ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(201, 154, 68, 0.1);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .service-detail,
  .service-detail:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.service-detail__content {
  max-width: 480px;
}

.service-detail__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-detail__text {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.service-detail__features {
  margin-bottom: var(--space-md);
}

.service-detail__feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.service-detail__feature::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
}

.service-detail__visual {
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-detail__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 154, 68, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(194, 96, 63, 0.08) 0%, transparent 50%);
}

.service-detail__icon-large {
  font-size: 4rem;
  position: relative;
  z-index: 1;
}

.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service-detail__visual:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

/* Brand-mark variant: a logo on its own near-black background should
   blend into the section instead of sitting inside a card-style box. */
.service-detail__visual--brand {
  background: transparent;
  border: none;
}

.service-detail__visual--brand::before {
  display: none;
}

.service-detail__visual--brand img {
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  cursor: default;
  transition: none;
  /* The logo's own background is a near-black square (~#111), not the
     page's green-black (#06140A). `screen` ties its dark fill to whatever
     is actually behind it instead of painting a flat mismatched block,
     and the radial-gradient mask fades the square's hard edges to fully
     transparent so no rectangular silhouette remains — only the mark
     and wordmark (well inside the fade radius) stay fully opaque. */
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 68%);
  mask-image: radial-gradient(circle at center, #000 55%, transparent 68%);
}

.service-detail__visual--brand:hover img {
  transform: none;
  filter: none;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* ---------- Browser chrome, themed instead of left at default ---------- */
::selection {
  background: var(--accent-green);
  color: var(--bg-base);
}

html {
  scrollbar-color: var(--accent-coral) var(--bg-base);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-coral);
  border-radius: 8px;
  border: 3px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-green);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--accent-green);
  color: var(--bg-base);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-xs);
}

/* Screen reader only */
.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;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
/* ---------- Chat Widget ---------- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Work Sans', sans-serif;
}

.chat-bubble-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.chat-bubble-btn:hover {
  transform: scale(1.05);
  background: rgba(201, 154, 68, 0.1);
}
.chat-bubble-btn svg {
  width: 24px;
  height: 24px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-surface);
  border: 1px solid rgba(201, 154, 68, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  /* Closed state: invisible, non-interactive, and — this is the point —
     scaled down toward the bubble it came from, so opening reads as the
     panel emerging from the button rather than a hard cut. */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transform: scale(0.94) translateY(10px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.22s;
}
.chat-panel.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel {
    transform: none;
    transition: opacity 0.15s linear, visibility 0s linear 0.15s;
  }
  .chat-panel.open {
    transition: opacity 0.15s linear, visibility 0s linear 0s;
  }
}

.chat-header {
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(201, 154, 68, 0.08), rgba(201, 154, 68, 0.03));
  border-bottom: 1px solid rgba(201, 154, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: var(--text-body);
  margin: 0;
}
.chat-header button {
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  align-self: flex-start;
  margin-top: 2px;
}

.chat-header__persona {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.chat-header__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-green);
  flex-shrink: 0;
}
.chat-header__role {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chat-msg {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(201, 154, 68, 0.1);
  border: 1px solid rgba(201, 154, 68, 0.2);
  color: var(--text-body);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-green);
  color: #06140A;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md);
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.quick-questions button {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(201, 154, 68, 0.3);
  background: rgba(201, 154, 68, 0.08);
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.quick-questions button:hover {
  background: rgba(201, 154, 68, 0.2);
}

.chat-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid rgba(201, 154, 68, 0.1);
}
.chat-footer input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 154, 68, 0.2);
  background: var(--bg-base);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.chat-footer input:focus {
  border-color: var(--accent-green);
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 48px);
    max-height: 70vh;
    bottom: 72px;
    right: 0;
  }
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }
  /* The close "x" was just a bare text glyph (~13x19px hit area) —
     give it a proper touch-sized tap target without changing how it looks. */
  .chat-header button {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }
}

/* ---------- Proactive Callback Popup (Lana) ---------- */
.callback-popup {
  display: block;
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 300px;
  z-index: 9998;
  background:
    linear-gradient(160deg, rgba(201, 154, 68, 0.08), transparent 60%),
    var(--bg-surface);
  color: var(--text-body);
  border: 1px solid rgba(201, 154, 68, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.28s;
}
.callback-popup.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .callback-popup {
    transform: none;
    transition: opacity 0.15s linear, visibility 0s linear 0.15s;
  }
  .callback-popup.show {
    transition: opacity 0.15s linear, visibility 0s linear 0s;
  }
}

.callback-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.callback-popup__close:hover {
  color: var(--text-body);
}

.callback-popup__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto var(--space-xs);
  border: 3px solid var(--accent-green);
}

.callback-popup__name {
  color: var(--accent-green);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.callback-popup__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.callback-popup__subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.callback-popup__form {
  text-align: left;
}

.callback-popup__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 154, 68, 0.2);
  background: var(--bg-base);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.callback-popup__input::placeholder {
  color: var(--text-muted);
}
.callback-popup__input:focus {
  border-color: var(--accent-green);
}
.callback-popup__input.error {
  border-color: #E85D5D;
}

.callback-popup__error {
  display: none;
  color: #F2A38F;
  font-size: 0.78rem;
  margin-top: 4px;
}

.callback-popup__submit {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-green);
  color: #06140A;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter var(--transition-fast);
}
.callback-popup__submit:hover {
  filter: brightness(1.1);
}
.callback-popup__submit:disabled {
  cursor: default;
  filter: brightness(0.85);
}

.callback-popup__success {
  display: none;
  margin-top: var(--space-sm);
  background: rgba(201, 154, 68, 0.12);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--accent-green);
  font-size: 0.85rem;
}
.callback-popup__success.show {
  display: block;
  animation: message-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.callback-popup__submit-error {
  display: none;
  margin-top: var(--space-sm);
  background: rgba(232, 93, 93, 0.12);
  border: 1px solid #E85D5D;
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: #F2A38F;
  font-size: 0.78rem;
}
.callback-popup__submit-error.show {
  display: block;
  animation: message-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.callback-popup__submit-error a {
  color: #F2A38F;
  font-weight: 600;
}

@media (max-width: 480px) {
  .callback-popup {
    width: calc(100vw - 32px);
    bottom: 88px;
    right: 16px;
  }
  /* The close "x" was just a bare text glyph (~14x21px hit area) —
     give it a proper touch-sized tap target without changing how it looks. */
  .callback-popup__close {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 2px;
    right: 2px;
  }
  /* Nudge the submit button height a bit closer to the touch-target
     guideline (was ~40px) without affecting desktop sizing. */
  .callback-popup__submit {
    padding: 14px 12px;
  }
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ---------- Lightbox ---------- */
.portfolio-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.portfolio-item__image:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 10, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(201, 154, 68, 0.15);
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: rgba(201, 154, 68, 0.1);
  border: 1px solid rgba(201, 154, 68, 0.3);
  color: var(--accent-green);
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  z-index: 10000;
}
.lightbox-close:hover {
  background: rgba(201, 154, 68, 0.25);
  color: var(--text-body);
  transform: scale(1.08);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}
