:root {
  --purple: #5b3fa3;
  --purple-deep: #3f2b78;
  --teal: #2fa4b8;
  --teal-dark: #1f7888;
  --navy: #2b2e4a;
  --navy-deep: #171a31;
  --ink: #25283d;
  --muted: #666b7f;
  --soft: #f4f6f8;
  --white: #ffffff;
  --line: rgba(43, 46, 74, 0.14);
  --gradient: linear-gradient(125deg, var(--purple), var(--teal));
  --shell: min(1180px, calc(100vw - 64px));
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--navy-deep); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 { font-size: clamp(3.2rem, 6vw, 6.2rem); }
h2 { font-size: clamp(2.35rem, 4.2vw, 4.4rem); }
h3 { font-size: 1.55rem; }

.shell { width: var(--shell); margin-inline: auto; }
.section-dark { color: var(--white); background: var(--navy-deep); }
.section-light { background: var(--soft); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8ce2ec;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow.dark { color: var(--purple); }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--purple);
  border-radius: 0 0 8px 8px;
}

.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 84px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 32px;
}

.site-logo { width: 230px; }
.site-logo img { width: 100%; height: auto; }

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 0.86rem;
  font-weight: 700;
}

.desktop-nav a { position: relative; padding: 29px 0; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 21px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }

.header-contact {
  padding: 11px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}
.header-contact:hover { background: var(--purple); transform: translateY(-2px); }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 84px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 28%, rgba(47, 164, 184, 0.18), transparent 28%),
    radial-gradient(circle at 28% 72%, rgba(91, 63, 163, 0.23), transparent 30%),
    linear-gradient(135deg, #171a31, #242744 60%, #1b1e36);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  padding: 96px 0 118px;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(400px, 0.86fr);
  align-items: center;
  gap: 70px;
}

.hero-copy-block h1 {
  max-width: 820px;
  margin-bottom: 30px;
  font-size: clamp(3.2rem, 5.25vw, 5.65rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-copy-block h1 em { color: #9de7ee; font-style: normal; }

.lead {
  max-width: 690px;
  margin-bottom: 38px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--gradient); box-shadow: 0 14px 35px rgba(71, 80, 178, .28); }
.button-whatsapp { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.07); }
.button-whatsapp:hover { background: rgba(255,255,255,.13); }
.button-dark { color: var(--white); background: var(--navy); }
.hero-actions .wp-block-button { margin: 0; }
.hero-actions .wp-block-button__link {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.hero-actions .wp-block-button__link:hover { transform: translateY(-2px); }
.hero-actions .button-primary .wp-block-button__link { color: var(--white); background: var(--gradient); box-shadow: 0 14px 35px rgba(71,80,178,.28); }
.hero-actions .button-whatsapp .wp-block-button__link { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.07); }
.hero-actions .button-whatsapp .wp-block-button__link:hover { background: rgba(255,255,255,.13); }

.hero-facts {
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  color: rgba(255,255,255,.62);
  font-size: 0.8rem;
}
.hero-facts li::before { content: "✓"; margin-right: 8px; color: #8ce2ec; }

.hero-system { position: relative; min-height: 520px; }
.system-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(140,226,236,.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 80px rgba(47,164,184,.16), inset 0 0 60px rgba(91,63,163,.08);
}
.system-glow::before, .system-glow::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.system-glow::after { inset: 110px; background: radial-gradient(circle, rgba(91,63,163,.4), transparent 65%); }

.system-card {
  position: absolute;
  z-index: 2;
  width: min(390px, 88%);
  min-height: 110px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 15px;
  box-shadow: 0 25px 70px rgba(2,5,18,.3);
  color: var(--navy);
}
.system-card-main { right: 0; top: 34px; transform: rotate(2deg); }
.system-card-second { left: 0; top: 205px; transform: rotate(-2deg); }
.system-card-third { right: 12px; top: 372px; transform: rotate(1deg); }
.system-index { color: var(--purple); font-size: 0.72rem; font-weight: 900; }
.system-card p { margin: 0; }
.system-card small { display: block; color: var(--muted); font-size: 0.7rem; }
.system-kicker { color: var(--muted); font-size: .7rem; }
.system-card strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 1.35rem; }
.status-dot { width: 9px; height: 9px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 6px rgba(47,164,184,.12); }
.hero-bottom-line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }

.problem-section { padding: 125px 0; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: end; }
.split-heading h2 { max-width: 760px; margin-bottom: 0; }
.split-heading > p { margin-bottom: 6px; color: var(--muted); line-height: 1.85; }
.problem-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.problem-card { min-height: 300px; padding: 35px 36px; border-right: 1px solid var(--line); }
.problem-card:first-child { border-left: 1px solid var(--line); }
.problem-card > span { color: var(--teal-dark); font-size: 0.72rem; font-weight: 900; }
.problem-card .card-index { color: var(--teal-dark); font-size: .72rem; font-weight: 900; }
.problem-card h3 { margin: 72px 0 18px; }
.problem-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.services-section { padding: 130px 0 145px; background: var(--white); }
.section-heading.centered { max-width: 820px; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading > p:last-child { max-width: 650px; margin: 22px auto 0; color: var(--muted); }
.service-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/*
 * Gutenberg adds a block gap to sibling Group blocks. These sections use
 * their own CSS grid gap, so external block margins would stagger cards.
 */
.problem-grid > *,
.service-grid > *,
.reference-row > *,
.fit-values > *,
.reference-project-grid > *,
.values-grid > * {
  margin-block: 0 !important;
}

.service-card {
  min-height: 520px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(43,46,74,.1); }
.service-card.featured { color: var(--white); background: linear-gradient(145deg, var(--purple-deep), var(--navy)); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,.68); }
.service-card-top { display: flex; justify-content: space-between; align-items: center; }
.service-card-top > span { font-size: 0.75rem; font-weight: 900; }
.service-card-top > p { margin: 0; font-size: .75rem; font-weight: 900; }
.service-card-top i { width: 12px; height: 12px; border: 3px solid var(--teal); border-radius: 50%; }
.service-status { width: 12px; height: 12px; border: 3px solid var(--teal); border-radius: 50%; }
.service-card h3 { margin: 75px 0 20px; font-size: 2.15rem; }
.service-card p { color: var(--muted); }
.tag-list { margin: 22px 0 35px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.68rem; opacity: .66; }
.tag-list p { margin: 0; padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: .68rem; opacity: .66; }
.service-card > a { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 19px; border-top: 1px solid currentColor; font-size: 0.82rem; font-weight: 800; }
.service-card .service-card-link { width: 100%; margin: auto 0 0; padding-top: 19px; border-top: 1px solid currentColor; }
.service-card-link a { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; }

.process-section { padding: 140px 0; background: linear-gradient(145deg, var(--navy-deep), var(--navy)); }
.process-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.process-intro { position: sticky; top: 130px; align-self: start; }
.process-intro h2 { margin-bottom: 28px; }
.process-intro > p:not(.eyebrow) { color: rgba(255,255,255,.65); }
.text-link { margin-top: 30px; display: inline-flex; gap: 18px; color: #8ce2ec; font-size: 0.85rem; font-weight: 800; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.process-list li { padding: 34px 0; display: grid; grid-template-columns: 72px 1fr; border-bottom: 1px solid rgba(255,255,255,.16); }
.process-list li > span { color: #8ce2ec; font-size: 0.72rem; font-weight: 900; }
.process-list h3 { margin-bottom: 10px; font-size: 1.65rem; }
.process-list p { margin: 0; color: rgba(255,255,255,.58); font-size: 0.9rem; }
.process-list { border-top: 1px solid rgba(255,255,255,.16); }
.process-item { padding: 34px 0; display: grid; grid-template-columns: 72px 1fr; border-bottom: 1px solid rgba(255,255,255,.16); }
.process-item > p { color: #8ce2ec; font-size: .72rem; font-weight: 900; }
.process-item h3 { margin-bottom: 10px; font-size: 1.65rem; }
.process-item p { margin: 0; color: rgba(255,255,255,.58); font-size: .9rem; }
.text-link > a { display: inline-flex; gap: 18px; }

.about-teaser { padding: 140px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 110px; }
.portrait-frame { position: relative; max-width: 490px; padding: 18px 18px 0; background: var(--soft); border: 1px solid var(--line); }
.portrait-frame::before { content: ""; position: absolute; left: -18px; top: -18px; width: 92px; height: 92px; border-left: 4px solid var(--purple); border-top: 4px solid var(--teal); }
.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; }
.portrait-frame figure { margin: 0; }
.portrait-label { padding: 20px 5px 22px; display: flex; flex-direction: column; }
.portrait-label p { margin: 0; }
.portrait-label strong { font-family: var(--serif); font-size: 1.2rem; }
.portrait-label span { color: var(--muted); font-size: 0.76rem; }
.portrait-label p:last-child { color: var(--muted); font-size: .76rem; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.85; }
.value-row { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.value-row span { padding: 7px 12px; color: var(--purple); background: rgba(91,63,163,.08); border-radius: 6px; font-size: 0.73rem; font-weight: 800; }
.value-row p { margin: 0; padding: 7px 12px; color: var(--purple); background: rgba(91,63,163,.08); border-radius: 6px; font-size: .73rem; font-weight: 800; }
.dark-link { color: var(--purple); }

.references-teaser { padding: 125px 0; }
.references-heading { align-items: start; }
.reference-row { margin-top: 75px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reference-row article { min-height: 260px; padding: 32px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.reference-row span { color: var(--teal-dark); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.reference-row article > p:first-child { color: var(--teal-dark); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.reference-row h3 { margin: auto 0 18px; }
.reference-row small { color: var(--muted); }
.reference-link { margin-top: 16px; text-align: right; }

.contact-band { position: relative; padding: 130px 0; overflow: hidden; background: linear-gradient(130deg, #dfe9f1, #e6def4); text-align: center; }
.contact-band-inner { position: relative; z-index: 2; max-width: 850px; }
.contact-band .eyebrow { justify-content: center; }
.contact-band-inner > p:not(.eyebrow) { max-width: 670px; margin: 24px auto 0; color: var(--muted); font-size: 1.05rem; }
.centered-buttons { margin-top: 38px; justify-content: center; }
.light-whatsapp { color: var(--navy); border-color: rgba(43,46,74,.25); background: rgba(255,255,255,.38); }
.contact-orbit { position: absolute; left: 50%; top: 50%; width: 900px; height: 310px; border: 1px solid rgba(91,63,163,.15); border-radius: 50%; transform: translate(-50%,-50%) rotate(-7deg); }
.contact-orbit.orbit-two { width: 680px; height: 490px; transform: translate(-50%,-50%) rotate(20deg); }

.site-footer { padding: 70px 0 28px; color: var(--white); background: var(--navy-deep); }
.footer-main { padding-bottom: 60px; display: grid; grid-template-columns: 1.5fr .55fr .7fr; gap: 80px; }
.footer-brand-block img { width: 275px; padding: 7px; background: var(--white); border-radius: 5px; }
.footer-brand-block p { max-width: 390px; margin: 24px 0 0; color: rgba(255,255,255,.53); font-size: .85rem; }
.footer-main h2 { margin-bottom: 22px; color: rgba(255,255,255,.45); font-family: var(--sans); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; font-size: .83rem; }
.footer-main a:hover { color: #8ce2ec; }
.footer-main span { color: rgba(255,255,255,.5); }
.footer-legal { padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: .72rem; }
.footer-legal div { display: flex; gap: 22px; }

.page-hero { position: relative; padding: 120px 0 105px; overflow: hidden; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; }
.page-hero-inner { position: relative; z-index: 2; min-width: 0; }
.page-hero-inner > * { margin-inline: 0 !important; }
.page-hero h1 { max-width: 950px; margin-bottom: 28px; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.mobile-heading-line { display: inline; }
.page-hero-inner > p:last-child { max-width: 760px; margin: 0; color: rgba(255,255,255,.66); font-size: 1.08rem; }
.page-hero-orbit { position: absolute; right: -120px; top: -130px; width: 580px; height: 420px; border: 1px solid rgba(140,226,236,.17); border-radius: 50%; transform: rotate(-15deg); }

.service-detail { padding: 125px 0; background: var(--white); scroll-margin-top: 84px; }
.service-detail.alternate { background: var(--soft); }
.service-detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 110px; align-items: center; }
.service-detail.alternate .service-detail-copy { order: 2; }
.large-index { display: block; margin-bottom: 55px; color: rgba(91,63,163,.14); font-family: var(--serif); font-size: 6rem; font-weight: 700; line-height: .8; }
.service-detail-copy h2 { margin-bottom: 28px; }
.service-detail-copy > p:not(.eyebrow) { color: var(--muted); }
.result-box { margin-top: 35px; padding: 25px; border-left: 4px solid var(--teal); background: rgba(47,164,184,.07); }
.result-box strong { color: var(--navy); font-family: var(--serif); }
.result-box p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.service-checklist { margin: 0; padding: 18px 34px; list-style: none; background: var(--navy); border-radius: 15px; box-shadow: 0 28px 70px rgba(43,46,74,.16); }
.service-checklist li { padding: 15px 0; display: flex; gap: 15px; color: rgba(255,255,255,.78); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.service-checklist li:last-child { border: 0; }
.service-checklist span { color: #8ce2ec; }
.service-checklist.wp-block-list li::before { content: "✓"; flex: 0 0 auto; color: #8ce2ec; }
.service-detail .wp-block-columns, .fit-section .wp-block-columns { margin-bottom: 0; }
.service-detail-grid > .wp-block-column { margin: 0; }
.fit-section { padding: 120px 0; }
.fit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.fit-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fit-values article { padding: 28px 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.fit-values span { color: #8ce2ec; font-size: .68rem; font-weight: 900; }
.fit-values article > p:first-child { color: #8ce2ec; font-size: .68rem; font-weight: 900; }
.fit-values h3 { margin: 45px 0 14px; font-size: 1.25rem; }
.fit-values p { margin: 0; color: rgba(255,255,255,.55); font-size: .82rem; }

.references-page { padding: 110px 0 130px; }
.reference-notice { padding: 24px 28px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; background: rgba(47,164,184,.08); border: 1px solid rgba(47,164,184,.22); }
.reference-notice span { color: var(--teal-dark); font-weight: 800; }
.reference-notice p { margin: 0; color: var(--muted); font-size: .9rem; }
.reference-notice .reference-notice-title { color: var(--teal-dark); font-weight: 800; }
.reference-project-grid { margin-top: 65px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reference-project-grid > * { margin-block-start: 0 !important; }
.reference-project-grid article { background: var(--white); border: 1px solid var(--line); }
.project-visual { min-height: 310px; padding: 28px; display: flex; justify-content: space-between; align-items: start; color: var(--white); background: radial-gradient(circle at 65% 35%, rgba(47,164,184,.45), transparent 30%), linear-gradient(145deg, var(--purple-deep), var(--navy)); overflow: hidden; }
.project-visual span { font-size: .7rem; font-weight: 900; }
.project-visual i { align-self: end; font-family: var(--serif); font-size: 6rem; font-style: normal; opacity: .12; }
.project-visual.wp-block-cover { display: flex; align-items: stretch; justify-content: stretch; }
.project-visual .wp-block-cover__inner-container { min-height: 254px; display: flex; justify-content: space-between; align-items: flex-start; }
.project-visual .project-number { margin: 0; font-size: .7rem; font-weight: 900; }
.project-visual .project-mark { margin: 0; align-self: flex-end; font-family: var(--serif); font-size: 6rem; font-weight: 600; line-height: 1; opacity: .12; }
.reference-project-grid article > p, .reference-project-grid article > h2, .reference-project-grid article > small { margin-left: 28px; margin-right: 28px; }
.reference-project-grid article > p { margin-top: 25px; margin-bottom: 8px; color: var(--teal-dark); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reference-project-grid article > h2 { margin-bottom: 45px; font-size: 1.55rem; }
.reference-project-grid article > small { display: block; margin-bottom: 28px; color: var(--muted); }
.reference-project-grid article > .project-area { margin-top: 25px; margin-bottom: 8px; color: var(--teal-dark); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reference-project-grid article > .project-status { margin-top: 0; margin-bottom: 28px; color: var(--muted); font-size: .84rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.reference-template { margin-top: 95px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.reference-template ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reference-template li { padding: 20px 0; display: grid; grid-template-columns: 60px 1fr; border-bottom: 1px solid var(--line); }
.reference-template li > span { color: var(--purple); font-size: .7rem; font-weight: 900; }
.reference-template strong { font-family: var(--serif); font-size: 1.15rem; }
.reference-template p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.reference-template-list { border-top: 1px solid var(--line); }
.reference-template-item { padding: 20px 0; display: grid; grid-template-columns: 60px 1fr; border-bottom: 1px solid var(--line); }
.reference-template-item .reference-step { margin: 0; color: var(--purple); font-size: .7rem; font-weight: 900; }
.reference-template-item .reference-step-title { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.reference-template-item > div > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }

.about-page { padding: 125px 0; }
.about-page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; align-items: center; }
.about-page-image { padding: 18px; background: var(--soft); border: 1px solid var(--line); }
.about-page-image figure { margin: 0; }
.about-page-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-page-image > div { padding: 18px 4px 3px; display: flex; flex-direction: column; }
.about-page-image strong { font-family: var(--serif); font-size: 1.2rem; }
.about-page-image span { color: var(--muted); font-size: .74rem; }
.about-page-label p { margin: 0; }
.about-page-label p:last-child { color: var(--muted); font-size: .74rem; }
.about-page-copy h2 { margin-bottom: 32px; }
.about-page-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.85; }
.about-page-copy blockquote { margin: 38px 0 0; padding: 25px 0 25px 30px; color: var(--purple); border-left: 4px solid var(--teal); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.founding-section { padding: 125px 0; }
.founding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.founding-grid > div:last-child { padding-top: 40px; color: var(--muted); }
.values-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid article { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid span { color: var(--teal-dark); font-size: .68rem; font-weight: 900; }
.values-grid .value-index { color: var(--teal-dark); font-size: .68rem; font-weight: 900; }
.values-grid h3 { margin: 70px 0 16px; }
.values-grid p { margin: 0; color: var(--muted); font-size: .84rem; }
.region-section { padding: 110px 0; }
.region-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; }
.region-mark { min-height: 250px; padding: 40px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.15); background: radial-gradient(circle at 25% 30%, rgba(47,164,184,.2), transparent 35%); }
.region-mark span, .region-mark strong { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); line-height: .88; }
.region-mark strong { color: #8ce2ec; align-self: flex-end; }
.region-mark .region-word { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); line-height: .88; }
.region-mark .region-word-accent { align-self: flex-end; color: #8ce2ec; }
.region-mark .region-word-accent strong { font-size: inherit; }
.region-grid > div:last-child > p:last-child { color: rgba(255,255,255,.6); }

.contact-page { padding: 120px 0 140px; background: var(--soft); }
.contact-page-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-options h2 { margin-bottom: 45px; }
.contact-option { margin-bottom: 11px; padding: 22px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 15px; background: var(--white); border: 1px solid var(--line); transition: transform 180ms ease, border-color 180ms ease; }
.contact-option:hover { transform: translateX(4px); border-color: var(--purple); }
.contact-option > span { color: var(--teal-dark); font-size: .66rem; font-weight: 900; }
.contact-option small { display: block; color: var(--muted); font-size: .68rem; }
.contact-option strong { display: block; margin: 2px 0; font-family: var(--serif); font-size: 1.2rem; }
.contact-option p { margin: 0; color: var(--muted); font-size: .78rem; }
.contact-option > b { color: var(--purple); }
.whatsapp-option { color: var(--white); background: linear-gradient(130deg, var(--teal-dark), var(--navy)); }
.whatsapp-option small, .whatsapp-option p { color: rgba(255,255,255,.65); }
.whatsapp-option strong, .whatsapp-option > b { color: var(--white); }
.response-note { margin-top: 28px; padding: 22px; border-left: 3px solid var(--teal); }
.response-note strong { font-family: var(--serif); }
.response-note p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.form-panel { padding: 45px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(43,46,74,.08); }
.form-panel > h2 { margin-bottom: 14px; font-size: 2.4rem; }
.form-panel > p:not(.eyebrow) { color: var(--muted); }
.contact-page-grid.wp-block-columns { margin-bottom: 0; }
.contact-page-grid > .wp-block-column { margin: 0; }
.contact-form { margin-top: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { margin-bottom: 18px; display: block; }
.contact-form label > span:first-child { margin-bottom: 7px; display: block; color: var(--navy); font-size: .72rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 5px; outline: none; }
.contact-form input, .contact-form select { height: 48px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,63,163,.08); }
.privacy-check { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.privacy-check input { width: 16px; height: 16px; margin-top: 3px; }
.privacy-check span { color: var(--muted) !important; font-size: .68rem !important; font-weight: 500 !important; }
.contact-form > small { display: block; margin-top: 10px; color: var(--muted); font-size: .68rem; }
.form-preview-message { padding: 60px 20px; text-align: center; }
.form-preview-message > span { width: 58px; height: 58px; margin: 0 auto 25px; display: grid; place-items: center; color: var(--white); background: var(--gradient); border-radius: 50%; font-weight: 900; }
.form-preview-message h2 { font-size: 2rem; }
.form-preview-message p { color: var(--muted); }
.form-preview-message button { padding: 10px 16px; color: var(--purple); background: transparent; border: 1px solid var(--purple); cursor: pointer; }

.legal-page { max-width: 840px; padding-top: 90px; padding-bottom: 120px; }
.legal-page h2 { margin: 50px 0 18px; font-size: 1.65rem; }
.legal-page p { color: var(--muted); }
.legal-page a { color: var(--purple); text-decoration: underline; }
.legal-draft { margin-bottom: 55px; padding: 24px; border: 1px solid #d7a44a; background: #fff8e8; }
.legal-draft strong { color: #845a12; }
.legal-draft p { margin: 5px 0 0; color: #6f6044; }

@media (min-width: 781px) {
  .about-copy h2,
  .service-detail-copy h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .about-copy h2 {
    font-size: clamp(2.7rem, 3.8vw, 4rem);
  }

  .service-detail-copy h2 {
    font-size: clamp(2.45rem, 3.6vw, 3.8rem);
  }
}

@media (min-width: 781px) and (max-width: 1050px) {
  .service-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }
}

@media (max-width: 1050px) {
  :root { --shell: min(930px, calc(100vw - 48px)); }
  .header-inner { grid-template-columns: 210px 1fr auto; gap: 20px; }
  .site-logo { width: 200px; }
  .desktop-nav { gap: 20px; font-size: .78rem; }
  .hero-grid { grid-template-columns: 1fr .85fr; gap: 45px; }
  .system-card { width: 340px; }
  .split-heading, .about-grid, .service-detail-grid, .about-page-grid { gap: 60px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; min-height: 400px; }
  .process-layout { gap: 60px; }
  .fit-grid { grid-template-columns: 1fr; }
  .reference-project-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  :root { --shell: calc(100vw - 36px); }
  h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .header-inner { height: 72px; grid-template-columns: 1fr auto; }
  .site-logo { width: 190px; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary { width: 44px; height: 44px; display: grid; place-items: center; list-style: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { position: absolute; width: 18px; height: 2px; background: var(--navy); transform: translateY(-4px); }
  .mobile-menu summary span:last-child { transform: translateY(4px); }
  .mobile-menu[open] summary span { transform: rotate(45deg); }
  .mobile-menu[open] summary span:last-child { transform: rotate(-45deg); }
  .mobile-menu nav { position: fixed; left: 0; right: 0; top: 72px; padding: 25px 18px 34px; display: flex; flex-direction: column; gap: 6px; color: var(--white); background: rgba(23,26,49,.98); border-top: 1px solid rgba(255,255,255,.1); }
  .mobile-menu nav a { padding: 12px 0; font-family: var(--serif); font-size: 1.5rem; }
  .hero { min-height: auto; }
  .hero-grid { padding: 80px 0 100px; grid-template-columns: 1fr; gap: 60px; }
  .hero-system { min-height: 500px; }
  .system-card { width: min(90%, 390px); }
  .system-card-main { right: 0; }
  .system-card-third { right: 0; }
  .problem-section, .services-section, .about-teaser, .references-teaser, .about-page, .founding-section { padding: 90px 0; }
  .split-heading, .about-grid, .process-layout, .service-detail-grid, .reference-template, .about-page-grid, .founding-grid, .region-grid, .contact-page-grid { grid-template-columns: 1fr; gap: 50px; }
  .problem-grid, .service-grid, .reference-row, .reference-project-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 240px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .problem-card h3 { margin-top: 45px; }
  .service-card, .service-card:last-child { grid-column: auto; min-height: 430px; }
  .process-section { padding: 90px 0; }
  .process-intro { position: static; }
  .about-grid { gap: 65px; }
  .portrait-frame { margin-inline: auto; }
  .reference-link { text-align: left; }
  .contact-band { padding: 95px 0; }
  .contact-orbit { width: 620px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 50px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .page-hero { padding: 85px 0 80px; }
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.8vw, 3.6rem);
    line-height: 1.03;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .mobile-heading-line {
    display: block;
    white-space: nowrap;
  }
  .service-detail { padding: 90px 0; }
  .service-detail.alternate .service-detail-copy { order: 0; }
  .fit-values { grid-template-columns: 1fr; }
  .reference-notice { grid-template-columns: 1fr; gap: 8px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-page { padding: 90px 0; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100vw - 28px); }
  .site-logo { width: 170px; }
  .hero-grid { padding-top: 65px; }
  .button-row, .button { width: 100%; }
  .hero-actions .wp-block-button, .hero-actions .wp-block-button__link { width: 100%; }
  .hero-facts { flex-direction: column; }
  .hero-system { min-height: 460px; }
  .system-card { min-height: 100px; padding: 18px; grid-template-columns: 30px 1fr auto; }
  .system-card-second { top: 180px; }
  .system-card-third { top: 325px; }
  .service-card { padding: 28px; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: auto; }
  .footer-legal { flex-direction: column; gap: 14px; }
  .large-index { font-size: 4.5rem; }
  .service-checklist { padding: 15px 22px; }
  .values-grid { grid-template-columns: 1fr; }
  .region-mark { min-height: 200px; padding: 25px; }
  .form-panel { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-option { padding: 18px 15px; grid-template-columns: 26px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* WordPress/Astra integration */
body.dsds-child,
body { background: var(--white); }
.ast-container,
.site-content .ast-container { max-width: none; padding: 0; }
.dsds-main { min-height: 50vh; }
.dsds-content { padding-block: 90px; }
.dsds-content > :last-child { margin-bottom: 0; }
.desktop-nav li,
.mobile-menu li { margin: 0; padding: 0; list-style: none; }
.desktop-nav li { display: contents; }
.mobile-menu ul { margin: 0; padding: 0; }
.mobile-menu nav li a { display: block; }
.dsds-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-error { padding: 14px 16px; color: #8b1f2d; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 8px; }
.contact-form input[type="checkbox"] { width: auto; }
.contact-form .button { border: 0; }
.wp-block-image img { height: auto; }
.dsds-editor-content { padding: 80px 0; background: var(--white); }
.dsds-editor-content > .shell > :last-child { margin-bottom: 0; }
.dsds-main > .wp-block-group {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
}
.dsds-main .service-detail > .shell,
.dsds-main .fit-section > .shell,
.dsds-main .about-page > .shell,
.dsds-main .founding-section > .shell,
.dsds-main .region-section > .shell,
.dsds-main .references-page > .shell,
.dsds-main .contact-page > .shell { max-width: none !important; }
.editor-styles-wrapper .is-root-container > .wp-block-group {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
}
.editor-styles-wrapper .page-hero,
.editor-styles-wrapper .service-detail,
.editor-styles-wrapper .fit-section { margin-inline: 0; }
.editor-styles-wrapper .service-detail > .shell,
.editor-styles-wrapper .fit-section > .shell,
.editor-styles-wrapper .about-page > .shell,
.editor-styles-wrapper .founding-section > .shell,
.editor-styles-wrapper .region-section > .shell,
.editor-styles-wrapper .references-page > .shell,
.editor-styles-wrapper .contact-page > .shell { max-width: none !important; }
.editor-styles-wrapper .page-hero { padding-block: 70px; }
.editor-styles-wrapper .service-detail { padding-block: 70px; }
.editor-styles-wrapper .fit-section { padding-block: 70px; }
.editor-styles-wrapper .about-page,
.editor-styles-wrapper .founding-section,
.editor-styles-wrapper .region-section,
.editor-styles-wrapper .references-page,
.editor-styles-wrapper .contact-page { padding-block: 70px; }
.editor-styles-wrapper .contact-options .wp-block-shortcode,
.editor-styles-wrapper .form-panel > .wp-block-shortcode {
  margin-top: 24px;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--teal-dark);
}
.editor-styles-wrapper .hero,
.editor-styles-wrapper .problem-section,
.editor-styles-wrapper .services-section,
.editor-styles-wrapper .process-section,
.editor-styles-wrapper .about-teaser,
.editor-styles-wrapper .references-teaser { margin-inline: 0; }
.editor-styles-wrapper .hero { min-height: auto; }
.editor-styles-wrapper .hero-grid { padding-block: 70px; }
.editor-styles-wrapper .hero-system { min-height: auto; display: grid; gap: 14px; }
.editor-styles-wrapper .system-glow,
.editor-styles-wrapper .hero-bottom-line { display: none; }
.editor-styles-wrapper .system-card { position: static; width: 100%; transform: none; }
.editor-styles-wrapper .process-intro { position: static; }
/* Reference project portraits */
.reference-profiles { margin-top: 72px; display: grid; gap: 42px; }
.reference-profile { margin-block: 0 !important; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.reference-profile-grid { margin: 0; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 0; }
.reference-profile-grid > * { margin: 0 !important; }
.reference-profile-media { min-width: 0; background: var(--navy-deep); }
.reference-visual { min-height: 100%; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: radial-gradient(circle at 68% 35%, rgba(47,164,184,.38), transparent 30%), linear-gradient(145deg, var(--purple-deep), var(--navy)); }
.reference-visual-brauverein { background: radial-gradient(circle at 66% 35%, rgba(234,183,57,.34), transparent 31%), linear-gradient(145deg, #3d2b17, var(--navy-deep)); }
.reference-visual.wp-block-cover { display: flex; align-items: stretch; }
.reference-visual .wp-block-cover__image-background { object-fit: contain; padding: 36px; background: var(--white); }
.reference-visual:has(.wp-block-cover__image-background) .reference-mark { display: none; }
.reference-visual .wp-block-image { width: 100%; margin: auto 0; text-align: center; }
.reference-visual .wp-block-image img { width: auto; max-width: 100%; max-height: 270px; object-fit: contain; }
.reference-visual:has(.wp-block-image) .reference-mark { display: none; }
.reference-visual .wp-block-cover__inner-container { min-height: 292px; display: flex; flex-direction: column; justify-content: space-between; }
.reference-number { margin: 0; color: var(--teal-dark); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.reference-visual .reference-number { color: #9de7ee; }
.reference-mark { margin: 0; align-self: flex-end; color: var(--white); font-family: var(--serif); font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 600; line-height: .8; opacity: .14; }
.reference-image-hint { display: none; margin: 0; padding: 12px 20px; color: rgba(255,255,255,.58); background: var(--navy-deep); font-size: .72rem; }
.reference-profile-copy { padding: clamp(34px, 5vw, 68px); }
.reference-profile-copy .project-area,
.reference-compact-card .project-area { margin: 0 0 14px; color: var(--teal-dark); font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.reference-profile-copy h2 { max-width: 720px; margin-bottom: 20px; font-size: clamp(2.2rem, 4vw, 4rem); }
.reference-summary { max-width: 720px; margin-bottom: 22px; color: var(--muted); font-size: 1.05rem; }
.reference-connection { margin: 0 0 30px; padding: 15px 18px; color: var(--ink); background: rgba(47,164,184,.09); border-left: 3px solid var(--teal); font-size: .84rem; }
.reference-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reference-fact { margin: 0 !important; padding: 24px 22px; border-right: 1px solid var(--line); }
.reference-fact:last-child { border-right: 0; }
.reference-fact .reference-step { margin: 0 0 12px; color: var(--purple); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reference-fact p:last-child,
.reference-fact li { color: var(--muted); font-size: .82rem; }
.reference-fact p:last-child { margin-bottom: 0; }
.reference-fact ul { margin: 0; padding-left: 18px; }
.reference-fact li + li { margin-top: 7px; }
.reference-profile-copy .wp-block-buttons { margin-top: 28px; }
.reference-link-button .wp-block-button__link { color: var(--white); background: var(--navy); border-radius: 7px; font-size: .82rem; font-weight: 800; }
.reference-more { margin-top: 100px; }
.reference-more-intro { max-width: 790px; }
.reference-more-intro h2 { margin-bottom: 20px; }
.reference-more-intro > p:last-child { max-width: 650px; color: var(--muted); }
.reference-compact-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.reference-compact-grid > * { margin: 0 !important; }
.reference-compact-card { min-height: 430px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.reference-compact-visual { min-height: 150px; padding: 22px 28px; display: flex; align-items: flex-start; justify-content: space-between; color: var(--white); background: radial-gradient(circle at 72% 35%, rgba(47,164,184,.34), transparent 31%), linear-gradient(145deg, var(--purple-deep), var(--navy)); }
.reference-compact-visual.wp-block-cover { display: flex; align-items: stretch; }
.reference-compact-visual .wp-block-cover__image-background { object-fit: contain; padding: 22px; background: var(--white); }
.reference-compact-visual:has(.wp-block-cover__image-background) .reference-compact-mark { display: none; }
.reference-compact-visual .wp-block-image { width: 100%; margin: auto 0; text-align: center; }
.reference-compact-visual .wp-block-image img { width: auto; max-width: 100%; max-height: 105px; object-fit: contain; }
.reference-compact-visual:has(.wp-block-image) .reference-compact-mark { display: none; }
.reference-compact-visual .wp-block-cover__inner-container { display: flex; align-items: flex-start; justify-content: space-between; }
.reference-compact-visual .reference-number { color: #9de7ee; }
.reference-compact-mark { margin: 0; align-self: flex-end; color: rgba(255,255,255,.34); font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.reference-compact-copy { flex: 1; padding: 30px 34px 34px; display: flex; flex-direction: column; }
.reference-compact-card h3 { margin-bottom: 16px; }
.reference-compact-card > p:not(.project-area):not(.reference-status):not(.reference-text-link) { color: var(--muted); }
.reference-status { margin-top: auto; padding-top: 20px; color: var(--ink); font-size: .8rem; font-weight: 700; }
.reference-text-link { margin: 10px 0 0; font-size: .8rem; font-weight: 800; }
.reference-text-link a { color: var(--purple); }

@media (max-width: 1050px) {
  .reference-profile-grid { grid-template-columns: 1fr; }
  .reference-visual { min-height: 330px; }
  .reference-facts { grid-template-columns: 1fr; }
  .reference-fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-fact:last-child { border-bottom: 0; }
}

@media (max-width: 780px) {
  .reference-profiles { margin-top: 48px; gap: 28px; }
  .reference-profile-copy { padding: 30px 22px; }
  .reference-compact-grid { grid-template-columns: 1fr; }
  .reference-compact-card { min-height: 0; }
  .reference-compact-copy { padding: 26px 22px; }
}

.editor-styles-wrapper .reference-profile-grid { display: grid; }
.editor-styles-wrapper .reference-profiles,
.editor-styles-wrapper .reference-compact-grid { display: grid; }
.editor-styles-wrapper .reference-profile-copy { min-width: 0; }
.editor-styles-wrapper .reference-image-hint { display: block; }
