/* ==========================================================================
   Webliyam Agency Stylesheet
   Palette: Ink Teal #053D3A + Warm Sand #FFE2B8
   Supporting: Deep teal ink, soft cream surfaces, mint highlight
   ========================================================================== */

:root {
  /* Core brand from reference */
  --ink-teal: #053D3A;
  --warm-sand: #FFE2B8;
  --ink-deep: #032826;
  --ink-mid: #0A524E;
  --ink-soft: #0E6B65;
  --sand-soft: #FFF1D6;
  --sand-deep: #E8C99A;
  --mint: #7DD3C7;
  --coral-soft: #E8A87C; /* optional warm accent for charts/alerts only */

  --bg: #053D3A;
  --bg-secondary: #032826;
  --bg-elevated: #0A4A46;
  --bg-card: #0B4F4A;
  --bg-card-hover: #0E5C56;

  --accent: #FFE2B8;
  --accent-hover: #FFF1D6;
  --accent-soft: rgba(255, 226, 184, 0.14);
  --accent-glow: rgba(255, 226, 184, 0.28);
  --accent-strong: #FFE2B8;

  --text: #FFF8EC;
  --text-soft: #F5EBD8;
  --muted: #B8C9C6;
  --on-accent: #053D3A;

  --border: rgba(255, 226, 184, 0.12);
  --border-hover: rgba(255, 226, 184, 0.4);
  --border-strong: rgba(255, 226, 184, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --shadow-card: 0 20px 60px rgba(2, 24, 22, 0.45);
  --shadow-glow: 0 10px 32px rgba(255, 226, 184, 0.22);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --container-max: 1220px;
  --header-h: 82px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  /* Native scroll — no forced smooth on html (feels laggy with wheel/trackpad) */
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background-color: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  height: auto;
  overflow-x: clip;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100%;
  /* Prevent scroll chaining / rubber-band traps on some browsers */
  overscroll-behavior-y: auto;
}

/* Only smooth-scroll for reduced-motion users who prefer it — actually respect prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  html.allow-smooth-scroll {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem); }
h2 { font-size: clamp(2.1rem, 3.5vw + 0.5rem, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.2rem, 1.75rem); }

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

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

/* Layout Containers */
.container {
  width: min(100% - 3rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section--tight {
  padding: 3rem 0;
}

.section--compact {
  padding: 2.5rem 0;
}

.text-center { text-align: center; }
.center-lead { margin-inline: auto; max-width: 650px; }

.section__head {
  margin-bottom: 2.25rem;
}

.section__head .section__title {
  max-width: 18ch;
}

.section__head.text-center .section__title,
.text-center .section__title {
  max-width: none;
  margin-inline: auto;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.section__title {
  margin-bottom: 1.25rem;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
}

.section__head--flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.accent-text {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn--full { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 226, 184, 0.45);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-soft);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 99999;
  background: var(--accent);
  color: #053D3A;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Site Header — solid so content never shows through */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 28px rgba(2, 24, 22, 0.35);
}

/* Inner pages: always solid header */
body:not(.home) .site-header {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  position: relative;
  z-index: 1102;
}

/* Text logo — simple, professional wordmark */
.logo--text {
  text-decoration: none;
  gap: 0;
  line-height: 1;
}

.logo__word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 226, 184, 0.22);
  transition: color 0.2s ease, text-shadow 0.2s ease, opacity 0.2s ease;
}

.logo--text:hover .logo__word {
  color: var(--accent-hover, #FFF1D6);
  text-shadow: 0 0 28px rgba(255, 226, 184, 0.35);
}

.logo__dot {
  color: var(--accent);
  opacity: 0.95;
}

.site-footer .logo__word {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .logo__word {
    font-size: 1.2rem;
  }
}

.nav .menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav .menu a:hover,
.nav .menu .current-menu-item a {
  color: var(--text);
}

.nav .menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s var(--ease);
}

.nav .menu a:hover::after,
.nav .menu .current-menu-item a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1102;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: rgba(255, 226, 184, 0.08);
  border: 1px solid rgba(255, 226, 184, 0.18);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1102;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 226, 184, 0.14);
  border-color: rgba(255, 226, 184, 0.35);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle__bar,
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

/* Mobile menu chrome (hidden on desktop; panel is just the list wrapper) */
.nav__panel {
  display: contents;
}

.nav__top,
.nav__footer,
.nav__eyebrow,
.nav__tagline,
.nav__cta,
.nav__contact,
.nav__markets {
  display: none;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 6.5rem;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right; /* Webliyam wall sign stays top-right */
  opacity: 0.55;
  filter: contrast(1.06) brightness(0.78) saturate(0.92);
  pointer-events: none;
  z-index: 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  /* Left stays darker for headline contrast; right shows office + Webliyam sign */
  background:
    linear-gradient(90deg, rgba(5, 61, 58, 0.9) 0%, rgba(5, 61, 58, 0.72) 40%, rgba(5, 61, 58, 0.38) 70%, rgba(5, 61, 58, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 61, 58, 0.28) 0%, rgba(5, 61, 58, 0.15) 55%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-lottie-wrap {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 3;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(38, 35, 32, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5;
  animation: floatChip 4s ease-in-out infinite;
}

.floating-chip--top-right {
  top: -18px;
  right: -18px;
}

.floating-chip--bottom-left {
  bottom: -18px;
  left: -18px;
  animation-delay: 2s;
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.chip-icon {
  font-size: 1.25rem;
}

.floating-chip strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
}

.floating-chip span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Simple editorial kicker — not a glowing AI pill */
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
}

.hero__kicker-line {
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.meta-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.meta-label {
  font-size: 0.825rem;
  color: var(--muted);
}

.hero__meta-divider {
  width: 1px;
  height: 35px;
  background: var(--border);
}

/* 3D Showcase Frame */
.hero__visual {
  position: relative;
}

.showcase-frame {
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.showcase-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.bar-dot:nth-child(1) { background: #ef4444; }
.bar-dot:nth-child(2) { background: #f59e0b; }
.bar-dot:nth-child(3) { background: #22c55e; }

.bar-url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

.showcase-frame__media img {
  width: 100%;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: block;
}

/* MARQUEE TICKER */
.trust-marquee {
  padding: 2.75rem 0;
  border-y: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}

.trust-marquee__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.ticker {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker__track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: scrollTicker 32s linear infinite;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticker__item span {
  color: var(--accent);
}

/* PROBLEM VS SOLUTION */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.problem-card {
  padding: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
}

.problem-card--old {
  background: rgba(255, 255, 255, 0.02);
}

.problem-card--new {
  background: var(--bg-card);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.problem-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.problem-tag--old {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.problem-tag--new {
  background: var(--accent-soft);
  color: var(--accent);
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.icon-cross { color: #f87171; font-weight: 800; }
.icon-check { color: var(--accent); font-weight: 800; }

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Benefits / values cards (were missing — caused plain stacked text + huge empty look) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  background: var(--bg-card-hover);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 226, 184, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card > p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__title {
  margin-bottom: 1rem;
}

.service-card__desc {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* FEATURED WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.work-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.work-card__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-card__media img {
  transform: scale(1.05);
}

.work-card__tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.work-card__body {
  padding: 2.25rem;
}

.work-card__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.work-card__title {
  margin-bottom: 0.75rem;
}

.work-card__excerpt {
  font-size: 0.95rem;
  color: var(--muted);
}

/* PROCESS TIMELINE V2 */
.process-timeline-v2 {
  max-width: 960px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.process-step-v2 {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}

.step-badge {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(255, 226, 184, 0.2);
}

.step-card {
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-phase {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.step-card p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.step-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.d-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

/* STATS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 3rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.stat-card {
  text-align: center;
}

.stat-card__number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 2rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--on-accent); /* ink teal on sand — white was invisible */
  letter-spacing: 0.02em;
}

.author-name {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* PRICING PREVIEW */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 0.5rem;
  align-items: stretch;
}

.price-card {
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.price-card--featured {
  background: var(--bg-elevated);
  border-color: rgba(255, 226, 184, 0.45);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 226, 184, 0.12);
  transform: none;
  z-index: 1;
}

@media (min-width: 1025px) {
  .price-card--featured {
    transform: translateY(-6px);
  }
}

.price-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: auto;
  transform: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-accent, #053D3A);
  white-space: nowrap;
}

.price-card__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price-card__price {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 2.5vw, 2.65rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card__tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.price-card__features li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.f-val {
  font-weight: 600;
  color: var(--text);
}

.price-card__maint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* CTA BAND */
.cta-band {
  position: relative;
  padding: 5rem 3rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
}

.cta-band__deco {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  opacity: 0.55;
  pointer-events: none;
}

.cta-band__deco .illu-svg {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .cta-band__deco { display: none; }
}

/* Service-card icon ring (functional UI, not section decoration) */
.service-card__icon--ring {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 226, 184, 0.16), rgba(255, 226, 184, 0.05));
  border: 1px solid rgba(255, 226, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-card__icon--ring svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Floating edge decorations (WinPower-style, service motifs)
   Low-opacity icons + diagonal slashes + rings at edges / mid
   ========================================================================== */
.has-deco {
  position: relative;
  overflow: clip;
}

.has-deco > .container,
.has-deco > .hero__inner,
.has-deco > .page-hero__inner,
.has-deco > .cta-band {
  position: relative;
  z-index: 1;
}

.float-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-deco__item {
  position: absolute;
  color: var(--warm-sand);
  opacity: 0.12;
  display: grid;
  place-items: center;
  will-change: transform;
  animation: floatDecoY 9s ease-in-out infinite;
}

.float-deco__item svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sizes — large rings sit quieter so they frame, not compete */
.float-deco__item--sm { width: 52px; height: 52px; opacity: 0.1; }
.float-deco__item--md { width: 80px; height: 80px; opacity: 0.13; }
.float-deco__item--lg { width: 120px; height: 120px; opacity: 0.14; }
.float-deco__item--xl { width: 180px; height: 180px; opacity: 0.09; }

/* Positions — edges + mid left/right */
.float-deco__item--tl { top: 8%; left: 2%; }
.float-deco__item--tr { top: 10%; right: 3%; }
.float-deco__item--bl { bottom: 10%; left: 3%; }
.float-deco__item--br { bottom: 8%; right: 2%; }
.float-deco__item--ml { top: 42%; left: -1%; translate: 0 -50%; }
.float-deco__item--mr { top: 48%; right: -1%; translate: 0 -50%; }
.float-deco__item--mc { top: 50%; left: 50%; translate: -50% -50%; opacity: 0.04; }

/* Soft staggered float + optional slow spin (bearing-like) */
.float-deco__item--n1 { animation-duration: 10s; animation-delay: 0s; }
.float-deco__item--n2 { animation-duration: 12s; animation-delay: -2s; }
.float-deco__item--n3 { animation-duration: 9s; animation-delay: -4s; }
.float-deco__item--n4 { animation-duration: 11s; animation-delay: -1s; }
.float-deco__item--n5 { animation-duration: 13s; animation-delay: -3s; }
.float-deco__item--n6 { animation-duration: 8s; animation-delay: -5s; }

.float-deco__item--spin-slow {
  animation:
    floatDecoY 11s ease-in-out infinite,
    floatDecoSpin 48s linear infinite;
}

.float-deco__item--spin-rev {
  animation:
    floatDecoY 10s ease-in-out infinite,
    floatDecoSpinRev 56s linear infinite;
}

/* Diagonal slash accents (WinPower green lines → warm sand) */
.float-deco__item--slash {
  width: 120px;
  height: 120px;
  opacity: 0.2;
  animation: none;
}

.float-deco__slash-line {
  position: absolute;
  width: 2px;
  height: 90px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--warm-sand), transparent);
  transform: rotate(-32deg);
  opacity: 0.55;
}

.float-deco__slash-line--2 {
  left: 18px;
  height: 64px;
  opacity: 0.35;
  transform: rotate(-32deg) translateY(12px);
}

.float-deco__item--tl.float-deco__item--slash { top: 12%; left: 0; }
.float-deco__item--tr.float-deco__item--slash { top: 14%; right: 0; left: auto; }
.float-deco__item--bl.float-deco__item--slash { bottom: 8%; left: 1%; }
.float-deco__item--br.float-deco__item--slash { bottom: 10%; right: 1%; left: auto; }
.float-deco__item--ml.float-deco__item--slash { top: 40%; left: 0; }
.float-deco__item--mr.float-deco__item--slash { top: 45%; right: 0; left: auto; }

/* Soft glow blobs behind some sections */
.services-section::before,
.work-section::after,
.problem-section::before,
.pricing-section::before,
.process-section::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 226, 184, 0.06), transparent 70%);
}

.services-section::before { right: -80px; top: 10%; }
.work-section::after { left: -100px; bottom: 5%; }
.problem-section::before { left: 40%; top: -40px; }
.pricing-section::before { right: -60px; bottom: 10%; }
.process-section::after { left: -70px; top: 20%; }

/* Hero: slightly stronger motifs against photo */
.hero .float-deco__item--md,
.hero .float-deco__item--lg { opacity: 0.16; }
.hero .float-deco__item--xl { opacity: 0.11; }
.hero .float-deco__item--slash { opacity: 0.28; }

.page-hero .float-deco__item--md,
.page-hero .float-deco__item--lg { opacity: 0.14; }
.page-hero .float-deco__item--xl { opacity: 0.1; }

@keyframes floatDecoY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes floatDecoSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes floatDecoSpinRev {
  from { rotate: 0deg; }
  to { rotate: -360deg; }
}

/* Mid-left / mid-right keep base translate for vertical centering */
.float-deco__item--ml,
.float-deco__item--mr {
  animation-name: floatDecoYMid;
}

@keyframes floatDecoYMid {
  0%, 100% { translate: 0 -50%; }
  50% { translate: 0 calc(-50% - 10px); }
}

.float-deco__item--ml.float-deco__item--spin-slow,
.float-deco__item--mr.float-deco__item--spin-slow {
  animation:
    floatDecoYMid 11s ease-in-out infinite,
    floatDecoSpin 48s linear infinite;
}

.float-deco__item--ml.float-deco__item--spin-rev,
.float-deco__item--mr.float-deco__item--spin-rev {
  animation:
    floatDecoYMid 10s ease-in-out infinite,
    floatDecoSpinRev 56s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .float-deco__item {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .float-deco__item--xl { width: 110px; height: 110px; }
  .float-deco__item--lg { width: 80px; height: 80px; }
  .float-deco__item--md { width: 56px; height: 56px; }
  .float-deco__item--ml { left: -12px; }
  .float-deco__item--mr { right: -12px; }
}

@media (max-width: 640px) {
  /* Keep only a few accents on small screens so content stays clean */
  .float-deco__item--n3,
  .float-deco__item--n4,
  .float-deco__item--n5,
  .float-deco__item--n6 {
    display: none;
  }
  .float-deco__item--sm,
  .float-deco__item--md { opacity: 0.05; }
  .float-deco__item--lg { opacity: 0.06; width: 64px; height: 64px; }
  .float-deco__item--xl { opacity: 0.04; width: 88px; height: 88px; }
}

.cta-band__content {
  max-width: 750px;
  margin: 0 auto;
}

.cta-band__title {
  margin-bottom: 1.25rem;
}

.cta-band__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* FOOTER */
.site-footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  max-width: 320px;
  font-size: 0.925rem;
}

.footer-brand__meta {
  margin-top: 0.85rem !important;
  font-size: 0.85rem !important;
  color: var(--muted);
}

/* SEO / visible breadcrumbs (shared) */
.seo-breadcrumb {
  margin-bottom: 1rem;
}

.seo-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.seo-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-breadcrumb__item a {
  color: var(--muted);
}

.seo-breadcrumb__item a:hover {
  color: var(--accent);
}

.seo-breadcrumb__sep {
  opacity: 0.5;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  font-size: 0.925rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-call-link {
  color: var(--accent) !important;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.back-to-top:hover {
  color: var(--accent);
}

/* SUBPAGE HERO (rich) & FORMS */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 2.75rem);
  padding-bottom: 3.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero--rich {
  padding-bottom: 3.5rem;
}

.page-hero__glow {
  position: absolute;
  inset: -20% auto auto 45%;
  width: min(60vw, 720px);
  height: min(60vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 184, 0.12) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, black, transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__inner--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero__title,
.page-hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  max-width: 15ch;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-hero__lead,
.page-hero p {
  max-width: 48ch;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.page-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 560px;
}

.page-hero__stat {
  padding: 0.95rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.page-hero__stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.page-hero__stat span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.page-hero__panel {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 226, 184, 0.08), var(--bg-card) 45%);
  border: 1px solid rgba(255, 226, 184, 0.18);
  box-shadow: var(--shadow-card);
}

.page-hero__panel-title {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.page-hero__panel-text {
  margin: 0 0 1.15rem !important;
  font-size: 0.95rem !important;
  color: var(--muted);
  max-width: none !important;
  line-height: 1.6;
}

.page-hero__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.page-hero__panel-list li {
  position: relative;
  padding: 0.75rem 0.85rem 0.75rem 2.15rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-hero__panel-list li::before {
  content: "✓";
  position: absolute;
  left: 0.8rem;
  top: 0.75rem;
  color: var(--accent);
  font-weight: 800;
}

/* FAQ clean (no inline-style reliance) */
.faq-grid {
  max-width: 820px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-plus {
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.price-note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-band-section {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-info__card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-info__card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-info__card a {
  color: var(--accent);
}

.contact-form {
  padding: 3rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 226, 184, 0.25);
}

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

.form-message {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-message.is-success { color: #22c55e; }
.form-message.is-error { color: #ef4444; }

/* PORTFOLIO FILTERS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent); /* ink teal on sand — white was invisible */
  box-shadow: 0 4px 15px rgba(255, 226, 184, 0.3);
}

/* TEAM GRID & ABOUT PAGE */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.team-card {
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.team-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--on-accent, #053D3A);
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(255, 226, 184, 0.3);
}

.team-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.team-grid {
  margin-top: 2rem;
}

/* About page stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about-stat {
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.about-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.about-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 226, 184, 0.15), transparent 55%),
    var(--bg-elevated);
}

.blog-card__body {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.blog-card__read {
  color: var(--accent);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
  flex: 1;
  line-height: 1.6;
}

.blog-card__more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.work-card__more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 520px;
  margin: 0 auto;
}

.empty-state h2 {
  margin: 0 0 0.75rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Contact extras */
.contact-note {
  margin: 0.4rem 0 0 !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

.contact-form__intro {
  margin-bottom: 1.5rem;
}

.contact-form__intro h2 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.contact-form__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-map-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-map-card__copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.contact-map-card__copy > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 48ch;
}

.contact-checklist {
  margin-top: 0 !important;
}

.contact-map-card__panel {
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 226, 184, 0.12), transparent 55%),
    linear-gradient(145deg, #0A4A46, #032826);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
}

.contact-map-card__panel strong {
  font-size: 1.2rem;
  color: var(--text);
}

.contact-map-card__panel span {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28ch;
  margin-inline: auto;
}

.article-entry {
  padding: 2.5rem 0 1rem;
}

.article-entry__media {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-entry__media img {
  display: block;
  width: 100%;
  height: auto;
}

.article-entry__content {
  max-width: 720px;
  margin: 0 auto;
}

/* Process polish */
.process-timeline-v2 {
  margin-top: 2rem;
}

.problem-grid {
  margin-top: 0;
}

.step-card__header h3 {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
}

.step-phase {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.step-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.d-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 226, 184, 0.18);
  color: var(--accent);
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--on-accent, #053D3A) !important;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .section { padding: 3.5rem 0; }
  .section--tight { padding: 2.5rem 0; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero__ctas, .hero__meta { justify-content: center; }
  .problem-grid,
  .work-grid,
  .pricing-grid,
  .testimonials-grid,
  .services-grid,
  .values-grid,
  .blog-grid,
  .about-stats,
  .contact-map-card,
  .team-grid { grid-template-columns: 1fr; }
  .process-timeline, .stats-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card--featured { transform: none; }
  .page-hero h1,
  .page-hero__title { max-width: none; }
  .page-hero__inner--split { grid-template-columns: 1fr; gap: 1.75rem; }
  .page-hero__stats { max-width: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

.page-hero__title--wide {
  max-width: 22ch;
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .section { padding: 3rem 0; }
  .section--tight { padding: 2rem 0; }
  .d-none-mobile { display: none !important; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Header stays above the drawer */
  .site-header {
    z-index: 1100;
  }

  body.nav-open .site-header {
    background: var(--ink-deep);
    border-bottom-color: rgba(255, 226, 184, 0.1);
    box-shadow: none;
  }

  /* Animated hamburger → close */
  .nav-toggle.is-open {
    background: rgba(255, 226, 184, 0.16);
    border-color: rgba(255, 226, 184, 0.4);
  }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(1),
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(2),
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(3),
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Full-screen mobile drawer */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    padding: 0;
    background:
      radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 226, 184, 0.08), transparent 55%),
      radial-gradient(ellipse 60% 40% at 0% 100%, rgba(125, 211, 199, 0.06), transparent 50%),
      linear-gradient(165deg, #032826 0%, #053D3A 48%, #0A4A46 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    overflow: hidden;
  }

  .nav::before {
    content: "";
    position: absolute;
    top: 18%;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 226, 184, 0.08);
    pointer-events: none;
  }

  .nav::after {
    content: "";
    position: absolute;
    top: 24%;
    right: -10px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(255, 226, 184, 0.05);
    pointer-events: none;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 1.25rem) 1.5rem max(1.75rem, env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__top,
  .nav__footer,
  .nav__eyebrow,
  .nav__tagline,
  .nav__cta,
  .nav__contact,
  .nav__markets {
    display: block;
  }

  .nav__top {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }

  .nav.is-open .nav__top {
    opacity: 1;
    transform: none;
    transition-delay: 0.08s;
  }

  .nav__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.45rem;
  }

  .nav__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(255, 226, 184, 0.55);
  }

  .nav__tagline {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 22ch;
  }

  .nav .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1;
    width: 100%;
    counter-reset: nav-item;
    border-top: 1px solid rgba(255, 226, 184, 0.1);
  }

  .nav .menu > li {
    counter-increment: nav-item;
    border-bottom: 1px solid rgba(255, 226, 184, 0.1);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.2s ease;
  }

  .nav.is-open .menu > li {
    opacity: 1;
    transform: none;
  }

  .nav.is-open .menu > li:nth-child(1) { transition-delay: 0.1s; }
  .nav.is-open .menu > li:nth-child(2) { transition-delay: 0.14s; }
  .nav.is-open .menu > li:nth-child(3) { transition-delay: 0.18s; }
  .nav.is-open .menu > li:nth-child(4) { transition-delay: 0.22s; }
  .nav.is-open .menu > li:nth-child(5) { transition-delay: 0.26s; }
  .nav.is-open .menu > li:nth-child(6) { transition-delay: 0.3s; }
  .nav.is-open .menu > li:nth-child(7) { transition-delay: 0.34s; }
  .nav.is-open .menu > li:nth-child(8) { transition-delay: 0.38s; }

  .nav .menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.05rem 0.15rem;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 5.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-soft);
    line-height: 1.15;
  }

  .nav .menu a::before {
    content: counter(nav-item, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    opacity: 0.7;
    min-width: 1.6rem;
    flex-shrink: 0;
  }

  .nav .menu a::after {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-6px);
    background: no-repeat center / 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFE2B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }

  .nav .menu a:hover,
  .nav .menu .current-menu-item a {
    color: var(--accent);
  }

  .nav .menu a:hover::after,
  .nav .menu .current-menu-item a::after {
    opacity: 1;
    transform: none;
    width: 18px;
    height: 18px;
    left: auto;
    bottom: auto;
    background-color: transparent;
  }

  .nav .menu .current-menu-item {
    background: linear-gradient(90deg, rgba(255, 226, 184, 0.08), transparent 70%);
  }

  .nav .menu .current-menu-item a {
    color: var(--text);
  }

  .nav .menu .current-menu-item a::before {
    opacity: 1;
  }

  .nav__footer {
    margin-top: 1.75rem;
    padding-top: 0.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }

  .nav.is-open .nav__footer {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(255, 226, 184, 0.22);
  }

  .nav__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.65rem;
  }

  .nav__contact a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .nav__contact a:hover {
    color: var(--accent);
    border-bottom-color: rgba(255, 226, 184, 0.45);
  }

  .nav__contact-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 226, 184, 0.35);
  }

  .nav__markets {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.02em;
  }

  .process-timeline, .stats-grid, .footer-grid, .contact-grid, .form-row, .about-stats, .team-grid { grid-template-columns: 1fr; }
  .page-hero {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 1.75rem;
  }
  .service-card,
  .value-card { padding: 1.35rem 1.2rem; }
  .price-card { padding: 1.5rem 1.2rem; }
  .cs-page__hero-grid,
  .cs-page__layout,
  .cs-page__results { grid-template-columns: 1fr; }
  .cs-page__aside { position: static; }
  .work-grid--3 { grid-template-columns: 1fr; }
  .process-step-v2 { grid-template-columns: 1fr; gap: 0.85rem; }
  .contact-map-card { padding: 1.35rem; }
}

/* ==========================================================================
   CASE STUDY DETAIL PAGES
   ========================================================================== */
.cs-page {
  padding-bottom: 0;
}

.cs-page__hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.cs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.cs-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.cs-breadcrumb a:hover {
  color: var(--accent);
}

.cs-page__hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.cs-page__title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  margin: 0 0 1rem;
  max-width: 14ch;
  letter-spacing: -0.035em;
}

.cs-page__lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.cs-page__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.cs-page__fact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.cs-page__fact strong {
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 600;
}

.cs-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-page__tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 226, 184, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.cs-page__frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.cs-page__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cs-page__results-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.cs-page__results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cs-page__results:has(.cs-page__result:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

.cs-page__result {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cs-page__result strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.cs-page__result span {
  font-size: 0.85rem;
  color: var(--muted);
}

.cs-page__body {
  padding: 3.5rem 0 2rem;
}

.cs-page__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.cs-page__main {
  min-width: 0;
}

.cs-block {
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}

.cs-block:last-of-type {
  border-bottom: none;
}

.cs-block__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cs-block h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin: 0 0 1rem;
}

.cs-block__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

.cs-block p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.cs-block p:last-child {
  margin-bottom: 0;
}

.cs-approach {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cs-approach__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cs-approach__num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1.2;
}

.cs-approach__item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.cs-approach__item p {
  margin: 0;
  font-size: 0.95rem;
}

.cs-checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cs-checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cs-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.95rem;
  top: 0.85rem;
  color: var(--accent);
  font-weight: 800;
}

.cs-gallery {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.cs-gallery__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.cs-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-quote {
  margin: 2.5rem 0 0;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 226, 184, 0.08), var(--bg-card));
  border: 1px solid rgba(255, 226, 184, 0.2);
}

.cs-quote__stars {
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cs-quote p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  font-style: italic;
}

.cs-quote__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cs-quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0A524E);
  color: var(--on-accent, #053D3A);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cs-quote__author strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.cs-quote__author span {
  font-size: 0.85rem;
  color: var(--muted);
}

.cs-page__aside {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  display: grid;
  gap: 1rem;
}

.cs-aside-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cs-aside-card h3 {
  font-size: 1rem;
  margin: 0 0 1.15rem;
}

.cs-aside-card .btn {
  margin-top: 0.65rem;
}

.cs-aside-card--soft {
  background: rgba(255, 226, 184, 0.05);
  border-color: rgba(255, 226, 184, 0.15);
}

.cs-aside-dl {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.cs-aside-dl div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.cs-aside-dl div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cs-aside-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cs-aside-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.cs-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.cs-aside-list li {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-left: 1rem;
  position: relative;
}

.cs-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.cs-related {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

@media (max-width: 1024px) {
  .cs-page__hero-grid {
    grid-template-columns: 1fr;
  }
  .cs-page__layout {
    grid-template-columns: 1fr;
  }
  .cs-page__aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .cs-page__results {
    grid-template-columns: 1fr 1fr;
  }
  .work-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .cs-page__hero {
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: 2rem;
  }
  .cs-page__facts {
    grid-template-columns: 1fr 1fr;
  }
  .cs-page__aside {
    grid-template-columns: 1fr;
  }
  .cs-page__results {
    grid-template-columns: 1fr;
  }
  .work-grid--3 {
    grid-template-columns: 1fr;
  }
  .cs-page__title {
    max-width: none;
  }
}
