/* Shared styles for service, profile and insight pages */
.content-hero {
  position: relative;
  padding: 158px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 58px 58px;
}

.content-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: end;
}

.content-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 610;
}

.content-lede {
  max-width: 760px;
  margin: 1.7rem 0 0;
  color: #b5c0ca;
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
  line-height: 1.78;
}

.content-aside {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}

.content-aside span,
.meta-label {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .66rem;
  font-weight: 700;
}

.content-aside strong {
  display: block;
  margin-top: .45rem;
  font-size: 1.03rem;
  line-height: 1.45;
}

.content-aside p {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.breadcrumbs {
  margin: 0 0 1.4rem;
  color: #778491;
  font-size: .76rem;
}

.breadcrumbs a:hover { color: var(--text); }

.content-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.content-grid h2,
.content-wide h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 590;
}

.prose {
  max-width: 780px;
}

.prose p {
  margin: 0 0 1.35rem;
  color: #b0bbc5;
  font-size: 1.02rem;
  line-height: 1.85;
}

.prose h3 {
  margin: 2.4rem 0 .7rem;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.prose ul {
  margin: 0 0 1.6rem;
  padding-left: 1.2rem;
  color: #b0bbc5;
}

.prose li { margin: .48rem 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

.service-grid,
.link-grid,
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}

.service-card,
.link-card,
.home-service-card {
  min-height: 100%;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: transform .2s ease, border-color .2s ease;
}

.link-card,
.home-service-card { display: block; }
.link-card:hover,
.home-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142,246,199,.28);
}

.service-card h3,
.link-card h3,
.home-service-card h3 {
  margin: 0 0 .7rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.service-card p,
.link-card p,
.home-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.link-card .link-arrow,
.home-service-card .link-arrow {
  display: block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: .78rem;
}

.content-cta {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(142,246,199,.06), rgba(143,198,255,.025));
}

.content-cta-inner {
  max-width: 850px;
}

.content-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.05em;
  font-weight: 590;
}

.content-cta p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.content-cta .hero-actions { margin-top: 1.6rem; }

.insight-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.insight-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.018);
}

.insight-card:hover { border-color: var(--line-strong); }
.insight-card small { color: #71808c; }
.insight-card h2,
.insight-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.insight-card p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.insight-card > span { color: var(--accent); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.article-meta {
  position: sticky;
  top: 108px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.article-meta p {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.article-body h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  margin: 2rem 0 .7rem;
  font-size: 1.25rem;
}
.article-body p,
.article-body li {
  color: #b0bbc5;
  font-size: 1.02rem;
  line-height: 1.85;
}
.article-body p { margin: 0 0 1.3rem; }
.article-body ul,
.article-body ol { padding-left: 1.3rem; }
.article-body li { margin: .5rem 0; }
.article-body strong { color: var(--text); }
.article-body code {
  padding: .12rem .3rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.035);
  color: #d7e3e8;
}

.home-focus {
  display: grid;
  gap: .8rem;
  padding: .25rem 0;
}
.home-focus-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.home-focus-row strong { font-size: .92rem; }
.home-focus-row span { color: var(--accent); font-size: .72rem; }
.home-focus-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
}

.home-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.home-project {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
}
.home-project:hover { border-color: var(--line-strong); }
.home-project small { color: var(--accent); text-transform: uppercase; letter-spacing: .11em; }
.home-project h3 { margin: .55rem 0; font-size: 1.35rem; }
.home-project p { margin: 0; color: var(--muted); }

.page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 900px) {
  .content-hero-grid,
  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .link-grid,
  .home-service-grid { grid-template-columns: 1fr; }
  .article-meta { position: static; }
}

@media (max-width: 700px) {
  .content-hero { padding-top: 128px; }
  .insight-card { grid-template-columns: 1fr auto; }
  .insight-card small { grid-column: 1 / -1; }
  .insight-card p { grid-column: 1 / -1; }
  .home-projects { grid-template-columns: 1fr; }
  .page-footer-nav { display: none; }
}
