/* ============================================================
   Figueroa Luchetti Consulting — minimal light design
   Big centered type, black pill buttons, pastel aurora glow
   ============================================================ */

:root {
  --bg: #f5f5f3;
  --ink: #131315;
  --brand: #0c243c;
  --muted: #6c6c74;
  --hairline: #e3e3df;
  --radius: 16px;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Aurora background ---------- */

.aurora {
  position: fixed;
  left: -5vw;
  right: -5vw;
  bottom: -14vh;
  height: 82vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 64% at 3% 86%, rgba(255, 186, 70, 0.98), transparent 72%),
    radial-gradient(ellipse 40% 56% at 24% 102%, rgba(255, 118, 145, 0.92), transparent 72%),
    radial-gradient(ellipse 38% 52% at 48% 96%, rgba(255, 105, 175, 0.8), transparent 72%),
    radial-gradient(ellipse 40% 56% at 63% 100%, rgba(178, 126, 255, 0.9), transparent 72%),
    radial-gradient(ellipse 52% 72% at 97% 80%, rgba(64, 170, 255, 0.98), transparent 72%);
  filter: blur(40px);
}

/* ---------- Header ---------- */

.site-header { padding-block: 1.4rem; }

/* header spans the full screen width, brand flush left */
.site-header .container {
  width: 100%;
  padding-inline: clamp(1.2rem, 2.5vw, 2.2rem);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.brand-logo {
  height: 1.85rem;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.site-nav a:hover { opacity: 1; }

.site-nav a[aria-current="page"] { opacity: 1; }

.site-nav .nav-cta {
  opacity: 1;
  color: #fff;
  background: var(--ink);
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.site-nav .nav-cta:hover { transform: scale(1.04); background: #000; }

/* Language switcher (small pill at the far right of the bar) */
.site-nav { order: 1; }
.nav-toggle { order: 2; }
.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  color: var(--ink-2, #5b5b66);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-btn svg { width: 1.12rem; height: 1.12rem; display: block; }

.lang-btn:hover, .lang.open .lang-btn { border-color: #cfcfca; background: #fff; color: var(--ink); }

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 10.5rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 18px 40px -24px rgba(19, 19, 21, 0.45);
  display: none;
}

.lang.open .lang-list { display: block; }

.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}

.lang-list a:hover { background: var(--bg); }
.lang-list a[aria-current="true"] { font-weight: 600; }
.lang-list a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-pill:hover { transform: scale(1.04); background: #000; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-quiet:hover { background: var(--ink); color: #fff; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  text-align: center;
  /* the hero owns the first screen on its own: nothing below should peek in.
     --header-h is measured by js; the 90px fallback covers the pre-script paint */
  min-height: calc(100vh - var(--header-h, 90px));
  min-height: calc(100svh - var(--header-h, 90px));
  align-content: center;
  padding-block: clamp(3.5rem, 9vh, 7rem) clamp(4rem, 10vh, 8rem);
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.hero > * { position: relative; z-index: 1; }

.hero-orb {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  width: min(660px, 90vw);
  aspect-ratio: 1;
  pointer-events: none;
}

/* outer diffuse glow */
.hero-orb::before {
  content: "";
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(circle at 62% 20%, rgba(255, 92, 158, 0.45), transparent 45%),
    radial-gradient(circle at 22% 62%, rgba(59, 92, 255, 0.5), transparent 47%),
    radial-gradient(circle at 52% 46%, rgba(186, 135, 255, 0.3), transparent 62%);
  filter: blur(46px);
}

/* the sphere itself — soft but clearly circular */
.hero-orb::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 18%, rgba(255, 105, 168, 0.5), transparent 52%),
    radial-gradient(circle at 22% 66%, rgba(64, 96, 255, 0.55), transparent 58%),
    radial-gradient(circle at 55% 48%, rgba(196, 150, 255, 0.3), rgba(255, 255, 255, 0.1) 78%);
  box-shadow:
    inset 0 2px 28px rgba(255, 255, 255, 0.65),
    inset 0 -10px 48px rgba(255, 255, 255, 0.3),
    0 0 44px rgba(255, 255, 255, 0.5);
  filter: blur(5px);
}

.hero-kicker {
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.hero-giant {
  font-size: clamp(3.4rem, 13.5vw, 10.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-with {
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 0.6rem;
}


.ai-accent {
  font-weight: 600;
  background: linear-gradient(100deg, #2f6bff, #5f5cff 55%, #7a5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 44ch;
  color: var(--muted);
  margin-top: clamp(3.2rem, 7vh, 5rem);
  text-wrap: pretty;
}

.hero .btn-pill { margin-top: clamp(1.6rem, 3.5vh, 2.6rem); }

/* Live counter card to the right of the sphere */
.hero .hero-stat {
  position: absolute;
  /* pinned inside a 1500px band centred on the viewport, then nudged 2cm further in */
  right: calc(max(2.5rem, (100vw - 1500px) / 2) + 4.7rem - (100vw - 100%) / 2);
  top: 42%;
  translate: 0 -50%;
  z-index: 2;
  width: 250px;
  display: grid;
  justify-items: start;
  gap: 0;
  padding: 1.05rem 1.2rem 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 24px 50px -32px rgba(19, 19, 21, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hs-left { display: grid; gap: 0.15rem; width: 100%; }

.hs-right {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hairline);
}

.hs-label { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; }

.hs-num {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

.hs-int { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.035em; }
.hs-frac { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }

.hs-up {
  width: 0.8rem;
  height: 0.8rem;
  color: #16a34a;
  align-self: center;
  margin-left: 0.25rem;
  animation: hs-rise 1.6s ease-in-out infinite;
}

@keyframes hs-rise {
  0%, 100% { transform: translateY(1px); opacity: 0.7; }
  50% { transform: translateY(-2px); opacity: 1; }
}

.hs-time {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.hs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: hs-pulse 2s ease-out infinite;
}

@keyframes hs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hs-date, .hs-zone { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Brand position map (semantic differential) ---------- */

.brandmap {
  position: relative;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

/* the glowing line that joins the dots, drawn by js from the real dot positions */
.bm-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

/* three stacked, differently blurred strokes: a wide bloom, a body and a soft
   centre. No crisp stroke anywhere, so the connector reads as airbrushed. */
.bm-halo,
.bm-glow,
.bm-core {
  fill: none;
  stroke: #4f7cff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bm-halo { stroke-width: 30; filter: blur(19px); opacity: 0.34; }
.bm-glow { stroke-width: 14; filter: blur(8px);  opacity: 0.5; }
.bm-core { stroke-width: 4.5; filter: blur(2.6px); opacity: 0.5; }

.bm-row { position: relative; z-index: 1; }

.bm-track {
  position: relative;
  display: block;
  height: 1px;
  background: var(--hairline);
}

.bm-dot {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  translate: -50% -50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.bm-poles {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  overflow-wrap: break-word;
  hyphens: auto;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.bm-poles span:last-child { text-align: right; }

/* the pole nearest the dot is the claim, so it reads as a choice and not as a score */
.bm-poles span.is-on { color: var(--ink); font-weight: 700; }

/* wide variant: a pole on each side of the track (about page) */
.brandmap.is-wide { gap: 2.1rem; }

.brandmap.is-wide .bm-row {
  display: grid;
  grid-template-columns: minmax(0, 13ch) minmax(0, 1fr) minmax(0, 13ch);
  align-items: center;
  gap: 1.2rem;
}

.brandmap.is-wide .bm-poles { display: contents; }
.brandmap.is-wide .bm-poles span { margin: 0; line-height: 1.25; }
.brandmap.is-wide .bm-poles span:first-child { text-align: right; }
.brandmap.is-wide .bm-poles span:last-child { text-align: left; }
.brandmap.is-wide .bm-track { order: 0; }

/* the three items share one grid row, so each label lines up with its track */
.brandmap.is-wide .bm-row > .bm-track,
.brandmap.is-wide .bm-row > .bm-poles > span { grid-row: 1; }
.brandmap.is-wide .bm-row > .bm-track { grid-column: 2; }
.brandmap.is-wide .bm-row > .bm-poles > span:first-child { grid-column: 1; }
.brandmap.is-wide .bm-row > .bm-poles > span:last-child { grid-column: 3; }

@media (max-width: 620px) {
  .brandmap.is-wide .bm-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .brandmap.is-wide .bm-poles { display: flex; }
  .brandmap.is-wide .bm-poles span:first-child { text-align: left; }
  .brandmap.is-wide .bm-row > .bm-track,
  .brandmap.is-wide .bm-row > .bm-poles > span { grid-column: 1; grid-row: auto; }
}

@media (max-width: 1280px) {
  .hero .hero-stat { position: relative; inset: auto; translate: none; margin-top: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-dot, .hs-up { animation: none; }
}

/* marquee ribbon — words drifting across the screen */
.marquee-section {
  padding-block: clamp(2.5rem, 7vh, 5rem) clamp(1.5rem, 3vh, 2.5rem);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.marquee.dragging { cursor: grabbing; }

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  gap: clamp(2.2rem, 4vw, 3.4rem);
  padding-right: clamp(2.2rem, 4vw, 3.4rem);
}

.marquee-group span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #101013;
  opacity: 0.55;
  white-space: nowrap;
}


/* ---------- Shared page structure ---------- */

.page-hero {
  text-align: center;
  padding-block: clamp(3rem, 7vh, 5.5rem) clamp(2.5rem, 5vh, 4rem);
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 { overflow-wrap: break-word; }

.page-hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.05;
  max-width: 18ch;
}

.page-hero .lede {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.08rem;
  text-wrap: pretty;
}

.section { padding-block: clamp(2.5rem, 6vh, 4.5rem); }

/* LinkedIn profile card (About hero) */
.profile-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.7rem;
  padding: 0.7rem 0.75rem 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  box-shadow: 0 22px 44px -30px rgba(19, 19, 21, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  border-color: #cfcfca;
  box-shadow: 0 26px 50px -28px rgba(19, 19, 21, 0.5);
}

.pc-brand {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  margin-left: 1.6rem;
  transition: transform 0.18s ease;
  border-radius: 10px;
  background: #0a66c2;
  color: #fff;
  display: grid;
  place-items: center;
}

.pc-brand svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }

.pc-photo {
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hairline), 0 0 0 4px #fff;
}

.pc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.profile-card:hover .pc-photo img { transform: scale(1.06); }
.profile-card:hover .pc-brand { transform: scale(1.06); }

.pc-text { display: grid; gap: 0.1rem; }
.pc-text strong { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.015em; }
.pc-text small { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 460px) {
  .profile-card { gap: 0.6rem; }
  .pc-brand { width: 2.1rem; height: 2.1rem; margin-left: 0.8rem; }
  .pc-photo { width: 2.9rem; height: 2.9rem; }
  .pc-text strong { font-size: 0.88rem; }
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.muted { color: var(--muted); }

.measure { max-width: 62ch; margin-inline: auto; display: grid; gap: 1.1rem; }

/* ---------- Glass card ---------- */

.card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -30px rgba(19, 19, 21, 0.18);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
}

/* ---------- Services header ---------- */

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: end;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(2rem, 4vh, 3rem);
}

.services-head .eyebrow { display: block; margin-bottom: 0.9rem; }

.services-title {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.services-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: block;
}

.services-note {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
  max-width: 36ch;
  justify-self: end;
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.3rem;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -32px rgba(19, 19, 21, 0.28);
}

.sc-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black 32%);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 32%);
}

.sc-art svg { width: 100%; height: 100%; }

.sc-num {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  max-width: 55%;
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 0.55rem;
  max-width: 51%;
}

.sc-arrow {
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.sc-arrow:hover { transform: scale(1.12); background: #000; }

/* ---------- Principles ---------- */

.principles { list-style: none; display: grid; }

.principles li {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--hairline);
}

.principles li:last-child { border-bottom: 1px solid var(--hairline); }

.principles h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.principles p { color: var(--muted); font-size: 0.97rem; }

/* ---------- About: bio, education, clients ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  margin-top: clamp(1rem, 3vh, 2rem);
}

.stat {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.stat .stat-num {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

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

.edu-list { list-style: none; display: grid; gap: 0; }

.edu-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.edu-list li:last-child { border-bottom: 1px solid var(--hairline); }

.flag {
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.667rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(19, 19, 21, 0.12);
  margin-top: 0.3rem;
}

.flag svg { width: 100%; height: 100%; display: block; }

.edu-body h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.edu-body p { font-size: 0.95rem; color: var(--muted); margin-top: 0.15rem; }

.edu-status {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a5cff;
  vertical-align: 2px;
}


@media (max-width: 480px) {
  .brand { font-size: 1rem; letter-spacing: -0.03em; }
  .brand-logo { height: 1.5rem; }
}

@media (max-width: 680px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */

.folio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.folio-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.folio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -32px rgba(19, 19, 21, 0.28);
}

.folio-logo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: rgba(19, 19, 21, 0.35);
}

.folio-logo.g1 { background: linear-gradient(135deg, #ffeccc, #ffd9e8); }
.folio-logo.g2 { background: linear-gradient(135deg, #e6ddff, #ffd9f0); }
.folio-logo.g3 { background: linear-gradient(135deg, #d8ecff, #e2f9ef); }

.folio-logo.brand { background: #fff; border: 1px solid var(--hairline); overflow: hidden; }

.folio-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.folio-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.folio-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.folio-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

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

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

/* ---------- Contact ---------- */

.contact-banner {
  min-height: 48vh;
  display: grid;
  place-items: center;
  padding-block: clamp(4.5rem, 11vh, 8rem) clamp(3.5rem, 9vh, 6.5rem);
}

.contact-banner img {
  width: min(500px, 82vw);
  height: auto;
}

.contact-min {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.contact-big {
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  padding-bottom: 0.35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: opacity 0.2s ease;
}

.contact-big:hover { opacity: 0.55; }

.contact-note { max-width: 46ch; }

.include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.4rem;
}

.include-item {
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.include-item .inc-num { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.include-item h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.include-item p { font-size: 0.92rem; color: var(--muted); }

.contact-closing { text-align: center; max-width: 56ch; margin: 3rem auto 0; }

/* ---------- CTA ---------- */

.cta-final {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.cta-final h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 18ch;
}

.cta-final p { color: var(--muted); max-width: 46ch; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 1.8rem;
  margin-top: clamp(2rem, 5vh, 4rem);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-row nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.footer-row a { text-decoration: none; color: var(--muted); }
.footer-row a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Focus & motion ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-pill:hover, .site-nav .nav-cta:hover { transform: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-wrap { gap: 0.8rem; }

  /* the language pill becomes a plain row of links inside the open menu */
  .lang { width: 100%; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--hairline); }
  .lang-btn { display: none; }

  .lang-list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .lang-list { gap: 0.4rem; }

  .site-nav .lang-list a {
    display: block;
    gap: 0;
    padding: 0.38rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: #fff;
  }

  .site-nav .lang-list a[aria-current="true"]::after { display: none; }

  .site-nav .lang-list a[aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    opacity: 1;
  }

  .site-header { position: relative; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1.5rem 1.25rem;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 0.8rem 0; font-size: 1.05rem; }

  .site-nav .nav-cta { margin-top: 0.75rem; justify-content: center; }

  .include-grid,
  .principles li { grid-template-columns: 1fr; }
}

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

@media (max-width: 680px) {
  .service-grid { grid-template-columns: 1fr; }
  .sc-art { width: 46%; opacity: 0.7; }

  /* long German compounds need more room than the desktop text column allows */
  .service-card h3,
  .service-card p { max-width: 64%; hyphens: auto; }
  .services-head { grid-template-columns: 1fr; align-items: start; }
  .services-note { text-align: left; justify-self: start; }
}

/* ============================================================
   Case study pages
   ============================================================ */

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: color 0.15s ease;
}

.case-back:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(2rem, 5vh, 3.5rem);
}

/* the case studies whose visual is a bare mark give it a little less room */
.case-hero-mark { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }

.case-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.06;
  text-wrap: balance;
}

.case-standfirst {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1.4rem;
  max-width: 52ch;
  text-wrap: pretty;
}

.case-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 70px -40px rgba(19, 19, 21, 0.35);
}

.case-visual img { width: 100%; height: auto; display: block; }

/* ---------- Two column body ---------- */

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 4vh, 3rem) clamp(2rem, 6vh, 4rem);
  border-top: 1px solid var(--hairline);
}

.case-side {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 2.2rem;
}

.case-side h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.case-side p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

.case-facts { list-style: none; display: grid; gap: 0; }

.case-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
}

.case-facts li:last-child { border-bottom: 1px solid var(--hairline); }

.case-facts dt, .case-facts .k { color: var(--muted); }
.case-facts .v { font-weight: 500; text-align: right; }

.case-index { list-style: none; display: grid; gap: 0.55rem; }

.case-index a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.case-index a:hover { color: var(--ink); }

/* ---------- Main content ---------- */

.case-main { display: grid; gap: clamp(2.5rem, 6vh, 4rem); }

.case-block { scroll-margin-top: 2rem; }

.case-block h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.case-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.case-block p { color: var(--muted); margin-bottom: 1rem; }
.case-block p:last-child { margin-bottom: 0; }

.case-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.case-list { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.2rem; }

.case-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.case-list .tick {
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-weight: 700;
  color: var(--ink);
}

.case-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Metric strips ---------- */

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.metric {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.metric .m-num {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric .m-label { font-size: 0.87rem; color: var(--muted); line-height: 1.45; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.results-grid .metric { text-align: left; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-layout { grid-template-columns: 1fr; }
  .case-side { position: static; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .metric-row, .results-grid { grid-template-columns: 1fr; }
}

/* clickable portfolio card */
a.folio-card { text-decoration: none; color: inherit; }

.folio-cta {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a.folio-card:hover .folio-cta { text-decoration: underline; }

/* ---------- Clickable live-site preview ---------- */

.site-preview {
  display: block;
  margin-top: 1.6rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 44px -30px rgba(19, 19, 21, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-preview:hover {
  transform: translateY(-5px);
  border-color: rgba(19, 19, 21, 0.28);
  box-shadow: 0 34px 70px -32px rgba(19, 19, 21, 0.42);
}

.sp-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: #f2f2ef;
  border-bottom: 1px solid var(--hairline);
}

.sp-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #d9d9d4;
  flex-shrink: 0;
}

.sp-url {
  margin-left: 0.6rem;
  flex: 1;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-shot {
  position: relative;
  display: block;
  line-height: 0;
}

.sp-shot img { width: 100%; height: auto; display: block; }

.sp-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(19, 19, 21, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-preview:hover .sp-overlay,
.site-preview:focus-visible .sp-overlay { opacity: 1; }

.sp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transform: translateY(6px);
  transition: transform 0.25s ease;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.site-preview:hover .sp-cta { transform: none; }

.sp-caption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.8rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .site-preview, .site-preview:hover { transform: none; transition: none; }
  .sp-cta { transform: none; }
}

/* ---------- Case: text left, image right ---------- */

.case-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.case-split > div > p:last-child { margin-bottom: 0; }

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

@media (max-width: 780px) {
  .case-split { grid-template-columns: 1fr; gap: 1.6rem; }
  .cs-media { max-width: 340px; margin-inline: auto; }
}

/* ---------- Case: justified body text ---------- */

.case-standfirst,
.case-side p,
.case-block p,
.case-list li > span:last-child {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* justify and pretty-wrap fight each other */
.case-standfirst { text-wrap: initial; }

/* ---------- Case metrics: no boxes, editorial numbers ---------- */

.metric-row,
.results-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 1.9rem;
}

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

.metric {
  background: none;
  border: none;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  padding: 1.05rem 0 0;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.metric .m-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.1rem);
  letter-spacing: -0.015em;
  line-height: 0.92;
}

.metric .m-label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

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

@media (max-width: 480px) {
  .metric-row, .results-grid { grid-template-columns: 1fr; }
}

/* metrics: title typeface, centered */

.metric {
  justify-items: center;
  text-align: center;
}

.metric .m-num {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric .m-label {
  font-size: 0.97rem;
  line-height: 1.5;
  max-width: 24ch;
}

/* ---------- Case: full-width results ---------- */

.case-results {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.6rem, 6vh, 4.2rem);
}

.case-results h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.case-results > p {
  color: var(--muted);
  max-width: 66ch;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.case-results .results-grid { margin-top: 2.2rem; }

.results-chart {
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 0;
}

.results-chart svg { width: 100%; height: auto; display: block; }

.results-chart figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Case: section meta row with tech mark ---------- */

.case-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.case-meta .case-num { margin-bottom: 0; }

.case-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.case-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
  order: 3;
}

.case-tech img { height: 1.15rem; width: auto; }

/* ---------- Case: keyword ranking list ---------- */

.rank-list { list-style: none; display: grid; margin-top: 1.6rem; }

.rank-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.rank-list li:last-child { border-bottom: 1px solid var(--hairline); }

.rank-list .q { color: var(--ink); }
.rank-list .from { color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-list .arr { color: var(--muted); }

.rank-list .to {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
  text-align: right;
}

@media (max-width: 560px) {
  .rank-list li { grid-template-columns: 1fr auto; row-gap: 0.2rem; }
  .rank-list .q { grid-column: 1 / -1; }
}

/* ---------- Case hero: bare transparent mark ---------- */


.case-visual.bare {
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: none;
}

/* ---------- Case: image gallery and figures ---------- */

.img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.img-grid img,
.case-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}

.case-figure { margin: 1.9rem 0 0; }

.case-figure figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

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

/* marcas verticales: limitar la altura para que no dominen el hero */
.case-visual.bare img {
  max-height: clamp(210px, 30vw, 340px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

/* portfolio CTA anclado al pie de la tarjeta, todas al mismo nivel */
.folio-cta { margin-top: auto; padding-top: 0.9rem; }

/* ---------- Portfolio: category + location meta row ---------- */

.folio-meta {
  /* keeps every card title on the same line even when a tag wraps in some language */
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.folio-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.flag-mini {
  width: 1.05rem;
  height: 0.7rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(19, 19, 21, 0.14);
  flex-shrink: 0;
}

.flag-mini svg { width: 100%; height: 100%; display: block; }

/* ---------- About: justified body text ---------- */

.measure p,
.principles p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}


/* tech badge: SVG inline al mismo tamaño que las imágenes */
.case-tech svg { height: 1.15rem; width: auto; flex-shrink: 0; }

/* ---------- About: cinta de logos de clientes ---------- */

.logo-marquee { margin-top: 2.2rem; }

.logo-marquee .marquee-group {
  align-items: center;
  gap: clamp(2.6rem, 5vw, 4.2rem);
  padding-right: clamp(2.6rem, 5vw, 4.2rem);
}

.logo-marquee img {
  height: 2.9rem;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.logo-marquee img:hover { filter: none; opacity: 1; }

@media (max-width: 560px) {
  .logo-marquee img { height: 2.3rem; }
}

/* ---------- Service detail panel ---------- */

.service-card[data-service] { cursor: pointer; }
.service-card[data-service]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.svc-modal[hidden] { display: none; }

.svc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 21, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.svc-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 40px 90px -30px rgba(19, 19, 21, 0.45);
  animation: svc-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes svc-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.svc-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.svc-close:hover { background: var(--ink); color: #fff; }

.svc-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.svc-panel h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.4rem 3rem 0.8rem 0;
}

.svc-intro { color: var(--muted); }

.svc-panel h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.8rem 0 0.8rem;
}

.svc-list { list-style: none; display: grid; gap: 0.6rem; }

.svc-list li {
  display: flex;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.svc-list .tick { flex-shrink: 0; font-weight: 700; color: var(--ink); margin-top: 0.1rem; }

.svc-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  counter-reset: step;
}

.svc-step {
  border-top: 1px solid var(--hairline);
  padding-top: 0.8rem;
}

.svc-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.svc-step span { font-size: 0.93rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; display: block; }

.svc-deliver { color: var(--muted); font-size: 0.97rem; }

.svc-cta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

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

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

/* ---------- Contact form card ---------- */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(19, 19, 21, 0.35);
}

.cc-side {
  background: var(--brand);
  color: #fff;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc-side img { height: 2.4rem; width: auto; margin-bottom: 0.6rem; }

.cc-side h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cc-rule {
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff8ab0, #b27eff, #40aaff);
}

.cc-side p { color: rgba(255, 255, 255, 0.72); font-size: 0.97rem; }

.cc-mail { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.2rem; }
.cc-mail .lbl { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); display: flex; align-items: center; gap: 0.45rem; }
.cc-mail a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cc-mail a:hover { text-decoration: underline; }

.cc-form { padding: clamp(1.8rem, 4vw, 2.6rem); }

.cc-form h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cc-form > p { color: var(--muted); margin: 0.6rem 0 1.5rem; font-size: 0.97rem; }

.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }

.cc-field { display: grid; gap: 0.4rem; }
.cc-field.full { grid-column: 1 / -1; }
.cc-field label { font-size: 0.88rem; font-weight: 500; }

.cc-field input,
.cc-field textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fafaf8;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cc-field input::placeholder, .cc-field textarea::placeholder { color: #a3a3aa; }
.cc-field input:focus, .cc-field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.cc-field textarea { min-height: 150px; resize: vertical; }

button.btn-pill { border: 0; cursor: pointer; font-family: inherit; }
.cc-submit { margin-top: 1.4rem; width: 100%; justify-content: center; }
.cc-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; text-align: center; }

.cc-hp { position: absolute; left: -9999px; }

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

/* el logo del panel oscuro no debe estirarse con la columna flex */
.cc-side img { align-self: flex-start; }

@media (max-width: 560px) {
  /* the badge drops to its own line here, so it should start flush with the title */
  .edu-status { display: block; margin-left: 0; margin-top: 0.3rem; width: max-content; }
}

/* ---------- Product demo video (home) ---------- */

.demo-section { padding-block: clamp(3rem, 9vh, 6.5rem); }

.demo {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

/* on a real screen the whole video should fit in view, so its width is also
   capped by the height available: a 16/9 box inside (viewport - chrome) */
@media (min-width: 860px) {
  .demo { width: min(1240px, 100% - 3rem, calc((100svh - 310px) * 16 / 9)); }
}

.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 50px 100px -46px rgba(19, 19, 21, 0.5), 0 0 0 1px rgba(19, 19, 21, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.demo:hover .demo-frame {
  transform: translateY(-3px);
  box-shadow: 0 58px 110px -44px rgba(19, 19, 21, 0.55), 0 0 0 1px rgba(19, 19, 21, 0.07);
}

.demo-video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the affordance sits on a soft scrim so it reads over the light interface */
.demo-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(246, 246, 243, 0.34);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: opacity 0.3s ease;
}

.dp-ico {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px -14px rgba(19, 19, 21, 0.55);
  transition: transform 0.25s ease;
}

.dp-ico svg { width: 26px; height: 26px; margin-left: 3px; }
.demo:hover .dp-ico { transform: scale(1.07); }

.dp-hint {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2, #5b5b66);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* only the hint that matches the device is shown; js confirms it so the
   wording can never contradict what the video actually does */
.tap-only { display: none; }
@media (hover: none), (pointer: coarse) {
  .hover-only { display: none; }
  .tap-only { display: block; }
}
.demo.can-hover .hover-only { display: block; }
.demo.can-hover .tap-only { display: none; }
.demo.no-hover .hover-only { display: none; }
.demo.no-hover .tap-only { display: block; }

/* while it plays the overlay gets out of the way */
.demo.playing .demo-play { opacity: 0; pointer-events: none; }

.demo-cap {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 52ch;
}

@media (prefers-reduced-motion: reduce) {
  .demo-frame, .dp-ico, .demo-play { transition: none; }
  .demo:hover .demo-frame { transform: none; }
}

@media (max-width: 700px) {
  .demo { width: min(100%, 100% - 2rem); gap: 0.7rem; }
  .demo-frame { border-radius: 14px; }
  .dp-ico { width: 58px; height: 58px; }
  .dp-ico svg { width: 21px; height: 21px; }
  .dp-hint { font-size: 0.72rem; }
  .demo-cap { font-size: 0.82rem; }
}

/* the same demo component, sitting at the top of a service panel */
.svc-demo {
  width: 100%;
  margin: 0 0 1.6rem;
  gap: 0;
}

.svc-demo .demo-frame { border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(19, 19, 21, 0.45), 0 0 0 1px rgba(19, 19, 21, 0.05); }
.svc-demo .dp-ico { width: 60px; height: 60px; }
.svc-demo .dp-ico svg { width: 22px; height: 22px; }
.svc-demo .dp-hint { font-size: 0.74rem; }

@media (max-width: 700px) {
  .svc-demo { margin-bottom: 1.2rem; }
  .svc-demo .demo-frame { border-radius: 12px; }
  .svc-demo .dp-ico { width: 50px; height: 50px; }
}
