
:root {
  --bg: #080a0f;
  --bg-soft: #0e1118;
  --surface: #121620;
  --surface-2: #171c28;
  --text: #f4f7fb;
  --muted: #9aa4b2;
  --line: rgba(255,255,255,.09);
  --accent: #7c5cff;
  --accent-2: #21d4fd;
  --green: #57e389;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 2%, rgba(124,92,255,.15), transparent 26rem),
    radial-gradient(circle at 10% 18%, rgba(33,212,253,.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--cs-font-family, "Inter", system-ui, sans-serif);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 115px 0;
}
.site-header {
  width: min(1240px, calc(100% - 32px));
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,12,18,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 50px rgba(0,0,0,.25);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-weight: 700;
}
.brand-mark { color: var(--accent-2); font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 13px;
  font-size: .88rem;
  color: #c6ced9;
  border-radius: 11px;
  transition: .2s ease;
}
.nav a:hover { color: white; background: rgba(255,255,255,.06); }
.nav .nav-cta {
  background: white;
  color: #090b10;
  font-weight: 700;
  padding-inline: 16px;
}
.nav .nav-cta:hover { background: #dce4ef; color: #090b10; }
.menu-toggle { display: none; }

.hero {
  min-height: 100vh;
  padding-top: 155px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}
.eyebrow, .section-label {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #aeb7c5;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px rgba(87,227,137,.75);
}
.hero h1 {
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-size: clamp(3.25rem, 6.3vw, 6.2rem);
  line-height: .96;
  letter-spacing: -.065em;
  margin: 28px 0 30px;
  max-width: 760px;
}
.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #fff 5%, #9eaaff 43%, #64daf3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead {
  color: #aeb7c5;
  max-width: 680px;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  padding: 0 19px;
  font-weight: 800;
  font-size: .9rem;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #8a6cff, #5a47ff);
  box-shadow: 0 12px 30px rgba(99,76,255,.23);
}
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-size: .88rem; }
.hero-meta span { font-size: .76rem; color: var(--muted); }

.hero-visual { position: relative; }
.code-window {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(13,16,24,.92);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.window-bar {
  height: 47px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: #303745; }
.filename { color: #828d9d; font-size: .72rem; }
.code-window pre {
  margin: 0;
  padding: 28px;
  min-height: 360px;
  font-size: .86rem;
  line-height: 1.85;
  overflow-x: auto;
  color: #d8deea;
}
.c-purple { color: #a78bfa; }
.c-green { color: #76e6a1; }
.terminal-line {
  padding: 13px 28px;
  font-family: monospace;
  font-size: .8rem;
  border-top: 1px solid var(--line);
  color: #adb8c6;
}
.terminal-line > span:first-child { color: var(--accent-2); }
.terminal-ok { color: var(--green); }
.cursor {
  display: inline-block; width: 7px; height: 14px; margin-left: 6px;
  vertical-align: -2px; background: #d9e2ec;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.floating-card {
  position: absolute;
  min-width: 118px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(20,24,34,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.floating-card span { display: block; font-size: .62rem; letter-spacing: .15em; color: #758196; }
.floating-card strong { font-size: .78rem; }
.card-api { top: 13%; right: -28px; }
.card-db { left: -34px; bottom: 17%; }
.card-mobile { right: 8%; bottom: -26px; }

.intro { border-top: 1px solid var(--line); }
.intro-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 90px;
  margin-top: 26px;
}
.intro h2, .section-heading h2, .contact-card h2, .strengths-card > h2 {
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0;
}
.intro-copy p {
  margin: 0 0 22px;
  color: #aab4c1;
  font-size: 1.03rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}
.section-heading h2 { margin-top: 12px; }
.section-heading > p { color: var(--muted); max-width: 430px; margin: 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.skill-card {
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 20px;
  transition: transform .25s ease, border-color .25s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: rgba(124,92,255,.45); }
.skill-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size: .72rem; font-weight: 800;
  background: rgba(124,92,255,.12);
  color: #b9adff;
  border: 1px solid rgba(124,92,255,.2);
}
.skill-card h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.skill-card p { color: var(--muted); font-size: .88rem; min-height: 86px; margin: 0 0 20px; }
.tags, .project-tech { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span, .project-tech span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .67rem;
  color: #aab4c0;
}

.project-featured {
  min-height: 550px;
  display: grid;
  grid-template-columns: 60px 1.15fr .85fr;
  gap: 34px;
  padding: 38px;
  margin-bottom: 14px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%, rgba(124,92,255,.12), transparent 22rem),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.project-number {
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  color: #677184;
  font-size: .78rem;
  letter-spacing: .1em;
}
.project-topline, .project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.project-type { color: #8d98a8; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.project-status {
  font-size: .68rem;
  color: var(--green);
  border: 1px solid rgba(87,227,137,.24);
  background: rgba(87,227,137,.07);
  padding: 5px 9px;
  border-radius: 999px;
}
.project-content h3, .project-card h3 {
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  letter-spacing: -.04em;
  margin: 12px 0 18px;
}
.project-content h3 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
.project-card h3 { font-size: 1.85rem; }
.project-summary { color: #c1c8d2; max-width: 680px; }
.project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 32px 0 26px;
}
.project-columns h4 { margin: 0 0 12px; font-size: .78rem; color: #dfe4ea; text-transform: uppercase; letter-spacing: .08em; }
.project-columns ul { margin: 0; padding-left: 18px; color: #8f9aab; font-size: .84rem; }
.project-columns li { margin-bottom: 7px; }
.project-visual { display: grid; place-items: center; }
.mock-browser {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  background: #0f131d;
  box-shadow: 0 24px 50px rgba(0,0,0,.34);
  transform: rotate(2deg);
}
.mock-browser-bar { display: flex; gap: 5px; padding: 10px; border-bottom: 1px solid var(--line); }
.mock-browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #343c4a; }
.mock-dashboard { height: 310px; display: grid; grid-template-columns: 24% 1fr; }
.mock-side { border-right: 1px solid var(--line); background: rgba(124,92,255,.055); }
.mock-main { padding: 20px; }
.mock-profile { display: flex; gap: 12px; align-items: center; }
.mock-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #21d4fd); }
.mock-profile div:last-child { flex: 1; }
.mock-profile b, .mock-profile span { display: block; border-radius: 4px; background: #2b3340; }
.mock-profile b { width: 42%; height: 8px; margin-bottom: 7px; }
.mock-profile span { width: 27%; height: 6px; }
.mock-feed-card { height: 125px; border: 1px solid var(--line); border-radius: 12px; margin-top: 21px; background: linear-gradient(140deg, rgba(124,92,255,.12), rgba(33,212,253,.035)); }
.mock-feed-card.small { height: 66px; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.project-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}
.project-card > p { color: #9ea9b7; min-height: 125px; }
.mini-case {
  display: grid;
  gap: 6px;
  margin: 26px 0;
  padding: 19px;
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
}
.mini-case strong {
  margin-bottom: 5px;
  font-size: .72rem;
  color: #d5dbe3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mini-case span { color: #8f9aa9; font-size: .8rem; }
.secondary { grid-template-columns: 60px 1.35fr .65fr; min-height: 450px; }
.compact { align-items: start; }
.tree {
  display: block;
  padding: 16px;
  white-space: pre;
  color: #9ea9b6;
  background: #0b0e14;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: .78rem;
}
.web-stack { width: 82%; perspective: 700px; }
.web-stack .layer {
  height: 68px;
  margin-top: -14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(124,92,255,.26), rgba(33,212,253,.08));
  transform: rotateX(56deg) rotateZ(-7deg);
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-size: .7rem;
  letter-spacing: .12em;
  color: #cad2df;
  box-shadow: 0 20px 25px rgba(0,0,0,.2);
}

.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 90px .65fr 1fr;
  gap: 28px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item > span { color: #677184; font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size: .75rem; }
.timeline-item h3 { margin: 0; font-size: 1.06rem; }
.timeline-item p { margin: 0; color: var(--muted); }

.strengths-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(33,212,253,.08), transparent 30rem),
    radial-gradient(circle at 100% 100%, rgba(124,92,255,.13), transparent 30rem),
    rgba(255,255,255,.025);
  padding: 52px;
}
.strengths-card > h2 { margin: 12px 0 45px; }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.strengths-grid > div { padding: 28px 24px 5px 0; border-right: 1px solid var(--line); }
.strengths-grid > div:not(:first-child) { padding-left: 24px; }
.strengths-grid > div:last-child { border-right: 0; }
.strengths-grid strong { color: #6d788a; font-size: .7rem; }
.strengths-grid h3 { margin: 15px 0 10px; font-size: .98rem; }
.strengths-grid p { color: var(--muted); font-size: .82rem; }

.contact-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.contact-card h2 { margin: 12px 0 18px; font-size: clamp(3.2rem, 6vw, 6rem); }
.contact-card p { color: #a4aebb; max-width: 700px; }
.contact-actions { display: flex; gap: 10px; align-self: center; }
.social-links {
  grid-column: 1 / -1;
  display: flex; gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.social-links a { color: #9da7b5; font-size: .8rem; }
.social-links a:hover { color: white; }

footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 45px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #6f7a8a;
  font-size: .75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 700px; width: 100%; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .project-featured, .secondary { grid-template-columns: 45px 1fr; }
  .project-visual { grid-column: 2; margin-top: 10px; }
  .mock-browser { max-width: 540px; }
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .strengths-grid > div:nth-child(2) { border-right: 0; }
  .strengths-grid > div:nth-child(3), .strengths-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
  .contact-card { grid-template-columns: 1fr; }
  .social-links { grid-column: auto; }
}
@media (max-width: 760px) {
  .section { width: min(100% - 30px, var(--max)); padding: 82px 0; }
  .site-header { width: calc(100% - 20px); top: 10px; }
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10,12,18,.97);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .nav.open { display: flex; }
  .menu-toggle {
    display: grid; place-content: center; gap: 5px;
    border: 0; background: transparent; width: 42px; height: 42px;
  }
  .menu-toggle span { width: 20px; height: 2px; background: white; display: block; }
  .hero { padding-top: 130px; gap: 45px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-meta { flex-wrap: wrap; gap: 22px 34px; }
  .floating-card { display: none; }
  .code-window { transform: none; }
  .code-window pre { font-size: .74rem; padding: 19px; min-height: 310px; }
  .intro-grid, .section-heading { grid-template-columns: 1fr; display: grid; gap: 28px; }
  .skills-grid, .project-grid { grid-template-columns: 1fr; }
  .project-featured, .secondary {
    grid-template-columns: 1fr;
    padding: 25px;
  }
  .project-visual { grid-column: auto; }
  .project-columns { grid-template-columns: 1fr; }
  .project-card > p { min-height: 0; }
  .timeline-item { grid-template-columns: 48px 1fr; }
  .timeline-item p { grid-column: 2; margin-top: -14px; }
  .strengths-card, .contact-card { padding: 30px 24px; }
  .strengths-grid { grid-template-columns: 1fr; }
  .strengths-grid > div, .strengths-grid > div:not(:first-child) {
    padding: 24px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .contact-actions { flex-wrap: wrap; }
  footer { width: calc(100% - 30px); flex-direction: column; gap: 6px; }
}

.contact-primary-note {
  margin-top: 18px;
  color: #d8deea;
  font-weight: 700;
}

/* Security by design */
.security-section { padding-top: 30px; }
.security-panel {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(87,227,137,.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 5%, rgba(87,227,137,.10), transparent 25rem),
    radial-gradient(circle at 5% 100%, rgba(33,212,253,.07), transparent 26rem),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.security-panel::after {
  content: "SECURE";
  position: absolute;
  right: -16px;
  top: -32px;
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.018);
  pointer-events: none;
}
.security-header {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}
.security-header h2 {
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 12px 0 0;
  max-width: 680px;
}
.security-header > p { margin: 0; color: var(--muted); max-width: 470px; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.security-grid article { padding: 28px 24px; border-right: 1px solid var(--line); }
.security-grid article:first-child { padding-left: 0; }
.security-grid article:last-child { border-right: 0; padding-right: 0; }
.security-grid article > span { color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.security-grid h3 { margin: 13px 0 9px; font-size: .96rem; }
.security-grid p { margin: 0; color: var(--muted); font-size: .81rem; }

.security-technical { min-height: 100px; }
.security-plain {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid rgba(87,227,137,.12);
  border-radius: 13px;
  background: rgba(87,227,137,.035);
}
.security-plain strong {
  display: block;
  margin-bottom: 6px;
  color: #d9eee0;
  font-size: .67rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.security-plain p {
  margin: 0;
  color: #aeb9b2;
  font-size: .78rem;
  line-height: 1.55;
}
.mini-case-explainer {
  margin: 12px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #a7b1bf;
  font-size: .78rem;
  line-height: 1.55;
}
.mini-case-explainer b { color: #d8dee7; }

.security-principles { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.security-principles span {
  padding: 6px 10px;
  border: 1px solid rgba(87,227,137,.14);
  border-radius: 999px;
  background: rgba(87,227,137,.045);
  color: #aab7b0;
  font-size: .68rem;
}
@media (max-width: 980px) {
  .security-grid { grid-template-columns: 1fr 1fr; }
  .security-grid article:nth-child(2) { border-right: 0; }
  .security-grid article:nth-child(3), .security-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .security-grid article:nth-child(3) { padding-left: 0; }
}
@media (max-width: 760px) {
  .security-panel { padding: 30px 24px; }
  .security-header { grid-template-columns: 1fr; gap: 20px; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid article,
  .security-grid article:first-child,
  .security-grid article:last-child,
  .security-grid article:nth-child(3) {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .security-grid article:first-child { border-top: 0; }
  .security-technical { min-height: 0; }
}

/* =========================================================
   Formal light theme — white, neutral gray, petrol blue
   ========================================================= */
:root {
  --bg: var(--cs-color-background, #f6f8fb);
  --bg-soft: #ffffff;
  --surface: var(--cs-color-surface, #ffffff);
  --surface-2: #f1f4f7;
  --text: var(--cs-color-text, #17212b);
  --muted: var(--cs-color-text-muted, #657180);
  --line: var(--cs-color-border, #dfe5ec);
  --accent: #234f72;
  --accent-2: #587b98;
  --green: #2e7556;
}

body {
  background:
    radial-gradient(circle at 86% 4%, rgba(35,79,114,.06), transparent 27rem),
    linear-gradient(to bottom, #ffffff 0%, #f8fafc 38%, #f6f8fb 100%);
  color: var(--text);
}
body::before {
  background-image:
    linear-gradient(rgba(23,33,43,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,33,43,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.site-header {
  background: rgba(255,255,255,.94);
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(23,33,43,.075);
}
.brand { color: var(--text); }
.brand-mark { color: var(--accent); }
.nav a { color: #4e5b68; }
.nav a:hover { color: var(--accent); background: #eef3f7; }
.nav .nav-cta { background: var(--accent); color: #fff; }
.nav .nav-cta:hover { background: #193d59; color: #fff; }

.eyebrow, .section-label { color: #6e7986; }
.eyebrow {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(23,33,43,.04);
}
.status-dot { box-shadow: 0 0 0 4px rgba(46,117,86,.10); }
.hero h1,
.intro h2,
.section-heading h2,
.contact-card h2,
.strengths-card > h2,
.security-header h2 { color: #111922; }
.gradient-text {
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.hero-lead, .intro-copy p, .section-heading > p { color: #596674; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(35,79,114,.16);
}
.btn-primary:hover { background: #193d59; }
.btn-secondary {
  border-color: #cdd6df;
  background: #fff;
  color: var(--text);
}
.btn-secondary:hover { background: #f7f9fb; border-color: #aeb9c3; }
.hero-meta { border-color: var(--line); }
.hero-meta strong { color: var(--text); }
.hero-meta span { color: var(--muted); }

.code-window {
  border-color: #d8dfe6;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23,33,43,.12);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.window-bar { background: #f5f7f9; border-color: var(--line); }
.dots span { background: #c8d0d8; }
.filename { color: #7b8794; }
.code-window pre { background: #fbfcfd; color: #263442; }
.c-purple { color: #6d4bc3; }
.c-green { color: #26734d; }
.terminal-line { background: #fff; border-color: var(--line); color: #5f6b78; }
.terminal-line > span:first-child { color: var(--accent); }
.cursor { background: #56626e; }
.floating-card {
  background: rgba(255,255,255,.97);
  border-color: var(--line);
  box-shadow: 0 14px 36px rgba(23,33,43,.10);
}
.floating-card span { color: #8793a0; }
.floating-card strong { color: var(--text); }

.intro { border-color: var(--line); }
.skill-card,
.project-card,
.project-featured,
.strengths-card,
.contact-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 7px 22px rgba(23,33,43,.04);
}
.skill-card:hover {
  border-color: #b9c6d1;
  box-shadow: 0 14px 34px rgba(23,33,43,.08);
}
.skill-icon {
  background: #edf3f7;
  color: var(--accent);
  border-color: #d9e3eb;
}
.skill-card h3, .project-card h3, .project-content h3 { color: #17212b; }
.skill-card p, .project-card > p, .project-summary { color: #657180; }
.tags span, .project-tech span {
  background: #f8fafb;
  border-color: var(--line);
  color: #5e6a76;
}
.project-featured {
  background:
    radial-gradient(circle at 93% 7%, rgba(35,79,114,.055), transparent 22rem),
    #fff;
}
.project-number { color: #8b96a1; }
.project-type { color: #7b8793; }
.project-status {
  color: var(--green);
  border-color: rgba(46,117,86,.20);
  background: rgba(46,117,86,.07);
}
.project-columns h4 { color: #34404b; }
.project-columns ul { color: #687482; }
.mock-browser {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 18px 42px rgba(23,33,43,.10);
  transform: rotate(1deg);
}
.mock-browser-bar { background: #f5f7f9; border-color: var(--line); }
.mock-browser-bar i { background: #c4ccd4; }
.mock-dashboard { background: #fbfcfd; }
.mock-side { background: #eff3f6; border-color: var(--line); }
.mock-profile b, .mock-profile span { background: #d7dee5; }
.mock-avatar { background: linear-gradient(135deg, #234f72, #809bb0); }
.mock-feed-card {
  border-color: var(--line);
  background: linear-gradient(140deg, #edf3f7, #f8fafb);
}
.mini-case {
  background: #f7f9fb;
  border-color: var(--line);
}
.mini-case strong { color: #35414c; }
.mini-case span { color: #687482; }
.mini-case-explainer { color: #657180; border-color: var(--line); }
.mini-case-explainer b { color: #34404b; }
.tree {
  background: #f6f8fa;
  color: #4e5c69;
  border-color: var(--line);
}
.web-stack .layer {
  border-color: #cdd7df;
  background: linear-gradient(135deg, #eef3f7, #dfe8ef);
  color: #40505e;
  box-shadow: 0 16px 22px rgba(23,33,43,.07);
}

.timeline, .timeline-item { border-color: var(--line); }
.timeline-item > span { color: #8b96a1; }
.timeline-item h3 { color: #26313b; }
.timeline-item p { color: var(--muted); }
.strengths-grid { border-color: var(--line); }
.strengths-grid > div { border-color: var(--line); }
.strengths-grid strong { color: #8a95a0; }
.strengths-grid h3 { color: #26313b; }
.strengths-grid p { color: var(--muted); }
.contact-card p { color: #5f6b78; }
.contact-primary-note { color: #2f3b46; }
.social-links { border-color: var(--line); }
.social-links a { color: #5b6875; }
.social-links a:hover { color: var(--accent); }
footer { color: #7a8692; border-color: var(--line); }

.security-panel {
  border-color: #d7e2e8;
  background:
    radial-gradient(circle at 96% 5%, rgba(46,117,86,.055), transparent 25rem),
    radial-gradient(circle at 5% 100%, rgba(35,79,114,.045), transparent 26rem),
    #fff;
  box-shadow: 0 8px 24px rgba(23,33,43,.04);
}
.security-panel::after { color: rgba(35,79,114,.026); }
.security-header > p { color: var(--muted); }
.security-grid { border-color: var(--line); }
.security-grid article { border-color: var(--line); }
.security-grid article > span { color: var(--green); }
.security-grid h3 { color: #26313b; }
.security-grid p { color: var(--muted); }
.security-plain {
  border-color: #d8e6de;
  background: #f4f8f5;
}
.security-plain strong { color: #315d47; }
.security-plain p { color: #5f7066; }
.security-principles span {
  border-color: #d8e6de;
  background: #f4f8f5;
  color: #566b60;
}

@media (max-width: 760px) {
  .nav {
    background: rgba(255,255,255,.985);
    border-color: var(--line);
    box-shadow: 0 12px 30px rgba(23,33,43,.10);
  }
  .menu-toggle span { background: #18222c; }
  .code-window { transform: none; }
}

/* =========================================================
   Refined formal grid + responsive hardening
   ========================================================= */

/* Keep the subtle technical grid from the original dark version,
   but use a restrained blue-gray line on the formal white theme. */
body::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(35, 79, 114, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 79, 114, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.16) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.16) 88%, transparent 100%);
}

.noise { display: none; }
main, footer { position: relative; z-index: 1; }

/* Prevent grid/flex children from creating page-level horizontal overflow. */
.hero-copy,
.hero-visual,
.project-content,
.project-visual,
.intro-grid > *,
.section-heading > *,
.security-header > *,
.contact-card > * { min-width: 0; }

img, svg, video, canvas { max-width: 100%; }

/* More predictable metadata layout across laptop widths. */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Comfortable laptop / small desktop breakpoint. */
@media (max-width: 1180px) {
  .section { width: min(var(--max), calc(100% - 40px)); }
  .hero {
    gap: 44px;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  }
  .hero h1 { font-size: clamp(3.25rem, 5.5vw, 5rem); }
  .code-window pre { font-size: .80rem; }
  .card-api { right: -10px; }
  .card-db { left: -10px; }
  .project-featured { gap: 24px; padding: 32px; }
  .security-panel { padding: 42px 38px; }
}

/* Tablet and compact laptop: stack visual areas before they get cramped. */
@media (max-width: 1024px) {
  .site-header { width: calc(100% - 28px); }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 52px;
    padding-top: 145px;
  }
  .hero-copy { max-width: 850px; }
  .hero-visual { width: min(100%, 760px); margin: 0 auto; }
  .code-window { transform: none; }
  .floating-card { display: none; }

  .intro-grid { gap: 52px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .project-featured,
  .secondary {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .project-visual {
    grid-column: 2;
    width: min(100%, 620px);
    margin: 8px auto 0;
  }
  .project-grid { grid-template-columns: 1fr 1fr; }

  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid article:nth-child(2) { border-right: 0; }
  .security-grid article:nth-child(3),
  .security-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .security-grid article:nth-child(3) { padding-left: 0; }
}

/* Phones / Android portrait. */
@media (max-width: 760px) {
  body::before {
    background-size: 34px 34px;
    background-image:
      linear-gradient(rgba(35, 79, 114, .038) 1px, transparent 1px),
      linear-gradient(90deg, rgba(35, 79, 114, .038) 1px, transparent 1px);
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 74px 0;
  }

  .site-header {
    width: calc(100% - 20px);
    min-height: 60px;
    top: 10px;
    padding: 8px 9px 8px 14px;
    border-radius: 14px;
  }
  .brand { font-size: .92rem; }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }
  .nav {
    top: 66px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }
  .nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .hero {
    padding-top: 118px;
    gap: 38px;
  }
  .eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 12.6vw, 4.25rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 24px 0 24px;
    overflow-wrap: anywhere;
  }
  .hero-lead { font-size: 1rem; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { flex: 1 1 180px; }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
    padding-top: 18px;
  }
  .hero-meta div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .hero-meta div:last-child { border-bottom: 0; padding-bottom: 0; }

  .code-window { border-radius: 16px; }
  .window-bar { grid-template-columns: auto 1fr; }
  .filename { justify-self: end; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .code-window pre {
    min-height: 0;
    padding: 18px;
    font-size: .72rem;
    line-height: 1.7;
    max-width: 100%;
  }
  .terminal-line { padding: 12px 18px; }

  .intro-grid { gap: 30px; }
  .intro h2,
  .section-heading h2,
  .security-header h2,
  .strengths-card > h2 {
    font-size: clamp(2rem, 9.4vw, 3rem);
  }
  .section-heading { margin-bottom: 30px; }

  .skills-grid,
  .project-grid { grid-template-columns: 1fr; }
  .skill-card,
  .project-card { padding: 24px 22px; }
  .skill-card p { min-height: 0; }
  .project-card > p { min-height: 0; }

  .project-featured,
  .secondary {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .project-number { order: -1; }
  .project-visual { grid-column: auto; width: 100%; }
  .project-topline,
  .project-card-head { align-items: flex-start; flex-wrap: wrap; }
  .project-content h3 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .project-columns { grid-template-columns: 1fr; gap: 22px; margin: 26px 0 22px; }
  .mock-dashboard { height: 245px; }
  .tree {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: .72rem;
  }

  .security-section { padding-top: 12px; }
  .security-panel {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .security-panel::after {
    right: -6px;
    top: -12px;
    font-size: 5.2rem;
  }
  .security-header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 26px; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid article,
  .security-grid article:first-child,
  .security-grid article:last-child,
  .security-grid article:nth-child(3) {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .security-grid article:first-child { border-top: 0; }
  .security-technical { min-height: 0; }
  .security-plain { padding: 13px 14px; }

  .timeline-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }
  .timeline-item p { grid-column: 2; margin-top: 3px; }

  .strengths-card,
  .contact-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .strengths-grid { grid-template-columns: 1fr; }
  .strengths-grid > div,
  .strengths-grid > div:not(:first-child) {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .contact-card { min-height: 0; gap: 26px; }
  .contact-card h2 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .contact-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-actions .btn { width: 100%; min-height: 50px; }
  .social-links {
    flex-direction: column;
    gap: 10px;
    overflow-wrap: anywhere;
  }

  footer {
    width: calc(100% - 28px);
    padding-bottom: 34px;
  }
}

/* Narrow Android phones (360–420px). */
@media (max-width: 430px) {
  .section { width: calc(100% - 24px); }
  .site-header { width: calc(100% - 16px); }
  .brand-mark { display: none; }
  .hero h1 { font-size: clamp(2.45rem, 12.8vw, 3.25rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .code-window pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .project-content h3 { font-size: 2.3rem; }
  .tags span,
  .project-tech span,
  .security-principles span { font-size: .64rem; }
}


/* =========================================================
   Light professional theme — richer visual identity
   White remains dominant; accents add hierarchy and energy.
   ========================================================= */
:root {
  --accent: var(--cs-color-primary, #1f4f78);
  --accent-strong: var(--cs-color-primary-hover, #173d5e);
  --accent-2: #3c7895;
  --teal: #2f7f83;
  --teal-soft: #edf7f7;
  --blue-soft: #edf4f9;
  --green: #2e7556;
  --green-soft: #eef7f1;
  --ink-soft: #314150;
}

/* More depth without losing the white-first appearance. */
body {
  background:
    radial-gradient(circle at 12% 7%, rgba(47,127,131,.075), transparent 23rem),
    radial-gradient(circle at 88% 3%, rgba(31,79,120,.09), transparent 29rem),
    linear-gradient(to bottom, #ffffff 0%, #f9fbfd 42%, #f5f8fb 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(31,79,120,.050) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,79,120,.050) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* Small visual signature for section labels. */
.section-label {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.eyebrow {
  color: #536473;
  background: rgba(255,255,255,.90);
  border-color: #d6e1e9;
}
.status-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(47,127,131,.11);
}

/* Hero keeps formal typography but regains visual personality. */
.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #173d5e 0%, #2e698c 52%, #2f7f83 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 1%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,127,131,.08), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}
.hero { position: relative; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2c658b);
  box-shadow: 0 9px 22px rgba(31,79,120,.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-strong), #245b7e);
}
.btn-secondary:hover {
  color: var(--accent);
  border-color: #9eb3c3;
}

/* Code window: still light, slightly more crafted. */
.code-window {
  border-color: #cfdce5;
  box-shadow:
    0 26px 65px rgba(23,33,43,.12),
    0 0 0 1px rgba(31,79,120,.02);
}
.window-bar {
  background: linear-gradient(90deg, #f3f7fa, #f8fbfc);
}
.dots span:nth-child(1) { background: #b8c9d6; }
.dots span:nth-child(2) { background: #8eb2bf; }
.dots span:nth-child(3) { background: #6b9d9c; }
.code-window pre {
  background:
    linear-gradient(135deg, rgba(31,79,120,.025), transparent 42%),
    #fcfdfe;
}
.floating-card {
  border-color: #d4e0e7;
}
.card-api {
  background: linear-gradient(135deg, #f5f9fc, #edf4f9);
}
.card-db {
  background: linear-gradient(135deg, #f5faf9, #edf7f7);
}
.card-mobile {
  background: linear-gradient(135deg, #f7fafc, #eef3f7);
}
.card-api strong { color: var(--accent); }
.card-db strong { color: var(--teal); }
.card-mobile strong { color: #4f677a; }

/* Skill cards use restrained category accents rather than identical white boxes. */
.skill-card {
  position: relative;
  overflow: hidden;
  border-color: #dce4ea;
  box-shadow: 0 8px 24px rgba(23,33,43,.045);
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.skill-card:nth-child(2)::before,
.skill-card:nth-child(5)::before { background: var(--teal); }
.skill-card:nth-child(3)::before,
.skill-card:nth-child(6)::before { background: #5b7488; }
.skill-card:nth-child(4)::before { background: var(--green); }

.skill-card:nth-child(1) .skill-icon,
.skill-card:nth-child(5) .skill-icon {
  background: var(--blue-soft);
  color: var(--accent);
  border-color: #d8e5ee;
}
.skill-card:nth-child(2) .skill-icon {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: #d5e8e8;
}
.skill-card:nth-child(3) .skill-icon,
.skill-card:nth-child(6) .skill-icon {
  background: #f0f4f7;
  color: #536d81;
  border-color: #dde5eb;
}
.skill-card:nth-child(4) .skill-icon {
  background: var(--green-soft);
  color: var(--green);
  border-color: #d9e9df;
}
.skill-card:hover {
  transform: translateY(-5px);
}

/* Projects get clearer visual separation and distinct accents. */
.project-featured {
  border-color: #d7e2e9;
  background:
    radial-gradient(circle at 91% 7%, rgba(31,79,120,.10), transparent 23rem),
    linear-gradient(140deg, #ffffff 0%, #fbfdff 68%, #f3f8fb 100%);
  box-shadow: 0 12px 34px rgba(23,33,43,.055);
}
.project-featured.secondary {
  background:
    radial-gradient(circle at 92% 10%, rgba(47,127,131,.09), transparent 22rem),
    linear-gradient(140deg, #ffffff 0%, #fbfdfd 65%, #f1f8f7 100%);
}
.project-card {
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -25px;
  top: -28px;
  border-radius: 50%;
  background: rgba(31,79,120,.075);
}
.project-card:nth-child(2)::before {
  background: rgba(47,127,131,.085);
}
.project-card .project-number,
.project-featured .project-number {
  color: var(--accent);
  font-weight: 700;
}
.project-status {
  background: var(--green-soft);
  border-color: #cde2d5;
  color: var(--green);
}
.project-tech span {
  background: #f5f8fa;
}
.project-featured .project-tech span:first-child,
.project-card .project-tech span:first-child {
  color: var(--accent);
  border-color: #cadbe7;
  background: var(--blue-soft);
}

.mock-browser {
  box-shadow: 0 20px 48px rgba(31,79,120,.12);
}
.mock-side {
  background: linear-gradient(to bottom, #eaf2f7, #f5f8fa);
}
.mock-avatar {
  background: linear-gradient(135deg, var(--accent), var(--teal));
}
.mock-feed-card {
  background: linear-gradient(140deg, #eaf2f7, #f1f8f7);
}
.web-stack .layer:nth-child(1) {
  background: linear-gradient(135deg, #dfeaf2, #eef5f8);
}
.web-stack .layer:nth-child(2) {
  background: linear-gradient(135deg, #e4f0f0, #f2f8f7);
}
.web-stack .layer:nth-child(3) {
  background: linear-gradient(135deg, #edf2f5, #f8fafb);
}

/* Security gets a recognizable but calm green/blue identity. */
.security-panel {
  border-color: #d3e3df;
  background:
    radial-gradient(circle at 95% 6%, rgba(46,117,86,.11), transparent 24rem),
    radial-gradient(circle at 3% 100%, rgba(31,79,120,.075), transparent 27rem),
    linear-gradient(145deg, #ffffff, #fbfdfc 67%, #f1f7f4);
}
.security-grid article > span {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #d9e9df;
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-block;
}
.security-plain {
  box-shadow: inset 3px 0 0 rgba(46,117,86,.45);
}

/* Method timeline has a continuous technical accent. */
.timeline {
  position: relative;
}
.timeline-item > span {
  color: var(--accent);
  font-weight: 700;
}
.timeline-item h3 {
  transition: color .2s ease;
}
.timeline-item:hover h3 {
  color: var(--accent);
}

/* Value card feels less empty while remaining corporate. */
.strengths-card {
  background:
    radial-gradient(circle at 96% 8%, rgba(31,79,120,.08), transparent 24rem),
    linear-gradient(145deg, #ffffff, #f8fbfd);
}
.strengths-grid > div {
  position: relative;
}
.strengths-grid strong {
  color: var(--accent);
}
.strengths-grid > div:nth-child(even) strong {
  color: var(--teal);
}

/* Contact is visually memorable; WhatsApp remains clearly primary. */
.contact-card {
  border-color: #d4e1e9;
  background:
    radial-gradient(circle at 100% 0%, rgba(47,127,131,.11), transparent 25rem),
    radial-gradient(circle at 0% 100%, rgba(31,79,120,.08), transparent 27rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
}
.contact-actions .btn-primary {
  background: linear-gradient(135deg, #26734f, #31875e);
  box-shadow: 0 9px 22px rgba(38,115,79,.16);
}
.contact-actions .btn-primary:hover {
  background: linear-gradient(135deg, #205f42, #286f4e);
}
.social-links a:first-child {
  color: #26734f;
  font-weight: 700;
}

/* Responsive: decorative additions should never compete with content. */
@media (max-width: 1024px) {
  .hero::after {
    width: 280px;
    height: 280px;
    right: -6%;
    top: 45%;
  }
}
@media (max-width: 760px) {
  body::before {
    background-size: 34px 34px;
    background-image:
      linear-gradient(rgba(31,79,120,.042) 1px, transparent 1px),
      linear-gradient(90deg, rgba(31,79,120,.042) 1px, transparent 1px);
  }
  .hero::after { display: none; }
  .skill-card::before { height: 3px; }
  .project-card::before {
    width: 64px;
    height: 64px;
    right: -22px;
    top: -22px;
  }
  .section-label::before { width: 17px; }
}


/* ==========================================================================\n   SEO / service landing pages — added 2026-08-24\n   ========================================================================== */
.landing-main { padding-top: 72px; }
.landing-hero { min-height: 78vh; display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; padding-top: 130px; }
.landing-copy h1 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size: clamp(3rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.06em; margin: 28px 0; max-width: 900px; }
.landing-summary { border: 1px solid #d7e2e9; border-radius: 24px; padding: 30px; background: linear-gradient(145deg,#fff,#f7fafc); box-shadow: 0 18px 45px rgba(23,33,43,.07); }
.landing-summary > span, .case-tag { color: var(--accent); font-size: .72rem; letter-spacing: .13em; font-weight: 800; }
.landing-summary ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.landing-summary li { padding: 13px 0 13px 28px; border-bottom: 1px solid #e4ebef; position: relative; color: #52616f; }
.landing-summary li::before { content: "✓"; position: absolute; left: 0; color: #26734f; font-weight: 800; }
.execution-note { margin-top: 24px; padding: 18px; border-radius: 16px; background: #eef5f8; border: 1px solid #d5e2e9; }
.execution-note strong { color: var(--accent); }
.execution-note p { margin: 7px 0 0; color: #667784; font-size: .86rem; }
.landing-section { border-top: 1px solid var(--line); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.solution-card { border: 1px solid #dce4ea; border-radius: 20px; padding: 28px; background: #fff; box-shadow: 0 8px 24px rgba(23,33,43,.04); }
.solution-card > span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.solution-card h3 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); margin: 18px 0 9px; font-size: 1.3rem; }
.solution-card p { color: var(--muted); margin: 0; }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.split-panel > div { border: 1px solid #dce4ea; border-radius: 24px; padding: 34px; background: #fff; }
.split-panel h2, .brief-form h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size: clamp(2rem,3.5vw,3.3rem); letter-spacing: -.04em; line-height: 1.05; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { padding-left: 28px; position: relative; color: #536370; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #26734f; font-weight: 800; }
.proof-card { background: linear-gradient(145deg,#f8fbfd,#eef6f7)!important; }
.proof-card p { color: #536370; font-size: 1.03rem; }
.process-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; padding-top: 40px; padding-bottom: 40px; }
.process-strip article { border-top: 2px solid #dce5eb; padding: 18px 10px 0 0; }
.process-strip article > span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.process-strip strong { display:block; margin: 8px 0 4px; }
.process-strip p { margin: 0; color: var(--muted); font-size: .82rem; }
.landing-cta { width: min(var(--max), calc(100% - 48px)); margin: 40px auto 115px; border: 1px solid #cfdfe8; border-radius: 28px; padding: 46px; display: flex; gap: 30px; align-items: center; justify-content: space-between; background: radial-gradient(circle at 100% 0, rgba(47,127,131,.12), transparent 25rem), linear-gradient(135deg,#fff,#f4f9fb); }
.landing-cta h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size: clamp(2.2rem,4vw,4rem); line-height: 1; letter-spacing: -.05em; margin: 12px 0; }
.landing-cta p { max-width: 700px; color: var(--muted); }
.landing-footer { width: min(1240px,calc(100% - 32px)); margin: 0 auto 28px; border-top: 1px solid #dce4e9; padding: 28px 6px 0; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 22px; font-size: .82rem; color: #6d7d89; }
.landing-footer > div:first-child { display: flex; flex-direction: column; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }
.service-path-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.service-path-grid a { border:1px solid #dbe5eb; border-radius:18px; padding:24px; background:#fff; display:flex; flex-direction:column; gap:7px; box-shadow:0 8px 22px rgba(23,33,43,.035); transition:.2s ease; }
.service-path-grid a:hover { transform:translateY(-4px); border-color:#a9bfce; }
.service-path-grid strong { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size:1.06rem; }
.service-path-grid span { color:var(--accent); font-size:.78rem; }
.case-list { display:grid; gap:16px; }
.case-study { border:1px solid #d9e4ea; border-radius:24px; padding:34px; background:#fff; display:grid; grid-template-columns:1.2fr .8fr; gap:46px; }
.case-study h2, .outcome-card h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size:clamp(2rem,3.2vw,3rem); line-height:1.04; letter-spacing:-.04em; margin:12px 0 18px; }
.case-study p { color:var(--muted); }
.case-study h3 { margin-top:0; }
.outcome-grid { display:grid; gap:16px; }
.outcome-card { border:1px solid #d9e4ea; border-radius:24px; padding:36px; background:linear-gradient(145deg,#fff,#f8fbfd); }
.outcome-card > span { color:var(--accent); font-weight:800; font-size:.72rem; letter-spacing:.12em; }
.outcome-card p { color:#536370; max-width:920px; }
.contact-hero { align-items:start; }
.contact-direct { display:grid; gap:10px; margin-top:34px; max-width:560px; }
.contact-direct a { display:flex; justify-content:space-between; gap:20px; border:1px solid #dbe5eb; border-radius:15px; padding:16px 18px; background:#fff; }
.contact-direct a:hover { border-color:#a8becd; }
.contact-direct span { color:var(--muted); }
.brief-form { border:1px solid #d6e3e9; border-radius:24px; padding:30px; background:#fff; box-shadow:0 18px 45px rgba(23,33,43,.07); display:grid; gap:15px; }
.brief-form h2 { margin:8px 0 10px; }
.brief-form label { display:grid; gap:7px; color:#44535f; font-size:.85rem; font-weight:700; }
.brief-form input,.brief-form select,.brief-form textarea { width:100%; font:inherit; color:var(--text); background:#f9fbfc; border:1px solid #d8e2e8; border-radius:12px; padding:12px 13px; outline:none; }
.brief-form input:focus,.brief-form select:focus,.brief-form textarea:focus { border-color:#7fa1b7; box-shadow:0 0 0 3px rgba(31,79,120,.08); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-note { color:var(--muted); font-size:.72rem; margin:0; }
.contact-expect { border-top:1px solid var(--line); }

@media (max-width: 980px) {
  .landing-hero, .split-panel, .case-study { grid-template-columns:1fr; gap:32px; }
  .landing-hero { min-height:auto; }
  .solution-grid { grid-template-columns:1fr; }
  .service-path-grid { grid-template-columns:1fr 1fr; }
  .process-strip { grid-template-columns:repeat(2,1fr); }
  .landing-cta { align-items:flex-start; flex-direction:column; }
  .landing-footer { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .landing-main { padding-top:52px; }
  .landing-hero { padding-top:100px; }
  .landing-copy h1 { font-size:clamp(2.7rem,13vw,4.2rem); }
  .service-path-grid, .form-row, .process-strip { grid-template-columns:1fr; }
  .landing-cta { width:min(var(--max),calc(100% - 32px)); padding:28px; }
  .contact-direct a { flex-direction:column; gap:2px; }
}

/* ========================================================================== 
   2026-08-24 — Professional light theme with stronger visual rhythm
   Keeps the formal white base but introduces confident navy/teal contrast.
   ========================================================================== */
:root {
  --navy: #102c45;
  --navy-2: #153b59;
  --navy-3: #1d506e;
  --cyan: #35a7b0;
  --cyan-soft: #e9f7f7;
  --blue-wash: #edf5fa;
  --sand-wash: #f8f6f2;
}

body {
  background:
    radial-gradient(circle at 6% 4%, rgba(53,167,176,.12), transparent 24rem),
    radial-gradient(circle at 94% 7%, rgba(16,44,69,.14), transparent 32rem),
    radial-gradient(circle at 52% 52%, rgba(42,111,145,.045), transparent 40rem),
    linear-gradient(180deg,#ffffff 0%,#f7fbfd 42%,#f5f8fa 100%);
}

.site-header {
  background: rgba(248,252,254,.93);
  border-color: rgba(16,44,69,.13);
  box-shadow: 0 10px 34px rgba(16,44,69,.11);
}
.brand-mark {
  width: 34px; height: 34px; display:grid; place-items:center;
  border-radius: 10px;
  color:#fff;
  background: linear-gradient(135deg,var(--navy-2),var(--cyan));
  box-shadow: 0 7px 17px rgba(16,44,69,.16);
}
.nav .nav-cta {
  background: linear-gradient(135deg,var(--navy),var(--navy-3));
  box-shadow: 0 7px 18px rgba(16,44,69,.16);
}

/* A more vivid but still restrained hero. */
.hero::before,
.landing-hero::before {
  content:"";
  position:absolute;
  width:520px;height:520px;border-radius:50%;
  left:-250px;top:4%;
  background:radial-gradient(circle,rgba(53,167,176,.11),transparent 70%);
  pointer-events:none;z-index:-1;
}
.landing-hero { position:relative; }
.hero-copy::after {
  content:"";
  display:block;
  width:112px;height:5px;border-radius:99px;
  margin-top:34px;
  background:linear-gradient(90deg,var(--navy),var(--cyan));
}
.code-window {
  background: linear-gradient(145deg,#0d2234,#102c45 60%,#163a52);
  border-color: rgba(72,143,170,.34);
  box-shadow: 0 32px 75px rgba(16,44,69,.24);
}
.window-bar { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.09); }
.filename { color:#a9c1cf; }
.code-window pre { background:transparent; color:#dce8ef; }
.code-window .c-purple { color:#a9a8ff; }
.code-window .c-green { color:#74e0bd; }
.terminal-line { border-color:rgba(255,255,255,.10); color:#afc3cf; }
.cursor { background:#dce8ef; }

/* Strategic dark service band breaks the amount of white. */
.service-paths {
  padding: 58px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%,rgba(53,167,176,.22),transparent 24rem),
    linear-gradient(135deg,#0d283f 0%,#123753 58%,#164a63 100%);
  box-shadow:0 24px 55px rgba(16,44,69,.17);
  color:#fff;
}
.service-paths .section-label { color:#8ed7dc; }
.service-paths .section-label::before { background:linear-gradient(90deg,#67d4db,#a5e6e8); }
.service-paths .section-heading h2 { color:#fff; }
.service-paths .section-heading > p { color:#bbccd6; }
.service-path-grid a {
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.13);
  box-shadow:none;
  color:#fff;
}
.service-path-grid a:hover {
  background:rgba(255,255,255,.12);
  border-color:rgba(123,218,224,.42);
}
.service-path-grid span { color:#8ed7dc; }

/* Give alternating card families their own visual temperature. */
.skill-card:nth-child(2), .skill-card:nth-child(5) { background:linear-gradient(145deg,#fff,#eef9f9); }
.skill-card:nth-child(1), .skill-card:nth-child(4) { background:linear-gradient(145deg,#fff,#f1f7fb); }
.skill-card:nth-child(3), .skill-card:nth-child(6) { background:linear-gradient(145deg,#fff,#f7f8fa); }

.security-panel {
  box-shadow:0 20px 48px rgba(24,77,70,.08);
}
.security-panel::before {
  content:"";position:absolute;right:-120px;bottom:-170px;width:360px;height:360px;border-radius:50%;
  border:58px solid rgba(46,117,86,.045);pointer-events:none;
}

/* High-trust/value sections become darker focal moments. */
.strengths-card {
  color:#fff;
  border-color:rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 92% 10%,rgba(53,167,176,.24),transparent 26rem),
    linear-gradient(135deg,#102c45,#143d5c 68%,#18556b);
  box-shadow:0 24px 60px rgba(16,44,69,.18);
}
.strengths-card > h2 { color:#fff; }
.strengths-card .section-label { color:#91dce0; }
.strengths-card .section-label::before { background:#91dce0; }
.strengths-grid { border-color:rgba(255,255,255,.13); }
.strengths-grid > div { border-color:rgba(255,255,255,.13); }
.strengths-grid strong,.strengths-grid > div:nth-child(even) strong { color:#8ed7dc; }
.strengths-grid h3 { color:#fff; }
.strengths-grid p { color:#c2d1da; }

.contact-card,
.landing-cta,
.article-cta {
  color:#fff;
  border-color:rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 95% 8%,rgba(53,167,176,.26),transparent 24rem),
    radial-gradient(circle at 6% 95%,rgba(70,120,186,.16),transparent 27rem),
    linear-gradient(135deg,#0d283f,#123753 62%,#164e64);
  box-shadow:0 26px 58px rgba(16,44,69,.18);
}
.contact-card h2,.landing-cta h2,.article-cta h2 { color:#fff; }
.contact-card p,.landing-cta p,.article-cta p { color:#bed0da; }
.contact-card .section-label,.landing-cta .section-label,.article-cta .section-label { color:#8ed7dc; }
.contact-card .section-label::before,.landing-cta .section-label::before,.article-cta .section-label::before { background:#8ed7dc; }
.contact-card .btn-secondary,.landing-cta .btn-secondary,.article-cta .btn-secondary {
  color:#fff;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18);
}
.contact-card .btn-secondary:hover,.landing-cta .btn-secondary:hover,.article-cta .btn-secondary:hover { background:rgba(255,255,255,.13); }
.contact-card .social-links { border-color:rgba(255,255,255,.14); }
.contact-card .social-links a { color:#c4d4dc; }
.contact-card .social-links a:hover { color:#fff; }
.contact-primary-note { color:#dbe7ec; }

/* Service landing pages: a stronger summary block and alternating panels. */
.landing-summary {
  color:#fff;
  border-color:rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 90% 8%,rgba(53,167,176,.23),transparent 18rem),
    linear-gradient(145deg,#0f2c44,#153e5b);
  box-shadow:0 24px 55px rgba(16,44,69,.18);
}
.landing-summary > span { color:#8ed7dc; }
.landing-summary li { color:#c8d7df; border-color:rgba(255,255,255,.12); }
.execution-note { background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.12); }
.execution-note strong { color:#8ed7dc; }
.execution-note p { color:#c1d0d8; }
.solution-card:nth-child(2) { background:linear-gradient(145deg,#f1f9f9,#fff); }
.solution-card:nth-child(3) { background:linear-gradient(145deg,#eff6fb,#fff); }
.split-panel > div:first-child { background:linear-gradient(145deg,#fff,#f2f7fb); }
.proof-card { background:linear-gradient(145deg,#eaf7f6,#f7fbfc)!important; }

/* Homepage blog preview */
.home-blog-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.home-blog-grid a {
  min-height:210px; display:flex; flex-direction:column; justify-content:space-between;
  padding:26px; border:1px solid #d8e4ea; border-radius:22px;
  background:linear-gradient(145deg,#fff,#f2f8fb); box-shadow:0 10px 28px rgba(16,44,69,.05);
  transition:.22s ease;
}
.home-blog-grid a:nth-child(2) { background:linear-gradient(145deg,#eef9f8,#fff); }
.home-blog-grid a:nth-child(3) { background:linear-gradient(145deg,#fff,#f7f5f1); }
.home-blog-grid a:hover { transform:translateY(-5px); border-color:#a9c3d2; box-shadow:0 18px 40px rgba(16,44,69,.09); }
.home-blog-grid span { color:var(--accent); font-size:.68rem; font-weight:800; letter-spacing:.12em; }
.home-blog-grid strong { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size:1.3rem; line-height:1.18; }
.home-blog-grid small { color:#60788a; }
.home-blog-grid .home-blog-all {
  color:#fff;border-color:rgba(255,255,255,.07);
  background:linear-gradient(145deg,#102c45,#18506a);
}
.home-blog-grid .home-blog-all span,.home-blog-grid .home-blog-all small { color:#8ed7dc; }

/* Blog hub */
.blog-main,.article-main { padding-top:72px; }
.blog-hero,.article-hero {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 82% 18%,rgba(53,167,176,.24),transparent 30rem),
    radial-gradient(circle at 4% 82%,rgba(64,99,166,.12),transparent 27rem),
    linear-gradient(135deg,#0c273e,#113653 62%,#164b62);
  color:#fff;
  margin:0 16px;
  border-radius:0 0 34px 34px;
}
.blog-hero::after,.article-hero::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:46px 46px;mask-image:linear-gradient(to bottom,black,transparent 90%);
}
.blog-hero-inner,.article-hero-inner {
  width:min(var(--max),calc(100% - 48px)); margin:0 auto; position:relative;z-index:1;
  min-height:560px; display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center;padding:110px 0 72px;
}
.blog-hero h1,.article-hero h1 {
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif); color:#fff; letter-spacing:-.06em; line-height:.96; margin:26px 0;
  font-size:clamp(3.4rem,7vw,6.4rem);
}
.blog-hero h1 span { color:#8ed7dc; }
.blog-hero p,.article-hero-copy > p { color:#c1d1db; max-width:760px; font-size:1.06rem; }
.blog-hero .eyebrow,.article-hero .eyebrow { color:#cfe2e9;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);box-shadow:none; }
.blog-hero-panel,.article-answer {
  padding:30px;border:1px solid rgba(255,255,255,.14);border-radius:24px;
  background:rgba(255,255,255,.075);backdrop-filter:blur(12px);
  box-shadow:0 22px 50px rgba(0,0,0,.11);
}
.blog-hero-panel span,.article-answer > span { display:block;color:#8ed7dc;font-size:.72rem;font-weight:800;letter-spacing:.13em;margin-bottom:14px; }
.blog-hero-panel strong { display:block;font-family: var(--cs-font-family, "Space Grotesk", sans-serif);font-size:2.5rem;margin-bottom:8px; }
.blog-hero-panel p,.article-answer p { color:#d3e0e6;margin:0; }
.article-answer p { font-size:1.16rem; }
.article-inline-link { display:inline-block;margin-top:22px;color:#8ed7dc;font-weight:800; }
.article-meta { display:flex;gap:20px;flex-wrap:wrap;color:#8ca8b8;font-size:.76rem;margin-top:30px; }

.blog-list { padding-top:90px; }
.blog-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:15px; }
.blog-card {
  min-height:330px;padding:34px;border:1px solid #d6e2e9;border-radius:24px;
  background:linear-gradient(145deg,#fff,#f2f8fb);box-shadow:0 11px 30px rgba(16,44,69,.05);
  display:flex;flex-direction:column;
}
.blog-card:nth-child(3n+2){background:linear-gradient(145deg,#eef9f8,#fff)}
.blog-card:nth-child(3n){background:linear-gradient(145deg,#fff,#f7f5f1)}
.blog-card-top {display:flex;justify-content:space-between;gap:18px;color:#718898;font-size:.68rem;letter-spacing:.08em;}
.blog-card-top span{color:var(--accent);font-weight:800;}
.blog-card h2{font-family: var(--cs-font-family, "Space Grotesk", sans-serif);font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.08;letter-spacing:-.04em;margin:38px 0 16px;}
.blog-card p{color:var(--muted);margin:0 0 24px;}
.blog-card > a{margin-top:auto;color:var(--accent);font-weight:800;}
.blog-card > a span{transition:.2s ease;display:inline-block;}
.blog-card:hover > a span{transform:translateX(5px);}

/* Articles */
.article-layout { width:min(var(--max),calc(100% - 48px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:70px;padding:90px 0 50px; }
.article-content { min-width:0; }
.article-section { padding:0 0 64px;margin-bottom:64px;border-bottom:1px solid #dce5ea; }
.article-section:last-child{border-bottom:0;}
.article-section h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif);font-size:clamp(2rem,4vw,3.3rem);line-height:1.04;letter-spacing:-.045em;margin:0 0 24px;color:#132537; }
.article-section h3 { color:#183146; }
.article-section p { color:#526675;font-size:1.01rem; }
.article-section > p:first-of-type { font-size:1.08rem;color:#405766; }
.article-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0; }
.article-grid article { padding:25px;border:1px solid #d9e5eb;border-radius:18px;background:linear-gradient(145deg,#fff,#f1f7fa); }
.article-grid article:nth-child(2n){background:linear-gradient(145deg,#eff9f8,#fff);}
.article-grid article > span { color:var(--accent);font-size:.7rem;font-weight:800; }
.article-grid h3 { margin:14px 0 8px;font-family: var(--cs-font-family, "Space Grotesk", sans-serif); }
.article-grid p { margin:0;font-size:.9rem; }
.article-callout { margin:28px 0;padding:28px;border-radius:20px;border:1px solid #cde1e2;background:linear-gradient(135deg,#eaf8f7,#f7fbfb);box-shadow:inset 4px 0 0 var(--cyan); }
.article-callout strong { display:block;color:#194b54;font-size:1.15rem; }
.article-callout p { margin:8px 0 0; }
.article-check { list-style:none;padding:0;margin:26px 0;display:grid;gap:12px; }
.article-check li { position:relative;padding:15px 18px 15px 46px;border:1px solid #dfe7eb;border-radius:14px;background:#fff;color:#526675; }
.article-check li::before { content:"✓";position:absolute;left:17px;top:14px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#e9f6f0;color:#26734f;font-weight:900;font-size:.7rem; }
.article-sidebar { position:relative; }
.sticky-card { position:sticky;top:105px;padding:24px;border:1px solid #d5e3e9;border-radius:20px;background:linear-gradient(145deg,#fff,#edf6f9);box-shadow:0 16px 40px rgba(16,44,69,.07);display:grid;gap:13px; }
.sticky-card > span { color:var(--accent);font-size:.68rem;letter-spacing:.12em;font-weight:800; }
.sticky-card p { color:#607584;font-size:.84rem;margin:0 0 8px; }
.sticky-card .btn { width:100%; }
.decision-table { margin:28px 0;border:1px solid #d8e4ea;border-radius:18px;overflow:hidden;background:#fff; }
.decision-table > div { display:grid;grid-template-columns:1.5fr .75fr .75fr; }
.decision-table > div > * { padding:14px 16px;border-bottom:1px solid #e4ebef; }
.decision-table > div:first-child { background:#102c45;color:#fff; }
.decision-table b { color:#26734f; }
.decision-table.wide > div { grid-template-columns:1.1fr 1fr 1fr; }
.process-mini { display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:28px 0; }
.process-mini article { padding:18px;border-radius:16px;background:#f2f7fa;border:1px solid #dce6eb; }
.process-mini span { color:var(--accent);font-weight:800;font-size:.7rem; }
.process-mini strong { display:block;margin:9px 0 5px; }
.process-mini p { margin:0;font-size:.78rem; }
.faq-section details { border:1px solid #dce5ea;border-radius:15px;background:#fff;margin:10px 0;overflow:hidden; }
.faq-section summary { cursor:pointer;padding:17px 20px;font-weight:800;color:#253b4b; }
.faq-section details p { padding:0 20px 18px;margin:0; }
.related-section { width:min(var(--max),calc(100% - 48px));margin:0 auto;padding:40px 0 90px; }
.related-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:12px; }
.related-card { min-height:190px;padding:24px;border-radius:19px;border:1px solid #d9e4ea;background:linear-gradient(145deg,#fff,#f2f8fb);display:flex;flex-direction:column; }
.related-card:nth-child(2){background:linear-gradient(145deg,#eef9f8,#fff)}
.related-card span{font-size:.66rem;color:var(--accent);font-weight:800;letter-spacing:.1em;}
.related-card strong{font-family: var(--cs-font-family, "Space Grotesk", sans-serif);font-size:1.22rem;line-height:1.16;margin:20px 0;}
.related-card small{margin-top:auto;color:#60798a;}
.article-cta { width:min(var(--max),calc(100% - 48px));margin:0 auto 105px;padding:46px;border-radius:28px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:38px; }
.article-cta h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif);font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.045em;line-height:1.03;margin:12px 0 0;max-width:820px; }

@media(max-width:1100px){
  .nav a{padding:10px 10px;font-size:.82rem;}
  .service-paths{padding:45px;}
  .home-blog-grid{grid-template-columns:1fr 1fr;}
  .blog-hero-inner,.article-hero-inner{gap:38px;}
  .article-layout{grid-template-columns:minmax(0,1fr) 260px;gap:38px;}
}
@media(max-width:900px){
  .blog-hero-inner,.article-hero-inner{grid-template-columns:1fr;min-height:auto;padding:125px 0 70px;}
  .blog-hero-panel,.article-answer{max-width:680px;}
  .article-layout{grid-template-columns:1fr;}
  .article-sidebar{order:-1;}
  .sticky-card{position:static;grid-template-columns:1fr 1fr;align-items:end;}
  .sticky-card > span,.sticky-card p{grid-column:1/-1;}
  .related-grid{grid-template-columns:1fr 1fr;}
  .process-mini{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:760px){
  .brand-mark{display:grid;}
  .service-paths{padding:28px 22px;border-radius:22px;}
  .home-blog-grid,.blog-grid,.article-grid,.related-grid{grid-template-columns:1fr;}
  .blog-hero,.article-hero{margin:0 8px;border-radius:0 0 24px 24px;}
  .blog-hero-inner,.article-hero-inner{width:calc(100% - 32px);padding-top:105px;}
  .blog-hero h1,.article-hero h1{font-size:clamp(2.8rem,13vw,4.4rem);}
  .article-layout,.related-section,.article-cta{width:calc(100% - 30px);}
  .article-layout{padding-top:65px;}
  .article-section{padding-bottom:48px;margin-bottom:48px;}
  .sticky-card{grid-template-columns:1fr;}
  .sticky-card > span,.sticky-card p{grid-column:auto;}
  .decision-table{overflow-x:auto;}
  .decision-table > div{min-width:560px;}
  .process-mini{grid-template-columns:1fr;}
  .article-cta{grid-template-columns:1fr;padding:30px 24px;}
  .article-cta .hero-actions{display:grid;grid-template-columns:1fr;}
}


/* ========================================================================== 
   UX conversion + responsive fixes — 2026-08-24
   ========================================================================== */

#brief { scroll-margin-top: 96px; }

.brief-fab {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 46;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 16px 8px 9px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(53,167,176,.20), transparent 7rem),
    linear-gradient(135deg, #102c45, #174b67);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(16,44,69,.28);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.brief-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(16,44,69,.34);
}
.brief-fab:focus-visible {
  outline: 3px solid rgba(53,167,176,.35);
  outline-offset: 4px;
}
.brief-fab__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #22a968;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.brief-fab__icon svg { width: 27px; height: 27px; }
.brief-fab__copy { display: grid; line-height: 1.1; gap: 3px; text-align: left; }
.brief-fab__copy small { color: #bcd2dc; font-size: .69rem; font-weight: 650; }
.brief-fab__copy strong { color: #fff; font-size: .87rem; white-space: nowrap; }
.brief-fab.is-form-visible,
.brief-fab.is-menu-open {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
}

/* Portfolio service cards: guarantee readable contrast on narrow screens.
   This explicit final override protects against earlier white-card rules. */
@media (max-width: 760px) {
  .service-links .service-path-grid a,
  .service-paths .service-path-grid a {
    color: #fff !important;
    background: linear-gradient(145deg, #102f48, #174d67) !important;
    border-color: rgba(53,167,176,.28) !important;
    box-shadow: 0 10px 24px rgba(16,44,69,.11) !important;
  }
  .service-links .service-path-grid strong,
  .service-paths .service-path-grid strong { color: #fff !important; }
  .service-links .service-path-grid span,
  .service-paths .service-path-grid span { color: #92dce1 !important; }

  .brief-fab {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 54px;
    padding: 7px 13px 7px 7px;
    border-radius: 16px;
    max-width: calc(100vw - 24px);
  }
  .brief-fab__icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .brief-fab__copy small { font-size: .64rem; }
  .brief-fab__copy strong { font-size: .80rem; }
}

@media (max-width: 390px) {
  .brief-fab__copy small { display: none; }
  .brief-fab__copy strong { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brief-fab { transition: none; }
}


/* Bilingual language switch — 2026-08-27 */
.brand { order: 1; margin-right: auto; }
.nav { order: 2; }
.lang-switch {
  order: 3;
  flex: 0 0 auto;
  min-width: 43px;
  height: 38px;
  margin-left: 8px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border: 1px solid rgba(53,167,176,.28);
  border-radius: 11px;
  background: rgba(53,167,176,.08);
  color: #174b67;
  font-family: var(--cs-font-family, "Space Grotesk", sans-serif);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.lang-switch:hover {
  transform: translateY(-1px);
  background: rgba(53,167,176,.15);
  border-color: rgba(53,167,176,.48);
  color: #102c45;
}
.lang-switch:focus-visible {
  outline: 3px solid rgba(53,167,176,.28);
  outline-offset: 3px;
}
.menu-toggle { order: 4; }
@media (max-width: 760px) {
  .site-header { padding-right: 8px; }
  .lang-switch { margin-left: 6px; min-width: 42px; height: 40px; }
  .menu-toggle { margin-left: 2px; }
  .nav { order: 5; }
}


/* ===== Project identities: palettes sourced from each original software ===== */
.project-grid > .project-link {min-width:0;}
.project-card.project-link {
  --brand:#234f72;
  --brand-soft:#edf3f7;
  --brand-border:#d5e0e9;
  --brand-fg:#17212b;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:var(--brand-fg);
  cursor:pointer;
  border:1px solid var(--brand-border);
  background:linear-gradient(175deg,#fff 0%,#fff 74%,var(--brand-soft) 145%);
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
  isolation:isolate;
}
.project-card.project-link::before {display:none;}
.project-card.project-link:hover {
  transform:translateY(-6px);
  box-shadow:0 22px 46px rgba(18,37,53,.14);
  border-color:var(--brand);
}
.project-card.project-link:focus-visible {outline:3px solid var(--brand);outline-offset:4px;}
.project-card.project-link .project-card-head {margin-bottom:18px;}
.project-card.project-link .project-number {color:var(--brand);}
.project-card.project-link .project-type {color:#687783;}
.project-card.project-link h3 {margin:22px 0 12px;color:#17212b;}
.project-card.project-link > p {min-height:0;line-height:1.72;margin:0 0 2px;color:#5d6976;}
.project-card.project-link .mini-case {margin:22px 0;background:color-mix(in srgb,var(--brand-soft) 62%,white);border-color:var(--brand-border);}
.project-card.project-link .mini-case strong {color:var(--brand);}
.project-card.project-link .mini-case span {color:#56636e;}
.project-card.project-link .mini-case-explainer {color:#56636e;}
.project-card.project-link .mini-case-explainer b {color:#273849;}
.project-card.project-link .project-tech {margin-top:auto;}
.project-card.project-link .project-tech span {background:white;border-color:var(--brand-border);color:#4e5c69;}
.project-card.project-link .project-tech span:first-child {background:var(--brand-soft);border-color:var(--brand-border);color:var(--brand);}
.project-card--protector {--brand:#008ea9 !important;--brand-soft:#eaf8fa !important;--brand-border:#cae4e9 !important;}
.project-card--fertialgas {--brand:#4d7618 !important;--brand-soft:#f2f8e9 !important;--brand-border:#d9e7cc !important;}
.project-card--lightgpt {--brand:#30313a !important;--brand-soft:#f2f2f5 !important;--brand-border:#dadae1 !important;}
.project-card--gestor {--brand:#3d73dd !important;--brand-soft:#eef5ff !important;--brand-border:#cbdcf7 !important;}
.project-identity {height:184px;min-height:184px;overflow:hidden;position:relative;border-radius:15px;border:1px solid transparent;}
.project-identity .identity-header {height:76px;position:relative;z-index:2;display:flex;align-items:center;gap:12px;padding:12px 18px;}
.identity-logo {display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;}
.identity-logo img {max-width:100%;max-height:100%;object-fit:contain;display:block;}
.identity-title {display:flex;flex-direction:column;gap:0;font-size:11px;letter-spacing:.13em;line-height:1.3;}
.identity-title strong {font-size:17px;letter-spacing:-.025em;font-weight:800;line-height:1.1;}
.identity-workspace {position:relative;overflow:hidden;height:107px;}
.project-identity--protector {background:#0a1116;border-color:#184553;color:#f2f2f2;}
.project-identity--protector .identity-header {background:linear-gradient(105deg,#060a0e,#10232a);border-bottom:1px solid #204149;}
.identity-logo--protector {width:54px;height:54px;background:#061b20;border:1px solid #1f5b62;border-radius:14px;}
.identity-logo--protector img {width:70px;height:70px;max-width:unset;max-height:unset;}
.project-identity--protector .identity-title strong {color:#50d5e1;letter-spacing:.1em;}
.identity-indicator {margin-left:auto;width:8px;height:8px;border-radius:50%;background:#62b51e;box-shadow:0 0 0 5px rgba(98,181,30,.13);}
.identity-workspace--protector {display:flex;align-items:center;gap:20px;padding:13px 26px;background:linear-gradient(105deg,#101820,#09242a);}
.pd-ring {height:67px;width:67px;border:5px solid #214e58;border-left-color:#00bcd4;border-top-color:#26c6da;border-radius:50%;display:grid;place-items:center;transform:rotate(-23deg);flex-shrink:0;}
.pd-ring-dot {height:27px;width:27px;border-radius:50%;background:#09242a;border:6px solid #00bcd4;}
.pd-stats {display:flex;flex-direction:column;gap:7px;z-index:2;}
.pd-stats-title {color:#eafcfd;font-weight:750;letter-spacing:.12em;font-size:10px;}
.pd-stats-line {height:5px;width:115px;background:#31505b;border-radius:8px;}
.pd-stats-line.small {width:73px;background:#20434d;}
.pd-capsule {font-size:9px;color:#8fe8b0;letter-spacing:.09em;}
.pd-grid {position:absolute;inset:0;opacity:.17;background-image:linear-gradient(90deg,#14b4c8 1px,transparent 1px),linear-gradient(#14b4c8 1px,transparent 1px);background-size:26px 26px;mask-image:linear-gradient(90deg,transparent 30%,black);}
.project-identity--fertialgas {background:#f7faf1;border-color:#dce8d1;color:#315111;}
.project-identity--fertialgas .identity-header {height:98px;padding:10px 20px;align-items:center;justify-content:space-between;}
.identity-logo--fertialgas {width:163px;height:86px;}
.identity-logo--fertialgas img {width:163px;height:87px;}
.fa-mini-badge {align-self:flex-start;margin-top:10px;color:#507d25;border:1px solid #d0e3c2;background:#eff7e9;padding:6px 9px;border-radius:20px;font-size:9px;font-weight:800;letter-spacing:.08em;white-space:nowrap;}
.identity-workspace--fertialgas {height:85px;background:linear-gradient(145deg,#dce9c8,#f6f8ee);}
.fa-line {position:absolute;left:-10%;width:130%;height:74px;border-radius:50%;}
.fa-line--one {bottom:-52px;background:#6b9d22;transform:rotate(-4deg);}
.fa-line--two {bottom:-66px;background:#315111;transform:rotate(7deg);}
.fa-leaf {position:absolute;display:block;width:60px;height:28px;background:#a5c76e;border-radius:100% 0 100% 0;transform:rotate(-20deg);right:12%;top:5px;opacity:.8;}
.fa-leaf--two {width:43px;height:22px;right:21%;top:24px;transform:rotate(28deg);background:#c2d991;}
.fa-caption {position:absolute;left:18px;top:16px;bottom:auto;z-index:2;font-size:9px;font-weight:800;letter-spacing:.08em;color:#315111;text-shadow:none;}
.project-identity--lightgpt {background:#171717;border-color:#353535;color:#ececec;}
.project-identity--lightgpt .identity-header {height:68px;padding:12px 17px;background:#212121;border-bottom:1px solid #3b3b3f;}
.identity-logo--lightgpt {width:42px;height:42px;border:1px solid #66676b;background:#29292b;border-radius:12px;}
.identity-logo--lightgpt span {font-size:13px;font-weight:800;color:#f4f4f5;letter-spacing:-.06em;}
.project-identity--lightgpt .identity-title {color:#a5a5ad;letter-spacing:.07em;font-size:9px;}
.project-identity--lightgpt .identity-title strong {font-size:18px;letter-spacing:-.04em;color:#fff;}
.lightgpt-name-soft {font-weight:500;color:#bfc1c7;}
.ai-menu-bars {margin-left:auto;display:flex;flex-direction:column;gap:5px;}
.ai-menu-bars i {display:block;width:17px;height:2px;border-radius:2px;background:#a5a5ad;}
.identity-workspace--lightgpt {height:115px;display:flex;background:#171717;}
.ai-rail {width:50px;background:#212121;border-right:1px solid #39393b;padding:14px 17px;display:flex;flex-direction:column;gap:10px;}
.ai-rail span {width:17px;height:6px;background:#44464a;border-radius:5px;}
.ai-chat {flex:1;padding:12px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;}
.ai-message {height:13px;border-radius:7px;background:#303034;}
.ai-message--request {width:59%;align-self:flex-end;background:#39393d;}
.ai-message--response {width:77%;height:21px;display:flex;flex-direction:column;gap:3px;padding:5px 10px;}
.ai-message--response i {height:2px;width:85%;border-radius:5px;background:#a5a5ad;opacity:.35;}
.ai-message--response i:nth-child(2){width:66%;}
.ai-message--response i:nth-child(3){width:76%;}
.ai-input {display:flex;align-items:center;justify-content:space-between;width:100%;height:24px;border:1px solid #45454a;border-radius:9px;color:#83838b;padding:3px 8px;font-size:9px;margin-top:auto;}
.ai-input b {width:16px;height:16px;display:grid;place-items:center;border-radius:5px;background:#f4f4f5;color:#171717;font-size:11px;}
.project-identity--gestor {background:#3d73dd;border-color:#2a60d2;color:#fff;}
.project-identity--gestor .identity-header {background:#3d73dd;height:73px;padding:10px 16px;}
.identity-logo--gestor {height:54px;width:54px;border-radius:12px;border:2px solid rgba(255,255,255,.5);background:#b3d0ee;}
.identity-logo--gestor img {width:54px;height:54px;}
.project-identity--gestor .identity-title {letter-spacing:.04em;color:#d1e4ff;font-size:10px;}
.project-identity--gestor .identity-title strong {font-size:16px;letter-spacing:-.025em;color:#fff;}
.gc-lock-symbol {margin-left:auto;color:#cee6ff;font-size:27px;text-shadow:0 0 0 #fff;}
.identity-workspace--gestor {height:110px;background:#b3d0ee;padding:11px 18px;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px;}
.gc-input {min-width:0;height:27px;background:#fff;border:1px solid #83a9e9;border-radius:6px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;color:#7190ba;font-size:10px;}
.gc-input i {display:block;height:8px;width:8px;border-radius:50%;background:#dce7f7;}
.gc-input--pwd {color:#2e5a9e;letter-spacing:.1em;}
.gc-button {grid-column:1/-1;height:27px;background:#3d73dd;border-radius:5px;padding:0 14px;display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:800;letter-spacing:.08em;color:#fff;}
.gc-button span {font-size:18px;}
.project-visit {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:17px;border-top:1px solid var(--brand-border);font-weight:750;color:var(--brand);font-size:.78rem;letter-spacing:.015em;}
.project-visit-arrow {height:31px;width:31px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--brand-border);border-radius:50%;background:var(--brand-soft);font-size:19px;transition:background .2s ease,color .2s ease,transform .2s ease;}
.project-link:hover .project-visit-arrow,.project-link:focus-visible .project-visit-arrow {transform:translate(2px,-2px);background:var(--brand);color:#fff;}
.branded-case-list .project-grid {width:100%;margin-bottom:0;}
@media (max-width:760px){
 .project-card.project-link {padding:22px;}
 .project-card.project-link h3 {margin:19px 0 11px;}
 .project-card.project-link .project-card-head {gap:8px;}
 .project-identity {height:173px;min-height:173px;}
 .project-identity .identity-workspace {max-height:105px;}
 .project-identity--fertialgas .identity-header {height:90px;}
 .project-identity--gestor .identity-header {height:73px;}
}
@media (max-width:390px){
 .project-card.project-link {padding:18px;}
 .project-identity--protector .identity-header {padding:10px 12px;}
 .project-identity--fertialgas .identity-header {padding:10px;}
 .identity-logo--fertialgas {width:134px;}
 .identity-logo--fertialgas img {width:134px;}
 .fa-mini-badge {font-size:8px;padding:5px;}
 .project-card.project-link .project-type {font-size:.64rem;}
}
@media (prefers-reduced-motion:reduce){
 .project-card.project-link,.project-visit-arrow {transition:none;}
 .project-card.project-link:hover {transform:none;}
}

/* Cultstent product launcher: shared, accessible, responsive ES/EN component. */
.site-header .apps-launcher { order: 3; position: relative; flex: 0 0 auto; margin-left: 7px; }
.site-header .lang-switch { order: 4; }
.site-header .menu-toggle { order: 5; }
.apps-launcher__button {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: #284558; background: transparent;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.apps-launcher__button:hover,.apps-launcher__button[aria-expanded="true"] {
  background: rgba(53,167,176,.10); border-color: rgba(16,44,69,.12);
}
.apps-launcher__button:focus-visible,.apps-launcher__item:focus-visible {
  outline: 3px solid #35a7b0; outline-offset: 3px;
}
.apps-launcher__grid-icon { display: block; width: 23px; height: 23px; }
.apps-launcher__panel[hidden] { display: none !important; }
.apps-launcher__panel {
  position: absolute; right: -60px; top: calc(100% + 19px); z-index: 110;
  width: min(338px, calc(100vw - 26px)); max-height: min(490px, calc(100dvh - 100px));
  overflow-x: hidden; overflow-y: auto;
  padding: 20px; border-radius: 22px;
  border: 1px solid rgba(16,44,69,.14);
  background: #fbfdff; color: #193042;
  box-shadow: 0 22px 65px rgba(16,44,69,.20);
  overscroll-behavior: contain;
}
.apps-launcher__heading { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px 4px; }
.apps-launcher__heading strong { font-size: 1rem; color: #122d41; }
.apps-launcher__heading span { font-size: .8rem; color: #647b8b; }
.apps-launcher__items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.apps-launcher__item {
  min-width: 0; display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  padding: 14px 4px 12px; gap: 6px; text-align:center; border-radius: 14px;
  color: #243b4e; line-height:1.25;
  transition: background .18s ease, transform .18s ease;
}
.apps-launcher__item:hover { background: #edf4fa; transform: translateY(-2px); }
.apps-launcher__app-icon {
  width: 51px; height: 51px; display: grid; place-items: center; flex: none;
  border-radius: 15px; font-size: 1.15rem; font-weight:800; letter-spacing: -.04em;
  background: #e9f1fa; color:#305dba;
}
.apps-launcher__app-icon svg { width: 29px; height: 29px; }
.apps-launcher__item--keys .apps-launcher__app-icon { background: #e8f0ff; color: #3263c2; }
.apps-launcher__item--ai .apps-launcher__app-icon { background: #282a35; color: #f4f5fc; }
.apps-launcher__item--protector .apps-launcher__app-icon { background: #09252d; color: #43d3dd; }
.apps-launcher__app-name { font-size: .75rem; font-weight: 750; overflow-wrap: anywhere; }
.apps-launcher__item small { font-size: .64rem; color: #657c8a; line-height: 1.3; }
@media (max-width: 1100px) and (min-width: 761px) {
  .site-header .nav { gap: 2px; }
  .site-header .nav a { padding-inline: 8px; font-size: .78rem; }
}
@media (max-width: 760px) {
  .site-header .apps-launcher { margin-left: 3px; }
  .site-header .apps-launcher__button { width: 40px; height: 40px; }
  .site-header .nav { order: 6; }
  .apps-launcher__panel { top: calc(100% + 15px); right: -82px; padding: 16px; }
}
@media (max-width: 380px) {
  .site-header .brand { font-size: .84rem; }
  .site-header .lang-switch { min-width: 38px; padding-inline: 7px; margin-left: 3px; }
  .site-header .menu-toggle { width: 38px; min-width: 38px; margin-left: 0; }
  .apps-launcher__panel { right: -82px; }
  .apps-launcher__item { padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .apps-launcher__button,.apps-launcher__item { transition: none; }
}


/* Navigation: emphasize the current location, not Contact on every page.
   This applies consistently to desktop/mobile and both site languages. */
.nav .nav-cta:not([aria-current]) {
  background: transparent;
  color: #4e5b68;
  box-shadow: inset 0 0 0 1px rgba(16,44,69,.19);
}
.nav .nav-cta:not([aria-current]):hover {
  background: #eef3f7;
  color: #102c45;
  box-shadow: inset 0 0 0 1px rgba(16,44,69,.26);
}
.nav a[aria-current="page"],
.nav a[aria-current="location"] {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(16,44,69,.16);
}
.nav a[aria-current="page"]:hover,
.nav a[aria-current="location"]:hover {
  background: #193d59;
  color: #fff;
}
.nav a:focus-visible {
  outline: 3px solid #35a7b0;
  outline-offset: 2px;
}


/* Cultstent — brand refresh (2026-11): retain the light navy/cyan design,
   incorporate leaf/forest green from the supplied chip-and-tree identity. */
:root {
  --cult-leaf: var(--cs-color-brand, #579f29);
  --cult-forest: #07573e;
  --cult-green-soft: #eff8eb;
}
.site-header .brand { color: var(--cult-forest); }
/* Official Cultstent horizontal lockup: no surrounding sticker or duplicate wordmark. */
.site-header .brand { gap: 0; color: #102b43; }
.brand-logo {
  display: block;
  width: 156px;
  height: 40px;
  flex: 0 0 156px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* The same symbol appears subtly in the brand identification of the footer. */
.landing-footer > div:first-child > strong { display: inline-flex; align-items: center; gap: 8px; }
.landing-footer > div:first-child > strong::before,
footer:not(.landing-footer) > span:first-child::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  vertical-align: middle;
  background: url("cultstent-mark.png") center / contain no-repeat;
}
footer:not(.landing-footer) > span:first-child::before { margin-right: 7px; }
body {
  background:
    radial-gradient(circle at 6% 4%, rgba(87,159,41,.085), transparent 24rem),
    radial-gradient(circle at 94% 7%, rgba(16,44,69,.14), transparent 32rem),
    radial-gradient(circle at 52% 52%, rgba(42,111,145,.045), transparent 40rem),
    linear-gradient(180deg,#ffffff 0%,#f7fbfd 42%,#f5f8fa 100%);
}
.section-label::before { background: linear-gradient(90deg, var(--accent), var(--cult-leaf)); }
.status-dot {
  background: var(--cult-leaf);
  box-shadow: 0 0 0 4px rgba(87,159,41,.12);
}
.gradient-text {
  background: linear-gradient(100deg, #173d5e 0%, #2e698c 53%, #16734e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy::after { background: linear-gradient(90deg, var(--navy), var(--cyan) 60%, var(--cult-leaf)); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #227b76);
  box-shadow: 0 9px 22px rgba(31,79,120,.18);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-strong), #146a52); }
.service-paths {
  background:
    radial-gradient(circle at 92% 12%,rgba(87,159,41,.15),transparent 24rem),
    linear-gradient(135deg,#0d283f 0%,#123753 58%,#164a63 100%);
}
.skill-card:nth-child(4)::before,
.skill-card:nth-child(6)::before { background: var(--cult-leaf); }
.site-header .apps-launcher__button:hover,
.site-header .apps-launcher__button[aria-expanded="true"] {
  background: rgba(87,159,41,.09);
  border-color: rgba(7,87,62,.18);
}
.lang-switch:hover { border-color: rgba(87,159,41,.40); }
@media (max-width: 430px) {
  .site-header .brand-logo { width: 122px; height: 34px; flex-basis: 122px; }
}
@media (max-width: 350px) {
  .site-header .brand-logo { width: 110px; height: 31px; flex-basis: 110px; }
}


/* Cultstent navigation: unified development menu */
.nav-dropdown { position:relative; display:flex; align-items:center; }
.nav .nav-dropdown__toggle { display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;border-radius:11px;padding:10px 13px;font:inherit;font-size:.88rem;color:#4e5b68;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s; }
.nav-dropdown__toggle svg {width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s;}
.nav-dropdown.is-open .nav-dropdown__toggle svg {transform:rotate(180deg);}
.nav .nav-dropdown__toggle:hover,.nav .nav-dropdown__toggle:focus-visible,.nav-dropdown.is-open .nav-dropdown__toggle {color:var(--accent);background:#eef3f7;}
.nav-dropdown__panel {position:absolute;top:calc(100% + 9px);left:0;min-width:230px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 45px rgba(12,32,54,.16);display:none;flex-direction:column;gap:3px;z-index:1000;}
.nav-dropdown.is-open .nav-dropdown__panel {display:flex;}
.nav .nav-dropdown__panel a {display:block;padding:11px 13px;border-radius:9px;white-space:nowrap;color:#405367;font-size:.87rem;}
.nav .nav-dropdown__panel a:hover,.nav .nav-dropdown__panel a[aria-current] {background:#edf5f8;color:var(--accent);}
@media(max-width:760px){
 .nav-dropdown {display:block;width:100%;}
 .nav .nav-dropdown__toggle {min-height:46px;width:100%;justify-content:space-between;text-align:left;}
 .nav-dropdown__panel {position:static;box-shadow:none;min-width:0;width:100%;margin:2px 0 8px;padding:4px 4px 4px 12px;background:rgba(24,81,110,.035);border-radius:11px;}
 .nav .nav-dropdown__panel a {min-height:43px;display:flex;align-items:center;white-space:normal;}
}

/* Cultstent — products and client work in separate areas (ES/EN). */
.nav-dropdown.has-active-page > .nav-dropdown__toggle {
  color: var(--accent);
  background: #eef3f7;
  font-weight: 700;
}
/* A single client card should not span the whole page on wide screens. */
.client-showcase .project-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.client-showcase #fertialgas { scroll-margin-top: 112px; }
.client-outcome { padding-top: 0; }
/* With an additional navbar group, the compact navigation starts earlier to
   avoid collisions with the brand, app launcher and language switch. */
@media (max-width: 1080px) {
  .site-header .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    order: 6;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    background: rgba(255,255,255,.985);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(23,33,43,.10);
  }
  .site-header .nav.open { display: flex; }
  .site-header .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }
  .site-header .menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: #18222c;
  }
  .site-header .nav a { display: flex; align-items: center; min-height: 46px; }
  .site-header .nav-dropdown { display: block; width: 100%; }
  .site-header .nav .nav-dropdown__toggle {
    display: flex;
    min-height: 46px;
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .site-header .nav-dropdown__panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 2px 0 8px;
    padding: 4px 4px 4px 12px;
    background: rgba(24,81,110,.035);
    box-shadow: none;
  }
  .site-header .nav .nav-dropdown__panel a { white-space: normal; }
}


/* Cultstent — global navigation: uniform, accessible buttons (ES/EN).
   Preserve the existing header presence and dropdown; only equalize top-level
   navigation affordances. Aria-current remains available to assistive technology. */
.site-header {
  min-height: 74px;
  padding-block: 12px;
  background: rgba(255,255,255,.985);
  border-color: rgba(16,44,69,.17);
  box-shadow: 0 16px 42px rgba(16,44,69,.13), 0 3px 10px rgba(16,44,69,.05);
}
.site-header .nav { gap: 7px; }
.site-header .nav > a,
.site-header .nav > .nav-dropdown > .nav-dropdown__toggle,
.site-header .nav > a[aria-current="page"],
.site-header .nav > a[aria-current="location"],
.site-header .nav > .nav-dropdown.has-active-page > .nav-dropdown__toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(16,44,69,.17);
  border-radius: 11px;
  background: #f3f8fb;
  box-shadow: none;
  font: inherit;
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #243b4e;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.site-header .nav > a:hover,
.site-header .nav > a[aria-current="page"]:hover,
.site-header .nav > a[aria-current="location"]:hover,
.site-header .nav > .nav-dropdown > .nav-dropdown__toggle:hover,
.site-header .nav > .nav-dropdown.is-open > .nav-dropdown__toggle {
  background: #e6f0f6;
  border-color: rgba(16,75,109,.27);
  color: #173b56;
  box-shadow: none;
}
.site-header .nav > a:focus-visible,
.site-header .nav > .nav-dropdown > .nav-dropdown__toggle:focus-visible {
  outline: 3px solid #35a7b0;
  outline-offset: 2px;
}
.site-header .nav .nav-dropdown__panel a {
  font-size: .9rem;
  font-weight: 550;
}
.site-header .nav .nav-dropdown__panel .nav-dropdown__client-link {
  margin-top: 5px;
  padding-top: 13px;
  border-top: 1px solid #e3ebf0;
  color: #174b67;
  font-weight: 700;
}
.site-header .nav .nav-dropdown__panel .nav-dropdown__client-link:hover,
.site-header .nav .nav-dropdown__panel .nav-dropdown__client-link[aria-current] {
  color: #102c45;
  background: #edf5f8;
}
@media (max-width: 1080px) {
  .site-header { min-height: 70px; padding-block: 9px; }
  .site-header .nav { top: calc(100% + 7px); }
  .site-header .nav > a,
  .site-header .nav > a[aria-current="page"],
  .site-header .nav > a[aria-current="location"],
  .site-header .nav > .nav-dropdown > .nav-dropdown__toggle,
  .site-header .nav > .nav-dropdown.has-active-page > .nav-dropdown__toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
  }
}
@media (max-width: 430px) {
  .site-header { min-height: 64px; padding-block: 8px; }
}


/* Cultstent 2026-11 — one consistent top bar across products and content.
   Inspired by the predictable navigation of a multi-product ecosystem,
   using Cultstent's own colors, brand, language switch and app launcher. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  min-height: 72px;
  padding: 12px clamp(14px, 2.8vw, 44px);
  border: 0;
  border-bottom: 1px solid #dce5eb;
  border-radius: 0;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 2px 12px rgba(16, 44, 69, .055);
  backdrop-filter: blur(14px);
  gap: 8px;
}
.site-header .brand { min-width: 0; }
.site-header .nav { gap: 4px; }
.site-header .nav > a,
.site-header .nav > a[aria-current="page"],
.site-header .nav > a[aria-current="location"],
.site-header .nav > .nav-dropdown > .nav-dropdown__toggle,
.site-header .nav > .nav-dropdown.has-active-page > .nav-dropdown__toggle {
  min-height: 42px;
  padding: 10px 15px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  font-size: .92rem;
  font-weight: 600;
  color: #2a4558;
}
.site-header .nav > a:hover,
.site-header .nav > a[aria-current="page"]:hover,
.site-header .nav > a[aria-current="location"]:hover,
.site-header .nav > .nav-dropdown > .nav-dropdown__toggle:hover,
.site-header .nav > .nav-dropdown.is-open > .nav-dropdown__toggle {
  background: #edf5f8;
  border-color: transparent;
  color: #174b67;
}
.site-header .nav-dropdown__panel {
  top: calc(100% + 14px);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 14px 46px rgba(16,44,69,.17);
  max-height: min(70dvh, 510px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.site-header .nav .nav-dropdown__panel a { padding: 10px 14px; }
.site-header .support-shortcut {
  order: 3;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #31536a;
  background: transparent;
  transition: background .18s ease, color .18s ease;
}
.site-header .support-shortcut svg { width: 22px; height: 22px; }
.site-header .support-shortcut:hover,
.site-header .support-shortcut[aria-current="page"] {
  background: #e9f3ee;
  color: #247251;
}
.site-header .apps-launcher { order: 4; margin-left: 0; }
.site-header .apps-launcher__button {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  color: #31536a;
}
.site-header .lang-switch {
  order: 5;
  margin-left: 2px;
  min-width: 43px;
  height: 42px;
  border-radius: 999px;
  background: #edf6f9;
}
.site-header .menu-toggle { order: 6; }
.site-header .support-shortcut:focus-visible,
.site-header .apps-launcher__button:focus-visible,
.site-header .lang-switch:focus-visible {
  outline: 3px solid #35a7b0;
  outline-offset: 2px;
}
.apps-launcher__panel {
  top: calc(100% + 13px);
  right: -65px;
  border-radius: 24px;
  background: #f9fbfc;
  box-shadow: 0 18px 56px rgba(16,44,69,.19);
}
.footer-support-link { color: #285f70; text-decoration: none; font-weight: 600; }
.footer-support-link:hover { text-decoration: underline; }
footer:not(.landing-footer) .footer-support-link { margin-left: 16px; }
@media (max-width: 1080px) {
  .site-header { min-height: 68px; padding-block: 9px; }
  .site-header .nav { top: calc(100% + 8px); order: 7; }
  .site-header .nav > a,
  .site-header .nav > a[aria-current="page"],
  .site-header .nav > a[aria-current="location"],
  .site-header .nav > .nav-dropdown > .nav-dropdown__toggle,
  .site-header .nav > .nav-dropdown.has-active-page > .nav-dropdown__toggle {
    min-height: 46px;
    padding: 12px 15px;
    justify-content: space-between;
    width: 100%;
    border-radius: 12px;
    background: #f4f8fb;
  }
  .site-header .nav-dropdown__panel {
    margin-top: 4px;
    border-radius: 12px;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 550px) {
  .site-header { padding: 8px 12px; gap: 3px; min-height: 60px; }
  .site-header .support-shortcut,
  .site-header .apps-launcher__button { width: 36px; height: 36px; }
  .site-header .support-shortcut svg { width: 19px; height: 19px; }
  .site-header .apps-launcher { margin-left: 0; }
  .site-header .lang-switch { height: 36px; min-width: 36px; padding-inline: 7px; margin-left: 0; }
  .site-header .menu-toggle { min-width: 36px; width: 36px; min-height: 36px; margin: 0; }
  .site-header .brand-logo { max-width: min(122px, 30vw); height: auto; }
  .apps-launcher__panel { top: calc(100% + 12px); right: -58px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 7px; gap: 1px; }
  .site-header .brand-logo { max-width: 98px; }
  .site-header .support-shortcut,
  .site-header .apps-launcher__button,
  .site-header .menu-toggle { width: 34px; min-width: 34px; }
  .site-header .lang-switch { min-width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .support-shortcut { transition: none; }
}

/* Donations moved to the corporate site: informative, not a payment form. */
.support-main { min-height: 70vh; padding-top: 125px; }
.support-intro { width: min(950px, calc(100% - 36px)); margin: 0 auto; padding: 62px 0 35px; }
.support-intro h1 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.055em; line-height: 1.12; color: #17212b; margin: 22px 0; }
.support-intro p { font-size: clamp(1rem, 1.5vw, 1.18rem); color: #576b7b; max-width: 730px; line-height: 1.8; }
.support-grid { width: min(950px, calc(100% - 36px)); margin: 0 auto 95px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.support-panel { background: #fff; border: 1px solid #dae6e8; border-radius: 24px; padding: clamp(24px, 3vw, 38px); box-shadow: 0 12px 36px rgba(16,44,69,.06); }
.support-panel h2 { font-size: clamp(1.35rem,2vw,1.9rem); color: #142b40; margin: 0 0 12px; letter-spacing: -.025em; }
.support-panel p, .support-panel li { color: #5c6c7b; line-height: 1.7; }
.support-panel ul { margin: 12px 0 0; padding-left: 20px; }
.support-action { display: inline-flex; align-items:center; min-height: 47px; padding: 10px 22px; border-radius: 99px; margin-top: 16px; background: #174663; color: #fff; font-weight: 700; }
.support-action:hover { background: #246a82; color: #fff; }
.support-note { font-size: .89rem; }
@media (max-width: 700px) {
  .support-main { padding-top: 88px; }
  .support-intro { padding-top: 43px; }
  .support-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 65px; }
}
/* Keep compact navigation panels opaque over page headings. */
@media (max-width: 1080px) {
  .site-header .nav { background: #ffffff; }
  .site-header .nav-dropdown__panel {
    background: #f5f8fb;
    border-color: #e3eaf0;
  }
}
footer:not(.landing-footer) { flex-wrap: wrap; gap: 10px 22px; }


/* Cultstent — consistent content start below the shared 72px / 60px navbar.
   These adjustments affect only the first hero of each page family, preserving
   the spacing of later sections and the established responsive layout. */
:root { --cult-page-content-gap: 48px; }
main > .hero.section {
  min-height: 0;
  padding-top: calc(72px + var(--cult-page-content-gap));
}
main > .hero.section .hero-copy,
.landing-hero.section .landing-copy,
.blog-hero-inner > :first-child,
.article-hero-inner > :first-child { align-self: start; }
.landing-hero.section {
  min-height: 0;
  padding-top: var(--cult-page-content-gap);
}
.blog-hero-inner,
.article-hero-inner {
  min-height: 0;
  padding-top: var(--cult-page-content-gap);
}
.support-main { padding-top: 72px; }
.support-intro { padding-top: var(--cult-page-content-gap); }

/* Every launcher tile uses the same grid cell dimensions. */
.apps-launcher__items { grid-auto-rows: 1fr; }
.apps-launcher__item--support .apps-launcher__app-icon {
  background: #e9f3ee;
  color: #247251;
}

@media (max-width: 760px) {
  :root { --cult-page-content-gap: 40px; }
  main > .hero.section { padding-top: calc(60px + var(--cult-page-content-gap)); }
  .landing-main,
  .blog-main,
  .article-main,
  .support-main { padding-top: 60px; }
  .landing-hero.section,
  .blog-hero-inner,
  .article-hero-inner,
  .support-intro { padding-top: var(--cult-page-content-gap); }
}


/* Scoped donation model adapted from the original Protector Digital page. */
.support-main--donations {padding-bottom: clamp(56px, 7vw, 90px);}
.pd-donation-layout { width:min(1180px,calc(100% - 48px)); margin:clamp(28px,4vw,56px) auto 0; display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items:start; gap:clamp(28px,5vw,70px); }
.pd-donation-story { padding-top:28px; }
.pd-donation-story .eyebrow { font-size:.78rem; font-weight:800; letter-spacing:.12em; color:#508c3c; }
.pd-donation-story h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); font-size:clamp(2rem,3.3vw,2.75rem); line-height:1.16; letter-spacing:-.045em; color:#142b40; margin:16px 0 20px; }
.pd-donation-story p { color:#5d7180; font-size:1rem; line-height:1.8; }
.pd-donation-card { padding:clamp(20px,3vw,34px); border-radius:22px; border:1px solid #dce7ee; background:#fff; box-shadow:0 16px 50px rgba(16,44,69,.07); min-width:0; }
.pd-donation-card h2 { font-family: var(--cs-font-family, "Space Grotesk", sans-serif); color:#142b40; font-size:clamp(1.45rem,2.2vw,1.8rem); margin:0 0 20px; }
.pd-donation-field { display:flex; flex-direction:column; gap:8px; margin:18px 0; }
.pd-donation-field label { font-size:.87rem; font-weight:750; color:#2f4a5d; }
.pd-donation-field input,.pd-donation-field select { width:100%; min-width:0; height:46px; border:1px solid #cfdae4; border-radius:11px; padding:10px 13px; font:inherit; color:#18354a; background:#fbfdff; }
.pd-donation-field :is(input,select):focus-visible,.pd-donation-check input:focus-visible,.pd-donation-button:focus-visible { outline:3px solid rgba(29,126,169,.32); outline-offset:2px; }
.pd-donation-field input:disabled { background:#eef3f5; color:#72828b; }
.pd-donation-check { display:flex; gap:11px; align-items:center; font-size:.88rem; font-weight:620; color:#41596c; cursor:pointer; }
.pd-donation-check input { accent-color:#236b8e; width:17px; height:17px; }
.pd-donation-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0 12px; }
.pd-donation-method { display:flex; flex-direction:column; min-width:0; border:1px solid #dce7ee; border-radius:15px; padding:18px 16px; background:#fcfefe; }
.pd-donation-method strong {color:#17364b; font-size:1rem;}
.pd-donation-method p { color:#657c8e; font-size:.83rem; line-height:1.5; margin:7px 0 12px; }
.pd-donation-bitcoin { width:66px; height:66px; object-fit:contain; margin:auto 0 14px; }
.pd-donation-button { width:100%; padding:11px 8px; background:#eef6f9; color:#174867; border:1px solid #bdd4e0; font:inherit; font-size:.77rem; font-weight:700; border-radius:10px; margin-top:auto; cursor:pointer; transition:background .18s,border-color .18s; }
.pd-donation-button:hover {background:#dcedf4;border-color:#8ab8cd;}
.pd-donation-disclaimer { margin:15px 0 0; font-size:.79rem; line-height:1.65; color:#667b8d; }
@media(max-width:790px) { .pd-donation-layout {grid-template-columns:1fr;gap:20px; width:calc(100% - 32px);} .pd-donation-story {padding-top:0;} }
@media(max-width:460px) { .pd-donation-layout {width:calc(100% - 24px);} .pd-donation-card {padding:18px;} .pd-donation-methods {grid-template-columns:1fr;} }
@media(prefers-reduced-motion:reduce){ .pd-donation-button {transition:none;} }

/* Corporate footer: shared layout for the Spanish and English sites. */
.landing-footer.corporate-footer { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.15fr); align-items: start; gap: 24px; }
.corporate-footer > div { min-width: 0; overflow-wrap: anywhere; }
.corporate-footer .footer-links, .corporate-footer__group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.corporate-footer__group > strong { color: var(--accent); }
.corporate-footer a:hover { text-decoration: underline; }
.corporate-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.corporate-footer__copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 900px) { .landing-footer.corporate-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .landing-footer.corporate-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* White offline fallback; the mounted footer is styled by Cultstent UI. */
.landing-footer.corporate-footer { width:100%; max-width:none; margin:0; padding:clamp(28px,5vw,56px) max(20px,calc((100% - 1144px)/2)) 22px; background:#fff; color:#43576a; border-top:1px solid #dce6ed; }
.landing-footer.corporate-footer a { color:#43576a; }
.landing-footer.corporate-footer strong { color:#18314b; }
.landing-footer.corporate-footer .footer-support-link { color:#285f70; }

/* Cultstent UI shell geometry — local fallback when the shared service is unavailable. */
:root {
  --cs-local-header-height: 4.5rem;
  --cs-local-footer-meta-row: 3.5rem;
}
@media (max-width:900px) { :root { --cs-local-header-height:3.75rem; --cs-local-footer-meta-row:4.5rem; } }
@media (max-width:520px) { :root { --cs-local-footer-meta-row:5.5rem; } }

header.site-header { box-sizing:border-box; height:var(--cs-header-height,var(--cs-local-header-height)); min-height:0; padding-block:0; }
main > .hero.section { padding-top:calc(var(--cs-header-height,var(--cs-local-header-height)) + var(--cult-page-content-gap)); }
:is(.landing-main,.blog-main,.article-main,.support-main) { padding-top:var(--cs-header-height,var(--cs-local-header-height)); }
.landing-footer.corporate-footer {
  box-sizing:border-box; font-size:.875rem; line-height:1.5;
  padding:var(--cs-footer-top,1.75rem) max(var(--cs-gutter,clamp(16px,3vw,26px)),calc((100% - 1180px)/2)) var(--cs-footer-bottom,1.25rem);
  grid-template-rows:var(--cs-footer-main-row,15.5rem) var(--cs-footer-meta-row,var(--cs-local-footer-meta-row));
  row-gap:var(--cs-footer-row-gap,1.25rem); align-items:stretch;
}
.landing-footer.corporate-footer > div { min-height:0; overflow:auto; padding:4px; }
.landing-footer.corporate-footer > div:not(.corporate-footer__copyright) { gap:6px; }
.landing-footer.corporate-footer .corporate-footer__copyright { font-size:.75rem; padding:12px 4px 4px; }
@media(max-width:900px) {
  .landing-footer.corporate-footer { grid-template-rows:var(--cs-footer-main-row,15.5rem) var(--cs-footer-contact-row,8rem) var(--cs-footer-meta-row,var(--cs-local-footer-meta-row)); }
}
@media(max-width:520px) {
  .landing-footer.corporate-footer { grid-template-rows:var(--cs-footer-brand-row,8rem) var(--cs-footer-main-row,15.5rem) var(--cs-footer-resources-row,6rem) var(--cs-footer-contact-row,8rem) var(--cs-footer-meta-row,var(--cs-local-footer-meta-row)); }
}
