/* Shared components for standalone pages (About, Services, Contact). Builds on the tokens and
   header/footer/hero rules already defined in blog-article.css. */

.page-lede {
  max-width: 760px;
  margin: 0 0 clamp(50px, 8vw, 90px);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.page-section {
  margin-top: clamp(80px, 10vw, 130px);
}

.page-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.page-section-head h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.page-section-head p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- About: bio ---- */

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.bio-portrait {
  overflow: hidden;
  border-radius: 26px;
  background: var(--panel);
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-copy p {
  margin: 0 0 20px;
  color: #464646;
  font-size: 17px;
  line-height: 1.8;
}

.bio-copy p:first-child {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.bio-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.bio-fact span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bio-fact strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* ---- About: values ---- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.value-card {
  padding: clamp(26px, 3vw, 34px);
  background: var(--paper);
}

.value-index {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  -webkit-text-stroke: 1px var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---- About: skills ---- */

.skill-bars {
  display: grid;
  gap: 22px;
  max-width: 640px;
}

.skill-bar-row {
  display: grid;
  grid-template-columns: 168px 1fr 46px;
  align-items: center;
  gap: 18px;
}

.skill-bar-name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.skill-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--panel);
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

.skill-bar-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* ---- About: experience timeline ---- */

.timeline {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 24px 1fr;
  gap: 4px 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child { border-bottom: 1px solid var(--line); }

.timeline-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--ink);
  content: "";
}

.timeline-role { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.timeline-company { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Services: grid ---- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-tile {
  padding: clamp(28px, 3.4vw, 36px);
  border: 1px solid var(--ink);
  border-radius: 26px;
  background: var(--panel);
  transition: transform 220ms ease, background 220ms ease;
}

.service-tile:hover { transform: translateY(-6px); }
.service-tile:nth-child(3n+1) { background: var(--accent); }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-tile h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.service-tile p {
  margin: 0 0 16px;
  color: #464646;
  font-size: 14.5px;
  line-height: 1.7;
}

.service-tile ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-tile li {
  padding-left: 18px;
  position: relative;
  color: #464646;
  font-size: 13.5px;
  line-height: 1.5;
}

.service-tile li::before {
  position: absolute;
  left: 0;
  content: "\2013";
}

/* ---- Services: process ---- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.process-step {
  padding: clamp(24px, 3vw, 30px) clamp(20px, 2.4vw, 26px);
  background: var(--panel);
}

.process-step-index {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- Services: engagement models ---- */

.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.engage-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3.4vw, 34px);
  border: 1px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
}

.engage-card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.engage-card h3 {
  margin: 40px 0 0;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.engage-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- Contact: channels ---- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3vw, 32px);
  border: 1px solid var(--ink);
  border-radius: 26px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, background 220ms ease;
}

.contact-tile:hover { transform: translateY(-6px); background: var(--accent); }

.contact-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.contact-tile-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-tile span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-tile strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.015em;
  word-break: break-word;
}

/* ---- Contact: availability strip ---- */

.availability-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: clamp(40px, 6vw, 60px);
  padding: 22px clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.availability-dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
}

.availability-dot::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4caf6a;
  content: "";
}

.availability-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- FAQ ---- */

.faq-list {
  display: grid;
  gap: 1px;
  max-width: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.faq-item {
  padding: 22px clamp(22px, 3vw, 30px);
  background: var(--paper);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}

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

.faq-item summary::after {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  content: "+";
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  transition: transform 200ms ease;
}

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

.faq-item p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---- Generic bottom CTA panel ---- */

.page-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(90px, 11vw, 150px);
  padding: clamp(40px, 6vw, 66px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.page-cta::after {
  position: absolute;
  top: clamp(-90px, -8vw, -50px);
  left: clamp(-90px, -8vw, -50px);
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 1;
  border: 1px solid rgba(211, 202, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(211, 202, 255, 0.05);
  content: "";
}

.page-cta h2 {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.page-cta p {
  position: relative;
  max-width: 480px;
  margin: 18px auto 0;
  color: rgba(249, 249, 249, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.page-cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 0 28px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 200ms ease;
}

.page-cta-link:hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 320px; }
  .bio-facts { grid-template-columns: 1fr 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-bar-row { grid-template-columns: 120px 1fr 40px; gap: 12px; }
  .timeline-item { grid-template-columns: 24px 1fr; }
  .timeline-date { grid-column: 2; order: -1; margin-bottom: 6px; }
  .timeline-marker { grid-row: 1 / span 2; align-items: start; }
}

@media (max-width: 600px) {
  .page-section-head { flex-direction: column; align-items: start; }
  .bio-facts { grid-template-columns: 1fr; gap: 20px; }
  .skill-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .skill-bar-value { text-align: left; }
  .value-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ---- 2026 standalone-page refinement ---- */

.standalone-page .article-shell {
  padding-top: clamp(30px, 4vw, 48px);
}

.standalone-page .article-breadcrumb {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(249, 249, 249, 0.72);
  backdrop-filter: blur(10px);
}

.standalone-page .article-hero {
  display: flex;
  min-height: clamp(520px, 55vw, 650px);
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(249, 249, 249, 0.14);
  background:
    linear-gradient(115deg, rgba(34, 34, 34, 0.98) 0 58%, rgba(42, 42, 42, 0.96) 100%),
    var(--ink);
  isolation: isolate;
}

.standalone-page .article-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(211, 202, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 68%, rgba(249, 249, 249, 0.12) 0 1px, transparent 1.5px);
  background-size: 22px 22px, 31px 31px;
  opacity: 0.38;
  content: "";
}

.standalone-page .article-hero::after {
  z-index: -1;
  width: clamp(330px, 43vw, 610px);
  border-color: rgba(211, 202, 255, 0.7);
  box-shadow:
    0 0 0 54px rgba(211, 202, 255, 0.055),
    0 0 0 108px rgba(211, 202, 255, 0.025);
}

.standalone-page .article-kicker {
  width: fit-content;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding: 8px 12px;
  border: 1px solid rgba(211, 202, 255, 0.48);
  border-radius: 999px;
  background: rgba(211, 202, 255, 0.09);
}

.standalone-page .article-hero h1 {
  max-width: 1000px;
  font-size: clamp(48px, 6.6vw, 88px);
  line-height: 0.96;
}

.standalone-page .article-dek {
  max-width: 750px;
  margin-top: clamp(26px, 3vw, 38px);
}

.standalone-page .article-meta {
  margin-top: clamp(34px, 4vw, 52px);
}

.standalone-page .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.standalone-page .article-meta span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.standalone-page .page-section {
  position: relative;
  margin-top: clamp(90px, 10vw, 142px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line);
  counter-increment: standalone-section;
}

.standalone-page .article-shell {
  counter-reset: standalone-section;
}

.standalone-page .page-section::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--muted);
  content: "0" counter(standalone-section);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1;
  transform: translateY(-50%);
  background: var(--paper);
  padding-right: 12px;
}

.standalone-page .page-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: clamp(38px, 5vw, 64px);
}

.standalone-page .page-section-head h2 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
}

.standalone-page .page-section-head p {
  justify-self: end;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

/* Services */

.page-services .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  counter-reset: service-card;
}

.page-services .service-tile {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 40px);
  background: var(--panel);
  box-shadow: 0 15px 38px rgba(34, 34, 34, 0.06);
  counter-increment: service-card;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, color 220ms ease, box-shadow 280ms ease;
}

.page-services .service-tile:nth-child(3n + 1) {
  background: var(--accent);
}

.page-services .service-tile::before {
  position: absolute;
  top: 28px;
  right: 30px;
  color: currentColor;
  content: "0" counter(service-card);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  opacity: 0.5;
}

.page-services .service-tile::after {
  position: absolute;
  right: -78px;
  bottom: -112px;
  width: 210px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
  content: "";
}

.page-services .service-tile:hover {
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 28px 52px rgba(34, 34, 34, 0.2);
  transform: translateY(-8px);
}

.page-services .service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  background: rgba(249, 249, 249, 0.22);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.page-services .service-tile:hover .service-icon {
  border-color: var(--accent);
  background: var(--accent);
}

.page-services .service-tile:hover .service-icon svg {
  stroke: var(--ink);
}

.page-services .service-tile h3 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 34px 0 12px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.05;
}

.page-services .service-tile p,
.page-services .service-tile li {
  position: relative;
  z-index: 1;
  transition: color 220ms ease;
}

.page-services .service-tile:hover p,
.page-services .service-tile:hover li {
  color: rgba(249, 249, 249, 0.74);
}

.page-services .process-grid {
  border-color: var(--ink);
  background: var(--ink);
}

.page-services .process-step {
  position: relative;
  min-height: 280px;
  background: var(--paper);
  transition: background-color 220ms ease, color 220ms ease;
}

.page-services .process-step:nth-child(even) {
  background: var(--panel);
}

.page-services .process-step:hover {
  background: var(--accent);
}

.page-services .process-step-index {
  color: var(--ink);
}

.page-services .process-step h3 {
  margin-top: 70px;
  font-size: 21px;
}

.page-services .engage-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  box-shadow: 0 15px 38px rgba(34, 34, 34, 0.055);
}

.page-services .engage-card:nth-child(2) {
  background: var(--accent);
}

.page-services .engage-card h3 {
  max-width: 330px;
  font-size: clamp(24px, 2.5vw, 32px);
}

/* About */

.page-about .bio-grid {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--ink);
  border-radius: clamp(24px, 3vw, 38px);
  background: var(--panel);
  box-shadow: 0 20px 52px rgba(34, 34, 34, 0.07);
}

.page-about .bio-portrait {
  min-height: 520px;
  border: 1px solid rgba(34, 34, 34, 0.24);
  border-radius: clamp(18px, 2.4vw, 30px);
  background: var(--paper);
}

.page-about .bio-copy {
  align-self: center;
}

.page-about .bio-copy p {
  max-width: 720px;
}

.page-about .bio-copy p:first-child {
  font-size: clamp(23px, 2.5vw, 33px);
  line-height: 1.36;
}

.page-about .bio-facts {
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
}

.page-about .bio-fact {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.page-about .value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.page-about .value-card {
  min-height: 280px;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid var(--ink);
  border-radius: 24px;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}

.page-about .value-card:nth-child(even) {
  background: var(--panel);
}

.page-about .value-card:hover {
  background: var(--accent);
  transform: translateY(-7px);
}

.page-about .value-index {
  margin-bottom: 72px;
  -webkit-text-stroke: 0;
  color: var(--muted);
}

.page-about .value-card h3 {
  font-size: 22px;
  line-height: 1.15;
}

.page-about .skill-bars {
  max-width: none;
  gap: 0;
  padding: clamp(26px, 5vw, 58px);
  border-radius: clamp(24px, 3vw, 38px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 22px 52px rgba(34, 34, 34, 0.15);
}

.page-about .skill-bar-row {
  grid-template-columns: minmax(150px, 210px) minmax(180px, 1fr) 52px;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(249, 249, 249, 0.13);
}

.page-about .skill-bar-row:first-child {
  border-top: 1px solid rgba(249, 249, 249, 0.13);
}

.page-about .skill-bar-track {
  height: 10px;
  overflow: hidden;
  background: rgba(249, 249, 249, 0.12);
}

.page-about .skill-bar-fill {
  width: var(--skill-level, 0%);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.page-about .skill-bar-row:nth-child(1) { --skill-level: 96%; }
.page-about .skill-bar-row:nth-child(2) { --skill-level: 93%; }
.page-about .skill-bar-row:nth-child(3) { --skill-level: 91%; }
.page-about .skill-bar-row:nth-child(4) { --skill-level: 90%; }
.page-about .skill-bar-row:nth-child(5) { --skill-level: 85%; }

.page-about .skill-bars.is-visible .skill-bar-fill {
  animation: page-skill-fill 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-about .skill-bar-row:nth-child(2) .skill-bar-fill { animation-delay: 80ms; }
.page-about .skill-bar-row:nth-child(3) .skill-bar-fill { animation-delay: 160ms; }
.page-about .skill-bar-row:nth-child(4) .skill-bar-fill { animation-delay: 240ms; }
.page-about .skill-bar-row:nth-child(5) .skill-bar-fill { animation-delay: 320ms; }

.page-about .skill-bar-value {
  color: var(--accent);
}

@keyframes page-skill-fill {
  to { transform: scaleX(1); }
}

.page-about .timeline {
  max-width: none;
  border-bottom: 1px solid var(--ink);
}

.page-about .timeline-item {
  grid-template-columns: minmax(150px, 190px) 32px minmax(0, 1fr);
  align-items: center;
  min-height: 126px;
  border-top-color: var(--ink);
  transition: background-color 200ms ease, padding 220ms ease;
}

.page-about .timeline-item:hover {
  padding-inline: 22px;
  background: var(--panel);
}

.page-about .timeline-marker::before {
  width: 12px;
  height: 12px;
}

.page-about .timeline-role {
  font-size: clamp(22px, 2.5vw, 32px);
}

/* Contact */

.page-contact .contact-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.page-contact .contact-tile {
  position: relative;
  grid-column: span 3;
  min-height: 250px;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 15px 38px rgba(34, 34, 34, 0.06);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, color 220ms ease, box-shadow 260ms ease;
}

.page-contact .contact-tile:first-child {
  grid-column: span 6;
  background: var(--ink);
  color: var(--paper);
}

.page-contact .contact-tile:nth-child(3) {
  background: var(--accent);
}

.page-contact .contact-tile:nth-child(4),
.page-contact .contact-tile:nth-child(5) {
  grid-column: span 6;
}

.page-contact .contact-tile:hover {
  z-index: 1;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 26px 50px rgba(34, 34, 34, 0.16);
  transform: translateY(-7px);
}

.page-contact .contact-tile .contact-tile-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  place-items: center;
  border-color: currentColor;
  color: inherit;
}

.page-contact .contact-tile:first-child .contact-tile-icon svg {
  stroke: var(--paper);
}

.page-contact .contact-tile:first-child:hover .contact-tile-icon svg {
  stroke: var(--ink);
}

.page-contact .contact-tile > span:not(.contact-tile-icon) {
  margin: auto 0 0;
  color: inherit;
  opacity: 0.58;
}

.page-contact .contact-tile strong {
  max-width: 460px;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.18;
}

.page-contact a.contact-tile::after {
  position: absolute;
  top: 28px;
  right: 28px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "↗";
  font-size: 16px;
}

.page-contact .availability-strip {
  justify-content: space-between;
  margin-top: 22px;
  padding: 28px clamp(24px, 3vw, 38px);
  border-color: var(--ink);
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
}

.page-contact .availability-strip p {
  color: rgba(249, 249, 249, 0.68);
}

.page-contact .faq-list {
  max-width: none;
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.page-contact .faq-item {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--panel);
  transition: background-color 220ms ease;
}

.page-contact .faq-item[open] {
  background: var(--accent);
}

.page-contact .faq-item summary {
  font-size: clamp(17px, 1.7vw, 22px);
}

.standalone-page .page-cta {
  border: 1px solid rgba(249, 249, 249, 0.15);
  box-shadow: 0 24px 58px rgba(34, 34, 34, 0.15);
}

.standalone-page .page-cta-link {
  border: 1px solid var(--accent);
  transition: background-color 200ms ease, color 200ms ease, transform 220ms ease;
}

.standalone-page .page-cta-link:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-4px);
}

@media (max-width: 1100px) {
  .page-services .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-about .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-contact .contact-tile { grid-column: span 6; }
  .page-contact .contact-tile:first-child { grid-column: span 6; }
}

@media (max-width: 860px) {
  .standalone-page .article-hero {
    min-height: auto;
  }

  .standalone-page .page-section-head {
    grid-template-columns: 1fr;
  }

  .standalone-page .page-section-head p {
    justify-self: start;
  }

  .page-about .bio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-about .bio-portrait {
    width: min(100%, 420px);
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .page-about .timeline-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .page-about .timeline-date {
    grid-column: 2;
  }

  .page-about .timeline-marker {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 600px) {
  .standalone-page .article-shell {
    padding-inline: 14px;
    padding-bottom: 72px;
  }

  .standalone-page .article-breadcrumb {
    margin-left: 4px;
  }

  .standalone-page .article-hero {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .standalone-page .article-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
    letter-spacing: -0.06em;
  }

  .standalone-page .article-dek {
    font-size: 16px;
  }

  .standalone-page .article-meta {
    display: grid;
    gap: 10px;
  }

  .standalone-page .page-section {
    margin-top: 78px;
    padding-top: 32px;
  }

  .standalone-page .page-section-head {
    gap: 18px;
    margin-bottom: 30px;
  }

  .standalone-page .page-section-head h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .page-services .service-grid,
  .page-about .value-grid,
  .page-contact .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-services .service-tile {
    min-height: 340px;
  }

  .page-services .process-step {
    min-height: 230px;
  }

  .page-services .engage-card {
    min-height: 260px;
  }

  .page-about .bio-grid {
    padding: 14px;
  }

  .page-about .bio-portrait {
    width: 100%;
  }

  .page-about .bio-copy {
    padding: 8px 6px 10px;
  }

  .page-about .value-grid {
    gap: 12px;
  }

  .page-about .value-card {
    min-height: 240px;
  }

  .page-about .value-index {
    margin-bottom: 48px;
  }

  .page-about .skill-bars {
    padding: 24px 20px;
  }

  .page-about .skill-bar-row {
    grid-template-columns: 1fr auto;
    gap: 7px 14px;
    padding: 17px 0;
  }

  .page-about .skill-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .page-about .skill-bar-value {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .page-about .timeline-item:hover {
    padding-inline: 0;
  }

  .page-contact .contact-tile,
  .page-contact .contact-tile:first-child,
  .page-contact .contact-tile:nth-child(4),
  .page-contact .contact-tile:nth-child(5) {
    grid-column: 1;
  }

  .page-contact .contact-tile {
    min-height: 220px;
  }

  .page-contact .availability-strip {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-about .skill-bar-fill {
    animation: none !important;
    transform: scaleX(1);
  }
}

/* ---- Standalone-page finishing layer ---- */

.standalone-page .article-nav a[aria-current="page"] {
  color: var(--accent);
}

.standalone-page .article-nav a[aria-current="page"]::after {
  background: var(--accent);
  transform: scaleX(1);
}

.page-contact .article-contact[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.standalone-page .article-hero h1::before {
  position: absolute;
  top: -1.05em;
  left: 52%;
  z-index: -1;
  color: rgba(249, 249, 249, 0.035);
  font-size: 2.25em;
  font-weight: 780;
  letter-spacing: -0.08em;
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
}

.page-services .article-hero h1::before { content: "SERVICES"; }
.page-about .article-hero h1::before { content: "ABOUT"; }
.page-contact .article-hero h1::before { content: "CONTACT"; }

.page-about .article-hero::after {
  right: -8%;
  bottom: -28%;
  border-radius: 44% 56% 39% 61%;
  transform: rotate(-14deg);
}

.page-contact .article-hero::after {
  right: -5%;
  bottom: -38%;
  border-radius: 34%;
  transform: rotate(18deg);
}

.standalone-page .page-section,
.standalone-page .page-cta {
  scroll-margin-top: 112px;
}

.page-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-grid .page-reveal:nth-child(2),
.value-grid .page-reveal:nth-child(2),
.contact-grid .page-reveal:nth-child(2),
.process-grid .page-reveal:nth-child(2),
.engage-grid .page-reveal:nth-child(2) { transition-delay: 70ms; }

.service-grid .page-reveal:nth-child(3),
.value-grid .page-reveal:nth-child(3),
.contact-grid .page-reveal:nth-child(3),
.process-grid .page-reveal:nth-child(3),
.engage-grid .page-reveal:nth-child(3) { transition-delay: 140ms; }

.service-grid .page-reveal:nth-child(4),
.value-grid .page-reveal:nth-child(4),
.contact-grid .page-reveal:nth-child(4),
.process-grid .page-reveal:nth-child(4) { transition-delay: 210ms; }

.service-grid .page-reveal:nth-child(5),
.contact-grid .page-reveal:nth-child(5) { transition-delay: 280ms; }

.service-grid .page-reveal:nth-child(6) { transition-delay: 350ms; }

/* Services finishing details */

.page-services .process-grid {
  counter-reset: project-process;
}

.page-services .process-step {
  overflow: hidden;
  counter-increment: project-process;
}

.page-services .process-step::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-services .process-step::after {
  position: absolute;
  right: 12px;
  bottom: -22px;
  color: var(--ink);
  content: "0" counter(project-process);
  font-size: 92px;
  font-weight: 780;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.045;
}

.page-services .process-step:hover::before {
  transform: scaleX(1);
}

.page-services .process-step > * {
  position: relative;
  z-index: 1;
}

.page-services .engage-card::before {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(211, 202, 255, 0.18);
  content: "";
}

.page-services .engage-card:nth-child(2)::before {
  background: var(--ink);
  box-shadow: 0 0 0 8px rgba(34, 34, 34, 0.08);
}

/* About finishing details */

.page-about .bio-grid {
  position: relative;
  overflow: hidden;
}

.page-about .bio-grid::after {
  position: absolute;
  right: -92px;
  bottom: -122px;
  width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(211, 202, 255, 0.16);
  content: "";
  pointer-events: none;
}

.page-about .bio-portrait {
  position: relative;
  z-index: 1;
}

.page-about .bio-portrait::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  content: "Available worldwide";
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-about .bio-copy {
  position: relative;
  z-index: 1;
}

.page-about .value-card {
  position: relative;
  overflow: hidden;
}

.page-about .value-card::after {
  position: absolute;
  right: -30px;
  bottom: -56px;
  width: 126px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
  content: "";
  transition: transform 300ms ease;
}

.page-about .value-card:hover::after {
  transform: scale(1.25);
}

.page-about .timeline-marker::after {
  position: absolute;
  top: 24px;
  bottom: -106px;
  width: 1px;
  background: var(--line);
  content: "";
}

.page-about .timeline-item:last-child .timeline-marker::after {
  display: none;
}

/* Contact finishing details */

.page-contact .contact-tile::before {
  position: absolute;
  right: -58px;
  bottom: -92px;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.07;
  content: "";
  transition: transform 320ms ease;
}

.page-contact .contact-tile:hover::before {
  transform: scale(1.22);
}

.page-contact .contact-tile > * {
  position: relative;
  z-index: 1;
}

.page-contact .availability-dot::before {
  box-shadow: 0 0 0 0 rgba(76, 175, 106, 0.6);
  animation: availability-pulse 2s ease-out infinite;
}

@keyframes availability-pulse {
  70% { box-shadow: 0 0 0 9px rgba(76, 175, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 106, 0); }
}

.page-contact .faq-item summary::after {
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.page-contact .faq-item[open] summary::after {
  background: var(--ink);
  color: var(--paper);
}

/* Editorial CTA and footer */

.standalone-page .page-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px clamp(30px, 6vw, 90px);
  text-align: left;
}

.standalone-page .page-cta h2,
.standalone-page .page-cta p {
  max-width: 720px;
  margin-inline: 0;
}

.standalone-page .page-cta p {
  margin-top: 0;
}

.standalone-page .page-cta-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  white-space: nowrap;
}

.standalone-page .article-footer {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(211, 202, 255, 0.13) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 72%, rgba(249, 249, 249, 0.09) 0 1px, transparent 1.5px);
  background-size: 25px 25px, 33px 33px;
}

.standalone-page .article-footer::after {
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(211, 202, 255, 0.32);
  border-radius: 50%;
  content: "";
}

.standalone-page .article-footer-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .standalone-page .article-hero h1::before {
    top: -0.8em;
    left: 30%;
  }

  .standalone-page .page-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .standalone-page .page-cta-link {
    grid-column: 1;
    grid-row: auto;
    width: fit-content;
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .standalone-page .article-hero h1::before {
    top: -0.55em;
    left: 5%;
    font-size: 1.8em;
  }

  .page-about .bio-portrait::after {
    right: 12px;
    bottom: 12px;
  }

  .page-about .timeline-marker::after {
    bottom: -116px;
  }

  .standalone-page .page-cta {
    padding: 34px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .page-contact .availability-dot::before {
    animation: none;
  }
}
