/* systeam.es — Francisco Cerdà Puigserver
 * Editorial consultancy theme, mobile-first, accessible. */

:root {
  --bg: #f2f0eb;
  --bg-soft: #e6ebe9;
  --bg-elev: #fafaf8;
  --bg-panel: rgba(250, 250, 248, 0.84);
  --bg-deep: #151b1f;
  --fg: #11181c;
  --fg-dim: #41505a;
  --fg-mute: #67737c;
  --accent: #2f5563;
  --accent-strong: #213f4b;
  --accent-soft: #d5e1e5;
  --accent-wash: rgba(47, 85, 99, 0.14);
  --cool-wash: rgba(108, 123, 141, 0.14);
  --border: rgba(28, 40, 48, 0.12);
  --border-strong: rgba(28, 40, 48, 0.22);
  --shadow: 0 24px 70px -38px rgba(17, 27, 33, 0.28);
  --shadow-soft: 0 18px 45px -36px rgba(17, 27, 33, 0.22);
  --max: 1180px;
  --pad: clamp(1.2rem, 4vw, 2.4rem);
  --radius: 18px;
  --radius-lg: 28px;
  --fs-hero: clamp(2rem, 5.5vw, 5.1rem);
  --fs-h2: clamp(1.6rem, 3.8vw, 3rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.55rem);
  --fs-body: 1.04rem;
  --lh: 1.7;
  --ff-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-display: "Fraunces", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, var(--accent-wash) 0%, transparent 30%),
    radial-gradient(circle at top right, var(--cool-wash) 0%, transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 22%),
    var(--bg);
  color: var(--fg);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
a:hover { color: var(--accent-strong); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.sr {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 235, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  background: linear-gradient(145deg, #527887 0%, var(--accent) 62%, #1d353f 100%);
  box-shadow: 0 14px 24px -18px rgba(47, 85, 99, 0.65);
}

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

.nav-links a {
  color: var(--fg-dim);
  font-size: .95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary.active {
  color: #fff;
}

.nav-lang {
  display: flex;
  gap: .25rem;
  padding: .15rem;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.42);
}

.nav-lang a {
  padding: .42rem .68rem;
  border-radius: 10px;
  color: var(--fg-mute);
  font-size: .84rem;
  font-weight: 700;
}

.nav-lang a.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--fg);
  box-shadow: 0 8px 18px -16px rgba(17, 27, 33, 0.24);
}

.nav-toggle {
  display: none;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .98rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #4a7080 0%, var(--accent) 56%, var(--accent-strong) 100%);
  box-shadow: 0 18px 30px -22px rgba(33, 63, 75, 0.72);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -22px rgba(33, 63, 75, 0.82);
}

.btn-ghost {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.46);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.btn-nav {
  padding: .62rem 1.05rem;
  font-size: .89rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.2rem, 6vw, 5.4rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 18%, rgba(77, 114, 128, 0.24) 0%, transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(108, 123, 141, 0.16) 0%, transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.26) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: .8;
}

.hero-compact {
  padding: clamp(2.8rem, 5vw, 4.4rem) 0 clamp(2.2rem, 4vw, 3.2rem);
}

.hero-grid,
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.3rem);
  align-items: center;
}

.hero-copy,
.hero-shell > div:first-child {
  position: relative;
  z-index: 1;
}

.hero-copy > *,
.hero-shell > div:first-child > * {
  animation: rise .6s both;
}

.hero-copy > *:nth-child(2),
.hero-shell > div:first-child > *:nth-child(2) { animation-delay: .05s; }
.hero-copy > *:nth-child(3),
.hero-shell > div:first-child > *:nth-child(3) { animation-delay: .1s; }
.hero-copy > *:nth-child(4),
.hero-shell > div:first-child > *:nth-child(4) { animation-delay: .15s; }

.hero-panel,
.hero-photo {
  animation: rise .7s .08s both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .46rem .92rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--fg-dim);
  font-size: .82rem;
  font-weight: 700;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

h1.hero-title {
  margin: 1.25rem 0 1rem;
  color: var(--fg);
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 500;
}

.hero-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  max-width: 37ch;
  margin: 0 0 1.8rem;
  color: var(--fg-dim);
  font-size: clamp(1.06rem, 1.75vw, 1.28rem);
  line-height: 1.58;
}

.hero-note {
  margin-top: 1.2rem;
  color: var(--fg-mute);
  font-size: .92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .85rem;
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.panel-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel h3 {
  margin: 0 0 .7rem;
  font-family: var(--ff-display);
  font-size: 1.45rem;
  letter-spacing: -.02em;
  font-weight: 500;
}

.hero-panel p {
  margin: 0 0 1rem;
  color: var(--fg-dim);
}

.glance-list,
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.glance-list li,
.checklist li {
  position: relative;
  padding: .9rem 0 .9rem 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
}

.glance-list li::before,
.checklist li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: 1.28rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.glance-note {
  margin-top: 1rem;
  color: var(--fg-mute);
  font-size: .9rem;
}

.hero-photo {
  position: relative;
  aspect-ratio: 0.92;
  max-width: 430px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 32px 70px -38px rgba(17, 27, 33, 0.42);
  background: linear-gradient(180deg, rgba(21, 27, 31, 0.04), rgba(21, 27, 31, 0.18));
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(21, 27, 31, 0.24));
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
}

.proofs > span:first-child,
.proofs span:last-child {
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.proofs strong {
  color: var(--fg);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.proof-link {
  color: var(--fg);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.proof-link:hover {
  color: var(--accent-strong);
}

/* Sections */
section { padding: clamp(3.6rem, 7vw, 6.3rem) 0; }

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head .eyebrow { margin-bottom: 1rem; }

.section-head h2,
.cta-banner h2 {
  margin: 0 0 .75rem;
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 500;
}

.section-head p,
.cta-banner p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 1.08rem;
}

/* Shared cards and grids */
.services-grid,
.featured-writing,
.value-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card,
.value-card,
.contact-card,
.timeline-step {
  display: flex;
  flex-direction: column;
  padding: 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease);
}

.service-card:hover,
.value-card:hover,
.contact-card:hover,
.timeline-step:hover,
.featured-post:hover,
.problem-card:hover,
.method-step:hover,
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 85, 99, 0.28);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.78);
}

.card-icon,
.method-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(213, 225, 229, 0.84));
  border: 1px solid rgba(47, 85, 99, 0.18);
}

.card-icon svg,
.method-icon svg { width: 25px; height: 25px; }

.num,
.principle-num {
  display: inline-flex;
  margin-bottom: .7rem;
  color: var(--fg-mute);
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .08em;
}

.service-card h3,
.value-card h3,
.contact-card h3,
.case h3,
.timeline-step h3,
.featured-post h3,
.principle h3 {
  margin: 0 0 .6rem;
  color: var(--fg);
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 500;
}

.service-card p,
.value-card p,
.case p,
.timeline-step p,
.featured-post p,
.principle p,
.contact-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: .96rem;
}

.more,
.read-more {
  margin-top: 1rem;
  color: var(--accent-strong);
  font-size: .9rem;
  font-weight: 800;
}

.more::after,
.read-more::after {
  content: " →";
  display: inline-block;
  transition: transform .2s var(--ease);
}

.service-card:hover .more::after,
.featured-post:hover .read-more::after,
.blog-post:hover .read-more::after {
  transform: translateX(4px);
}

/* Responsive media queries moved to end of file for correct cascade order */

/* Stats */
.stats-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(47, 85, 99, 0.11) 0%, transparent 30%),
    radial-gradient(circle at 86% 45%, rgba(108, 123, 141, 0.1) 0%, transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16)),
    #dde5e6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat {
  padding: 1.4rem 1.2rem;
  border: 1px solid rgba(28, 40, 48, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.stat-value {
  margin-bottom: .35rem;
  color: var(--accent-strong);
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 500;
}

.stat-label {
  color: var(--fg-dim);
  font-size: .92rem;
  line-height: 1.45;
}

/* Specific home sections */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.problem-card {
  padding: 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
}

.problem-card svg {
  width: 22px;
  height: 22px;
  margin-bottom: .95rem;
  color: var(--accent);
}

.problem-card p {
  color: var(--fg);
  font-style: italic;
  line-height: 1.55;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.method-step {
  padding: 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-soft);
}

.method-step h4 {
  margin: 0 0 .55rem;
  font-family: var(--ff-display);
  font-size: 1.22rem;
  letter-spacing: -.02em;
  font-weight: 500;
}

.method-step p {
  margin: 0;
  color: var(--fg-dim);
  font-size: .94rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.2rem;
}

.principle {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.case {
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}

.case-tag {
  display: inline-flex;
  margin-bottom: .7rem;
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-size: .9rem;
  font-weight: 800;
}

.case-link::after {
  content: " ↗";
}

.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.sector-chip {
  padding: .62rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.52);
  color: var(--fg-dim);
  font-size: .88rem;
  font-weight: 700;
}

.featured-post {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease);
}

.featured-post .tag {
  color: var(--fg-mute);
  font-family: var(--ff-mono);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Content pages */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr);
  gap: 2rem;
  align-items: start;
}

.prose {
  max-width: 72ch;
  margin: 0 auto;
}

.prose h1 {
  margin: 0 0 1rem;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 500;
}

.prose h2 {
  margin: 2.8rem 0 1rem;
  font-family: var(--ff-display);
  font-size: 1.82rem;
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 500;
}

.prose h3 {
  margin: 2rem 0 .8rem;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 500;
}

.prose p,
.prose li {
  color: var(--fg-dim);
  font-size: 1.08rem;
  line-height: 1.8;
}

.prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose .meta,
.blog-post .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  color: var(--fg-mute);
  font-size: .83rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.3rem;
  border-left: 3px solid var(--accent);
  color: var(--fg);
  font-style: italic;
}

.prose code {
  padding: .16rem .45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  font-family: var(--ff-mono);
  font-size: .92em;
}

.prose pre {
  padding: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.about-block {
  margin: 2.8rem 0;
}

.about-block h2 {
  margin: 0 0 1.3rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent-strong);
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-post {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-post.has-image {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.blog-post-img {
  display: block;
  border-radius: .75rem;
  overflow: hidden;
}

.blog-post-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: .75rem;
  transition: transform .3s;
}

.blog-post-img:hover img {
  transform: scale(1.03);
}

.blog-cover {
  display: block;
  max-width: 720px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: .75rem;
}

@media (max-width: 700px) {
  .blog-post.has-image {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .blog-post-img img {
    height: 200px;
  }
}

.blog-post:last-child { border-bottom: 0; }

.blog-post h2 {
  margin: .7rem 0 .65rem;
  font-family: var(--ff-display);
  font-size: 1.88rem;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 500;
}

.blog-post p { margin: 0; color: var(--fg-dim); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 800;
}

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

.faq summary::after {
  content: "+";
  color: var(--fg-mute);
  font-size: 1.4rem;
  transition: transform .2s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: .9rem 0 0;
  color: var(--fg-dim);
}

/* CTA and utility cards */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 85, 99, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(108, 123, 141, 0.12) 0%, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-banner p {
  max-width: 56ch;
  margin: 0 auto 1.8rem;
}

.contact-link {
  color: var(--accent-strong);
  font-size: 1.18rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-step span {
  display: inline-flex;
  margin-bottom: .65rem;
  color: var(--fg-mute);
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .08em;
}

.note-block {
  padding: 1.2rem 1.3rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--fg-dim);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    var(--bg-soft);
  color: var(--fg-dim);
  font-size: .93rem;
}

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

.footer-col h5 {
  margin: 0 0 .9rem;
  color: var(--fg);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: .25rem 0;
  color: var(--fg-dim);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
  font-size: .85rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(74, 112, 128, 0.16), transparent 42%),
    rgba(16, 22, 26, 0.94);
  color: #f3f7f7;
  box-shadow: 0 30px 70px -34px rgba(10, 16, 19, 0.7);
}

.cookie-banner__copy strong {
  display: block;
  margin-bottom: .25rem;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.cookie-banner__copy p {
  margin: 0;
  color: rgba(243, 247, 247, 0.78);
  font-size: .92rem;
}

.cookie-banner__copy a {
  color: #d9e8ed;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: flex-end;
}

.cookie-banner .btn {
  min-height: 46px;
  padding: .82rem 1.15rem;
}

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f7f7;
}

.cookie-banner .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}

/* Image integration — logos, section visuals, hero background */
.proof-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: .3rem;
  opacity: .85;
}

.case-logo {
  display: block;
  max-width: 140px;
  height: auto;
  margin-bottom: .7rem;
}

.service-card--visual {
  overflow: hidden;
}

.card-visual {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 1rem;
}

.hero-bg-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  z-index: 0;
  border-radius: inherit;
}

.hero-photo img:not(.hero-bg-visual) {
  position: relative;
  z-index: 1;
}

/* Responsive breakpoints — must come after all base rules for correct cascade */
@media (max-width: 960px) {
  .hero-grid,
  .hero-shell,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-photo {
    max-width: none;
    margin-left: 0;
  }

  .services-grid,
  .featured-writing,
  .value-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% - 1px);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(250, 250, 248, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.open .nav-links .btn-nav { width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services-grid,
  .featured-writing,
  .value-grid,
  .contact-grid,
  .stats-grid,
  .problems-grid,
  .method-steps,
  .cases,
  .principles,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1.hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.06;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    padding: 1rem;
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
    border-radius: 16px;
  }

  .cookie-banner__copy strong {
    font-size: .85rem;
  }

  .cookie-banner__copy p {
    font-size: .8rem;
    line-height: 1.4;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    min-height: 42px;
    padding: .7rem .8rem;
    font-size: .82rem;
  }
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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