/* =========================================================
   _page.css — content pages (/contact/, /despre/, /portofoliu/ and its case studies,
   /blog/, legal pages). Loaded AFTER /servicii/_shared.css and
   relies only on its tokens (--accent*, --svc-*, --glass*, --font-*).

   Public contract (other pages reference these names):
     .page-hero, .page-hero h1, .page-lead, .prose, .card-grid,
     .card, .badge, .meta-list
   Helpers: .page-section, .page-section-head, .card-media,
     .card-body, .card-eyebrow, .card-tags, .card-link, .card-icon,
     .card-value, .founder*, .quote-*, .stat-row, .identity-line,
     .page-cta
   Motion: only transform / opacity / color / border-color are
   transitioned; every transition lists its properties.
   ========================================================= */

/* ─── Shared-chrome adjustments for content pages ─── */

/* Current page in the navbar / drawer (content pages use
   aria-current instead of the scroll-spy .active class). */
.nav-link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}
.nav-link:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: -2px;
  color: #fff;
}
.nav-link:active { color: var(--accent); }
.mobile-drawer .m-link[aria-current="page"] {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}
.mobile-drawer .m-link {
  transition: border-color 220ms ease, color 220ms ease, transform 220ms cubic-bezier(.22,1,.36,1);
}
.mobile-drawer .m-link:hover { border-color: var(--accent-line); color: #fff; }
.mobile-drawer .m-link:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.mobile-drawer .m-link:active { transform: scale(0.985); }

/* =========================================================
   Page hero
   ========================================================= */
.page-hero {
  position: relative;
  padding: 112px 0 32px;
}
@media (min-width: 1024px) {
  .page-hero { padding: 152px 0 48px; }
}
/* The panel is inset by the page gutter so its edges line up with the
   content cards below (the .container gutter becomes a margin here). */
.page-hero > .container {
  position: relative;
  width: auto;
  max-width: 1440px;
  margin-inline: 24px;
  background: rgba(13, 16, 26, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 48px 44px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 6px rgba(2, 8, 20, 0.35),
    0 24px 64px -24px rgba(0, 120, 160, 0.28),
    0 48px 96px -48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
/* soft accent bloom in the top-right corner of the panel */
.page-hero > .container::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 140%;
  pointer-events: none;
  background:
    radial-gradient(closest-side, var(--accent-soft), transparent 70%),
    radial-gradient(40% 40% at 70% 30%, rgba(189, 0, 255, 0.06), transparent 70%);
}
.page-hero > .container > * { position: relative; }
@media (min-width: 640px) { .page-hero > .container { margin-inline: 40px; } }
@media (min-width: 1024px) { .page-hero > .container { margin-inline: 64px; } }
@media (min-width: 1400px) { .page-hero > .container { margin-inline: max(80px, calc((100% - 1440px) / 2)); } }
@media (max-width: 639px) {
  .page-hero > .container { padding: 28px 20px 28px; border-radius: 14px; }
}
.page-hero .hero-breadcrumb { margin-bottom: 24px; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  color: #fff;
  text-wrap: balance;
  max-width: 18ch;
}
.page-hero h1 .accent {
  background: linear-gradient(135deg, var(--electric), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-lead {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--svc-ink-2);
  text-wrap: pretty;
}
.page-lead + .page-lead { margin-top: 12px; }
.page-lead strong { color: var(--svc-ink); font-weight: 600; }
.page-lead a {
  color: var(--svc-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.page-lead a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.page-lead a:active { color: #fff; }

/* =========================================================
   Page sections
   ========================================================= */
.page-section {
  position: relative;
  padding: 48px 0;
}
@media (min-width: 1024px) {
  .page-section { padding: 64px 0; }
}
.page-section:last-of-type { padding-bottom: 96px; }
/* first section right under the hero: the hero already provides the air */
.page-hero + main > .page-section:first-child { padding-top: 16px; }
@media (min-width: 1024px) { .page-hero + main > .page-section:first-child { padding-top: 24px; } }
.page-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.page-section-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.page-section-head p {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--svc-ink-2);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   Prose — long-form text (legal pages, articles, about copy)
   ========================================================= */
.prose {
  max-width: 72ch;
  color: var(--svc-ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  scroll-margin-top: 112px;
}
.prose h3 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--svc-ink);
  scroll-margin-top: 112px;
}
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose strong, .prose b { color: var(--svc-ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose ol li::marker { font-family: var(--font-mono); font-size: 0.85em; }
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul { margin: 8px 0 0; }
.prose a {
  color: var(--svc-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose a:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--accent);
}
.prose a:active { color: #fff; }
.prose hr {
  margin: 40px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), var(--svc-line) 40%, transparent);
}
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--glass);
  border-radius: 0 14px 14px 0;
  color: var(--svc-ink);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--svc-ink);
}
.prose table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--svc-line);
}
.prose th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--svc-ink-3);
  border-bottom-color: var(--svc-line-2);
}
.prose td { color: var(--svc-ink-2); }

/* =========================================================
   Card grid + card
   Depth: base (page) → elevated (.card) → floating (hover).
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card-grid > .reveal:nth-child(3n+2) { --reveal-delay: 70ms; }
.card-grid > .reveal:nth-child(3n) { --reveal-delay: 140ms; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 28px 24px;
  color: var(--svc-ink-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%),
    var(--deep-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 4px rgba(2, 8, 20, 0.3),
    0 16px 40px -20px rgba(0, 90, 130, 0.35);
  isolation: isolate;
  transition:
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    border-color 300ms ease;
}
/* Floating-state shadow lives on a pseudo-element so only its opacity animates. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 24px 56px -16px var(--accent-glow),
    0 40px 80px -40px rgba(0, 0, 0, 0.7);
  transition: opacity 420ms cubic-bezier(.22, 1, .36, 1);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}
.card:hover::before,
.card:focus-within::before { opacity: 1; }
a.card:active,
.card:has(.card-link:active) {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 90ms;
}
a.card:focus-visible,
.card:has(.card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a.card,
a.card:focus-visible:not(.btn):not(.nav-link):not(.mobile-menu-btn) { text-decoration: none; }

.card h2,
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--svc-ink);
  text-wrap: balance;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--svc-ink-2);
  text-wrap: pretty;
}
.card-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.card-icon svg { width: 20px; height: 20px; }
.card-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}

/* Media card (portfolio) */
.card.has-media { padding: 0; overflow: hidden; gap: 0; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1320;
  border-bottom: 1px solid var(--glass-border);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.001);
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}
/* colour treatment + bottom fade */
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(0, 242, 255, 0.10), rgba(90, 40, 200, 0.14));
  mix-blend-mode: multiply;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.6), rgba(10, 12, 16, 0) 45%);
}
.card-media .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(10, 12, 16, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card.has-media:hover .card-media img,
.card.has-media:focus-within .card-media img { transform: scale(1.04); }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px 24px 24px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.card-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--svc-line-2);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--svc-ink-2);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 200ms ease;
}
.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}
/* stretched link: whole card is the hit area */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
}
.card-link:focus-visible { text-decoration: none; }
.card:hover .card-link { color: #fff; }
.card:hover .card-link svg,
.card-link:focus-visible svg { transform: translate(3px, -3px); }

/* Case-study card: the stretched .card-link opens the case study, .card-live
   sits above the stretched area and opens the client's site. */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: auto;
}
.card-actions .card-link { margin-top: 0; }
.card-live {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--svc-ink-3);
  transition: color 200ms ease;
}
.card-live svg { width: 12px; height: 12px; transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
.card-live:hover { color: #fff; }
.card-live:hover svg { transform: translate(2px, -2px); }
.card-live:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 2px; color: #fff; }
.card-live:active { color: var(--accent); }

/* =========================================================
   Badge
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.badge.is-muted {
  border-color: var(--svc-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--svc-ink-2);
}
.badge.is-muted::before { box-shadow: none; }

/* =========================================================
   Meta list — label/value rows (<dl class="meta-list">)
   ========================================================= */
.meta-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--svc-line);
}
.meta-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--svc-line);
}
@media (min-width: 560px) {
  .meta-list > div { grid-template-columns: minmax(140px, 200px) 1fr; align-items: baseline; }
}
.meta-list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-ink-3);
}
.meta-list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--svc-ink);
}
.meta-list dd a {
  color: var(--svc-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.meta-list dd a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.meta-list dd a:active { color: #fff; }

/* =========================================================
   Panel (elevated surface for grouped content)
   ========================================================= */
.page-panel {
  position: relative;
  padding: 32px 24px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 60%),
    rgba(13, 16, 26, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 56px -28px rgba(0, 110, 150, 0.35);
}
@media (min-width: 768px) { .page-panel { padding: 40px 40px; } }
.page-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.page-panel > p:not([class]) { margin: 0 0 24px; color: var(--svc-ink-2); font-size: 15px; line-height: 1.7; max-width: 52ch; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
}

/* Closing CTA strip */
.page-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .page-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
.page-cta h2 { margin: 0; }
.page-cta p { margin: 8px 0 0; }
.page-cta .hero-cta-row { margin-top: 0; }

/* =========================================================
   Founder block (/despre/)
   ========================================================= */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .founder { grid-template-columns: minmax(260px, 360px) 1fr; gap: 56px; align-items: start; }
}
.founder-portrait {
  position: relative;
  margin: 0;
  max-width: 360px;
}
.founder-portrait-frame {
  position: relative;
  aspect-ratio: 720 / 1081;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  background: #0d1320;
  box-shadow:
    0 2px 6px rgba(2, 8, 20, 0.4),
    0 30px 80px -30px var(--accent-glow),
    0 50px 100px -50px rgba(90, 40, 200, 0.45);
}
.founder-portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.founder-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(0, 242, 255, 0.10), rgba(120, 40, 220, 0.12));
  mix-blend-mode: multiply;
}
.founder-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.6), rgba(10, 12, 16, 0) 40%);
}
.founder-portrait figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.founder-portrait figcaption b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.founder-portrait figcaption span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.founder-body h2 {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.founder-role {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-ink-3);
}
.founder-quote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--svc-ink);
  text-wrap: balance;
}
.founder-quote .grad-text { font-weight: 800; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--svc-line);
  border-bottom: 1px solid var(--svc-line);
}
/* <dt> precedes <dd> in the markup; column-reverse puts the value on top. */
.stat-row > div { display: flex; flex-direction: column-reverse; padding: 20px 16px 20px 0; }
.stat-row > div + div { padding-left: 16px; border-left: 1px solid var(--svc-line); }
.stat-row dt {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-ink-3);
}
.stat-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

/* =========================================================
   Quote cards (/despre/ reviews)
   ========================================================= */
.quote-card blockquote {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  color: var(--svc-ink);
}
.quote-card blockquote p { font-size: inherit; color: inherit; }
.quote-mark {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.75;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--svc-line);
}
.quote-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote-who b { color: #fff; font-size: 14px; font-weight: 600; }
.quote-who span { color: var(--svc-ink-3); font-size: 12.5px; }

.identity-line {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--svc-ink-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 200ms ease;
}
.text-link svg { width: 14px; height: 14px; transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
.text-link:hover { color: #fff; }
.text-link:hover svg, .text-link:focus-visible svg { transform: translate(3px, -3px); }
.text-link:active { color: var(--accent); }

/* =========================================================
   Case study (/portofoliu/<client>/)
   ========================================================= */
.cs-hero-actions { margin-top: 32px; }

.cs-shot { margin: 0; }
.cs-shot-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: #0d1320;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 6px rgba(2, 8, 20, 0.4),
    0 30px 80px -36px var(--accent-glow),
    0 60px 120px -60px rgba(0, 0, 0, 0.7);
}
/* the <img> width/height attributes set the frame ratio, so one rule fits every screenshot */
.cs-shot-frame img { display: block; width: 100%; height: auto; }
.cs-shot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(0, 242, 255, 0.06), rgba(90, 40, 200, 0.08));
  mix-blend-mode: multiply;
}
.cs-shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.6), rgba(10, 12, 16, 0) 30%);
}
.cs-shot figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--svc-ink-3);
}

.cs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .cs-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 64px; align-items: start; }
  .cs-facts { position: sticky; top: 112px; }
}
.cs-layout .prose h2:first-child { margin-top: 0; }
.cs-facts {
  padding: 28px 24px 12px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%),
    var(--deep-bg-card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 40px -20px rgba(0, 90, 130, 0.35);
}
.cs-facts-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-facts .meta-list > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
.cs-facts .meta-list > div:last-child { border-bottom: 0; }
.cs-facts .meta-list dd { font-size: 15px; }

.cs-measure h2 { margin-top: 12px; }
.cs-stats { margin-top: 24px; }
/* values on one baseline even when a label wraps to two lines */
.cs-stats > div { flex-direction: column; }
.cs-stats dd { order: -1; }
.cs-measure-note {
  margin: 20px 0 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--svc-ink-2);
}
.cs-measure-note a,
a.cs-inline {
  color: var(--svc-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.cs-measure-note a:hover,
a.cs-inline:hover { color: var(--accent); text-decoration-color: var(--accent); }
.cs-measure-note a:focus-visible,
a.cs-inline:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 2px; }
.cs-measure-note a:active,
a.cs-inline:active { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .card-media img, .card-link svg, .card-live svg, .text-link svg { transition: none; }
  .card:hover, .card:focus-within { transform: none; }
  .card.has-media:hover .card-media img { transform: none; }
}
