/* Inner pages: project case studies and service pages */

.page-hero {
  padding-block: clamp(120px, 15vw, 176px) clamp(48px, 7vw, 80px);
  background:
    radial-gradient(60% 90% at 0 0, #04193a 0, transparent 72%),
    linear-gradient(180deg, #020c1c, var(--bg));
}
.breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: .95rem; }
.breadcrumb a { text-decoration: underline; text-decoration-color: #3a5170; text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { max-width: 900px; margin-top: 10px; font-size: clamp(2.45rem, 5.6vw, 4.5rem); }
.lead { max-width: 720px; margin-top: 20px; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-section { padding-block: clamp(56px, 8vw, 96px); }
.page-section + .page-section { border-top: 1px solid var(--line); }
.page-section .section-head { margin-bottom: clamp(32px, 5vw, 52px); }

/* Project pages */
.cover { margin-top: clamp(4px, 1vw, 12px); }
.frame-static { box-shadow: 0 30px 70px rgb(0 0 0 / .45); }
.frame-static:hover { transform: none; border-color: var(--line); }

.impact-head, .impact-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 5vw, 64px);
}
.impact-head {
  padding-bottom: 12px; border-bottom: 1px solid #2d4364;
  color: var(--accent); font: 500 .8125rem/1.5 var(--mono);
}
.impact-row { padding-block: clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--line); }
.impact-row h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
.impact-row h3 + p { margin-top: 8px; color: var(--muted); }
.cell-label { display: none; margin-bottom: 4px; color: var(--accent); font: 500 .75rem/1.5 var(--mono); }

.seo-why {
  margin-bottom: clamp(28px, 4vw, 40px); padding: clamp(22px, 3vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px;
}
.seo-why h3 { font-size: 1.2rem; }
.seo-why p { margin-top: 8px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.info-card h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.info-card p { color: var(--muted); }
.info-card ul { display: grid; gap: 7px; margin-top: 6px; color: var(--muted); }
.info-card li { position: relative; padding-left: 18px; }
.info-card li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.benefit { margin-top: auto; padding-top: 10px; color: var(--text) !important; }
.benefit b { color: var(--accent); font-weight: 600; }

.design-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.design-copy > p { color: var(--muted); }
.design-copy > p + p { margin-top: 14px; }
.subhead { margin: 28px 0 12px; color: var(--accent); font: 500 .8125rem/1.5 var(--mono); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.swatch i { width: 30px; height: 30px; border-radius: 7px; border: 1px solid rgb(255 255 255 / .16); }
.swatch span { font-size: .875rem; line-height: 1.25; }
.swatch code { display: block; color: var(--muted); font: 400 .72rem/1.3 var(--mono); }
.design-notes { display: grid; gap: 14px; margin-top: 4px; }
.design-notes b { display: block; font-weight: 600; }
.design-notes span { color: var(--muted); }
.phone {
  margin: 0; overflow: hidden; max-width: 280px; justify-self: center;
  background: var(--surface); border: 1px solid #2d4364; border-radius: 26px; padding: 7px;
  box-shadow: 0 24px 60px rgb(0 0 0 / .45);
}
.phone img { width: 100%; border-radius: 20px; }
.figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 52px); align-items: start; }
figure { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }

.next-project {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 30px; color: var(--muted);
}
.next-project a { color: var(--text); font: 620 clamp(1.2rem, 2.2vw, 1.6rem)/1.2 var(--display); text-decoration: none; }
.next-project a:hover { color: var(--accent); }

/* Service pages */
.price-panel {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin-top: 26px; padding: 14px 20px;
  background: var(--surface); border: 1px solid #2d4364; border-radius: 12px;
}
.price-panel strong { font: 650 clamp(1.9rem, 4vw, 2.75rem)/1.1 var(--display); letter-spacing: -.02em; }
.price-panel span { color: var(--muted); }
.price-panel em { color: var(--accent); font-style: normal; font-weight: 500; }
.badge {
  align-self: flex-start;
  padding: 2px 9px; border-radius: 6px;
  background: rgb(92 225 245 / .12); color: var(--accent);
  font: 500 .72rem/1.7 var(--mono);
}
.badge.ask { background: rgb(224 200 154 / .13); color: #e6cfa3; }
.note { max-width: 760px; margin-top: 22px; color: var(--muted); }
.other-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.other-services a {
  display: block; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.other-services a:hover { border-color: var(--accent); transform: translateY(-2px); }
.other-services b { display: block; font: 620 1.15rem/1.25 var(--display); }
.other-services span { color: var(--muted); font-size: .95rem; }

/* Guide page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a {
  padding: 7px 14px; border: 1px solid #2d4364; border-radius: 999px;
  color: var(--muted); font-size: .95rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.toc a:hover { border-color: var(--accent); color: var(--text); }
[id] { scroll-margin-top: 88px; }
.nav-links a[aria-current="page"] { color: var(--text); }
.card-grid + .seo-why { margin: 16px 0 0; }
.card-link { margin-top: auto; padding-top: 6px; }
.card-link a { color: var(--accent); text-underline-offset: 3px; }
.steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative; counter-increment: step;
  padding: 20px 24px 20px 76px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 24px; top: 20px;
  color: var(--accent); font: 500 1rem/1.6 var(--mono);
}
.steps h3 { font-size: clamp(1.15rem, 1.7vw, 1.3rem); }
.steps p { margin-top: 4px; color: var(--muted); }

/* Blog */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 22px; color: var(--muted); font: 400 .85rem/1.6 var(--mono); }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(200px, 260px); justify-content: space-between; gap: 64px; align-items: start; }
.post-aside { position: sticky; top: 96px; }
.post-toc .subhead { margin-top: 0; }
.post-toc ol { display: grid; gap: 8px; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.post-toc a { text-decoration: none; }
.post-toc a:hover { color: var(--text); }
.prose { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; color: var(--text); font-size: clamp(1.6rem, 3vw, 2.15rem); }
.prose h3 { margin-top: 32px; color: var(--text); font-size: clamp(1.2rem, 2vw, 1.4rem); }
.prose h2 + p, .prose h3 + p { margin-top: 10px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgb(92 225 245 / .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.other-services.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, transform .2s var(--ease);
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .post-meta { margin-top: 0; }
.post-card h2 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.2; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--muted); }
.post-more { margin-top: auto; color: var(--accent); font-weight: 500; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { display: none; }
  .post-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .other-services.two,
  .card-grid, .card-grid.two, .other-services, .figure-pair, .design-grid { grid-template-columns: minmax(0, 1fr); }
  .impact-head { display: none; }
  .impact-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .impact-row:first-of-type { border-top: 1px solid var(--line); }
  .cell-label { display: block; }
}
