/* ==========================================================================
   Pages: everything the static front-page design didn't cover.
   Inner page hero, breadcrumbs, projects grid + filter, case study, pricing,
   blog (cards, single post, TOC, author box, comments), about, 404, prose,
   WordPress core classes, plus small fixes for real data (Simple Icons, tall
   screenshots, admin bar).
   ========================================================================== */

/* ---- WordPress admin bar: keep the floating header below it ------------- */
.admin-bar .site-header { top: calc(env(safe-area-inset-top, 0px) + 46px + 10px); }
@media (min-width: 783px) { .admin-bar .site-header { top: calc(32px + 14px); } }

/* ---- Real-data fixes ----------------------------------------------------- */
/* Project screenshots are full-page captures: always show the top of the page */
.why__media img, .svc__media img, .work-card__img img, .pcard__img img, .case__hero img { object-position: 50% 0; }
/* Simple Icons are filled glyphs, not strokes */
.logo svg { fill: currentColor; stroke: none; }
.badges svg { fill: #fff; stroke: none; width: 15px; height: 15px; }
.tech__tile svg { fill: #fff; }
.logo--client a { color: inherit; }
.logo--client:hover { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-links a[aria-current="page"] { color: var(--ink); }
.mobile-menu__list a[aria-current="page"] { color: var(--accent); }
/* The logo's wordmark is ~40% of its height, so it needs more height than a text-only logo. */
.brand__logo { display: block; height: 50px; width: auto; max-width: none; margin-block: -6px; }
.brand--dark .brand__logo { height: 56px; margin-block: 0; }
@media (max-width: 767px) { .brand__logo { height: 42px; margin-block: -4px; } .brand--dark .brand__logo { height: 48px; } }
.mobile-menu__contact a { text-decoration: underline; text-underline-offset: 3px; }
.hero__chips img { object-fit: cover; object-position: 50% 0; background: #fff; }
@media (min-width: 1200px) { .tech--woocommerce { right: 8%; top: 62%; --rot: -7deg; } }
main:focus { outline: none; }
/* Arriving at /services/#woocommerce-development etc. clears the floating header */
[id] { scroll-margin-top: 100px; }

/* ---- Spacing helpers ----------------------------------------------------- */
.section--tight { padding-block: clamp(56px, 7vw, 112px); }
.container--post { max-width: calc(860px + var(--gutter) + var(--gutter-r)); }

/* ---- Inner page hero ----------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(120px, 13vw, 176px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-hero .wash { z-index: -1; }
.wash--hero-lite { opacity: 0.6; }
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page-hero--center .page-hero__inner { align-items: center; text-align: center; }
.page-hero__title { max-width: 18ch; }
.page-hero__title em { font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.page-hero__lead { max-width: 62ch; }
.h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); letter-spacing: var(--track-display); line-height: 1.06; }

/* ---- Breadcrumbs --------------------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--ink-40); }
.crumbs a { color: var(--ink-80); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast); }
.crumbs a:hover { text-decoration-color: var(--accent); }
.crumbs [aria-current] { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Tech stack chips (services, case study aside, about) --------------- */
.svc__stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.svc__stack li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--ink);
}
.svc__stack .ticon {
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--c);
  fill: #fff;
  flex: none;
}

/* ---- Pricing ------------------------------------------------------------- */
.plans { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-feature);
  border: var(--hairline);
  background: var(--tone-cream);
}
.plan--featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (min-width: 900px) { .plan--featured { transform: translateY(-14px); } }
.plan__badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.plan__name { font-size: var(--fs-h3); font-weight: 500; }
.plan__for { color: var(--muted); font-size: var(--fs-small); }
.plan--featured .plan__for, .plan--featured .plan__note { color: var(--cream-60); }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 4px; font-family: var(--font-display); }
.plan__from { margin-right: 6px; font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted); }
.plan--featured .plan__from { color: var(--cream-60); }
.plan__cur { font-size: 1.5rem; font-weight: 500; }
.plan__amt { font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan__list { display: grid; gap: 10px; margin: 6px 0 0; padding: 18px 0 0; list-style: none; border-top: var(--hairline); }
.plan--featured .plan__list { border-color: var(--cream-12); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__note { font-size: var(--fs-caption); color: var(--muted); }
.plan__cta { margin-top: auto; width: 100%; }

/* ---- Proof additions ----------------------------------------------------- */
.tcard__src { font-size: var(--fs-caption); color: var(--muted); letter-spacing: 0; }
.carousel__source { display: flex; justify-content: center; margin-top: 20px; }

/* ---- Inquiry form additions --------------------------------------------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry { position: relative; }
.cta__contact { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.cta__contact li { display: grid; gap: 2px; color: var(--on-ink); font-size: var(--fs-small); }
.cta__contact li span { font-size: var(--fs-caption); color: var(--cream-60); text-transform: uppercase; letter-spacing: var(--track-label); }
.cta__contact a { color: inherit; }
.cta__direct svg { width: 18px; height: 18px; }
.cta__direct .btn__inner > svg[fill="currentColor"] { fill: currentColor; }
.contact-page { padding: calc(env(safe-area-inset-top, 0px) + 112px) var(--gutter-r) 24px var(--gutter); max-width: calc(var(--container) + var(--gutter) + var(--gutter-r)); margin-inline: auto; }
.contact-page + .cta { border-radius: clamp(24px, 4vw, 48px); }

/* ---- Filter pills (projects + blog categories) --------------------------- */
.pfilter ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pfilter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-40);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-80);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pfilter a:hover { border-color: var(--ink); color: var(--ink); }
.pfilter a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pfilter__n { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.6; }
.projects .pfilter { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---- Project cards + grid ----------------------------------------------- */
.pgrid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid > [data-pwrap]:has(.pcard--wide) { grid-column: span 2; }
}
@media (min-width: 900px) { .pgrid--3 { grid-template-columns: repeat(3, 1fr); } }
.pgrid > div { min-width: 0; }
.pcard { height: 100%; }
.pcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border-radius: var(--radius-feature);
  border: var(--hairline);
  background: var(--tone-cream);
  transition: border-color 0.35s, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.pcard__link:hover { border-color: var(--ink-40); transform: translateY(-4px); box-shadow: var(--glow); }
.pcard__img { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border-radius: var(--radius-card); border: var(--hairline); background: #fff; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard__link:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 8px 8px; flex: 1; }
.pcard__name { flex: 1 1 100%; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.pcard__tag { flex: 1 1 100%; font-size: var(--fs-small); color: var(--muted); }
.pcard__tech { display: flex; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.pcard__tech li { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; }
.pcard__tech svg { width: 15px; height: 15px; }
.pcard__more { margin: 8px 0 0 auto; font-size: var(--fs-small); font-weight: 500; transition: color var(--dur-fast); }
.pcard__link:hover .pcard__more { color: var(--accent); }
.pcard__link:focus-visible { outline-offset: 4px; border-radius: var(--radius-feature); }
[data-pwrap][hidden] { display: none !important; }
.pcard--in-blog .pcard__name { font-size: 1.25rem; }

/* ---- Work section additions --------------------------------------------- */
.work-card__name a { color: inherit; }
.work-card__name a:hover { color: var(--accent); }
.work-card__cta { align-self: flex-start; }

/* ---- Latest posts / related heads --------------------------------------- */
.latest__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.latest__head .section-head { margin-bottom: 0; }

/* ---- Case study ---------------------------------------------------------- */
.case__cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.case__cats a { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font-size: var(--fs-caption); font-weight: 500; }
.case__cats a:hover { background: var(--accent); }
.case__title { display: flex; flex-direction: column; gap: 10px; max-width: 20ch; }
.case__tagline { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 400; font-style: italic; letter-spacing: -0.02em; line-height: 1.25; color: var(--muted); }
.case__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.browser { margin: 0; border-radius: var(--radius-feature); border: 1px solid rgba(43, 43, 43, 0.1); background: #fff; overflow: hidden; box-shadow: var(--glow); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: var(--hairline); background: var(--bg-alt); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-gray-light); }
.browser__bar i:nth-child(1) { background: var(--color-gray-medium); }
.browser__bar span { margin-left: 12px; padding: 3px 14px; border-radius: var(--radius-pill); background: #fff; border: var(--hairline); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case__hero img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }

.case__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: clamp(28px, 4vw, 48px) 0 0; border-top: var(--hairline); border-bottom: var(--hairline); }
.case__facts div { padding: 18px 20px 18px 0; }
.case__facts dt { font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.case__facts dd { margin: 4px 0 0; font-weight: 500; }

.case__layout { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 88px); }
@media (min-width: 1000px) {
  .case__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
  .case__aside { position: sticky; top: 110px; }
}
.case__aside { display: grid; gap: 16px; }
.case__box { padding: 22px; border-radius: var(--radius-feature); border: var(--hairline); background: var(--tone-cream); }
.case__box-title { margin-bottom: 14px; font-family: var(--font-body); font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.case__services { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.case__services li { display: flex; gap: 10px; font-size: var(--fs-small); }
.case__services li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.case__results { margin-top: 32px; padding: 24px 26px; border-radius: var(--radius-feature); background: var(--ink); color: var(--on-ink); }
.prose .case__results h2 { margin-top: 0; color: var(--on-ink); }
.prose .case__results p { color: rgba(255, 255, 255, 0.82); }

.shots { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.shot { margin: 0; display: grid; gap: 14px; }
.shot__scroll { max-height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.shot__scroll img { display: block; width: 100%; height: auto; }
.shot__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shot__cap h3 { font-size: 1.125rem; font-weight: 500; }
.shot__cap p { color: var(--muted); font-size: var(--fs-small); }

/* ---- Prose (blog posts, case study text, plain pages) ------------------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-80); }
.prose > * + * { margin-top: 1.1em; }
/* Content wrapped in blocks/groups/divs still gets paragraph rhythm */
.prose :where(div, section, article) > :where(p, ul, ol, blockquote, figure, pre, table) + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); scroll-margin-top: 110px; }
.prose h2 { margin-top: 2em; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); }
.prose h3 { margin-top: 1.6em; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.prose img, .prose video, .prose iframe { border-radius: var(--radius-card); }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text, .wp-element-caption { margin-top: 8px; font-size: var(--fs-small); color: var(--muted); text-align: center; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius-card); background: var(--ink); color: var(--on-ink); font-size: 0.875rem; line-height: 1.6; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--ink-4); font-size: 0.9em; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: var(--hairline); text-align: left; }
.prose hr { border: 0; border-top: var(--hairline); margin-block: 2em; }
.intro-prose { padding-bottom: 24px; }
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* ---- Blog: bar, search, cards ------------------------------------------- */
.blog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.search { position: relative; display: flex; width: min(100%, 360px); }
.search__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 52px 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-40);
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
}
.search__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.16); }
.search__btn { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.search__btn svg { width: 18px; height: 18px; }

.bgrid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 700px) { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bgrid { grid-template-columns: repeat(3, 1fr); } }
.bcard { display: flex; flex-direction: column; border-radius: var(--radius-feature); border: var(--hairline); background: var(--tone-cream); overflow: hidden; transition: border-color 0.35s, transform 0.5s var(--ease-out); }
.bcard:hover { border-color: var(--ink-40); transform: translateY(-4px); }
.bcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bcard:hover .bcard__img img { transform: scale(1.04); }
.bcard__ph { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--tone-pink), var(--tone-lavender) 60%, var(--tone-sky)); }
.bcard__ph span { font-family: var(--font-display); font-size: 4rem; font-weight: 500; color: var(--ink-40); }
.bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.bcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-caption); color: var(--muted); }
/* Pink text fails contrast on light grounds: ink text, accent underline */
.bcard__cat { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bcard__title { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.bcard__title a:hover { color: var(--accent); }
.bcard__excerpt { color: var(--ink-80); font-size: var(--fs-small); }
@media (min-width: 1000px) {
  .bcard--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
  .bcard--featured .bcard__img { aspect-ratio: auto; min-height: 340px; }
  .bcard--featured .bcard__body { justify-content: center; padding: 40px; }
  .bcard--featured .bcard__title { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); }
}
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--ink-40); font-weight: 500; }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pager a.page-numbers:hover { border-color: var(--ink); }
.empty { display: grid; justify-items: start; gap: 16px; padding: 40px 0; }

/* ---- Single post --------------------------------------------------------- */
.post__head-inner { max-width: calc(980px + var(--gutter) + var(--gutter-r)); }
.post__head .page-hero__title { max-width: 24ch; }
.post__head .label a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-small); color: var(--muted); }
.post__meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post__media { margin: 0; overflow: hidden; border-radius: var(--radius-feature); border: var(--hairline); }
.post__media img { width: 100%; height: auto; }
.post__layout { display: grid; gap: 32px; padding-block: clamp(40px, 5vw, 72px); }
.post__body { min-width: 0; max-width: 760px; }
@media (min-width: 1100px) {
  .post__layout.has-toc { grid-template-columns: 260px minmax(0, 760px); gap: 64px; justify-content: center; }
  .post__layout:not(.has-toc) { justify-items: center; }
  .toc { position: sticky; top: 110px; align-self: start; }
}
@media (max-width: 1099px) { .post__layout { justify-items: center; } .post__body, .toc { width: 100%; max-width: 760px; } }
.toc__box { padding: 18px 20px; border-radius: var(--radius-feature); border: var(--hairline); background: var(--tone-cream); }
.toc__box summary { cursor: pointer; font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); list-style: none; }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box summary::after { content: "–"; float: right; }
.toc__box:not([open]) summary::after { content: "+"; }
.toc__box ol { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc__box a { display: block; padding: 6px 10px; border-radius: 8px; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-80); border-left: 2px solid transparent; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.toc__box a:hover { background: var(--ink-4); color: var(--ink); }
.toc__box a.is-active { border-left-color: var(--accent); color: var(--ink); font-weight: 500; background: #fff; }
.toc__l3 a { padding-left: 24px; font-size: var(--fs-caption); }
.post__tags { margin-top: 40px; }
.post__tags a:hover { color: var(--accent); }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 26px; border-radius: var(--radius-feature); border: var(--hairline); background: var(--tone-cream); }
.author-box__img { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.author-box > div { display: grid; gap: 6px; justify-items: start; }
.author-box__k { font-size: var(--fs-caption); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.author-box__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }
.author-box__bio { color: var(--ink-80); font-size: var(--fs-small); }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

.comments { margin-top: 48px; }
.comments__title { font-size: 1.5rem; margin-bottom: 18px; }
.comments__list { margin: 0 0 32px; padding: 0; list-style: none; }
.comments__list .comment-body { padding: 18px 0; border-bottom: var(--hairline); }
.comments__list .children { list-style: none; padding-left: 24px; }
.comments__list .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-meta { font-size: var(--fs-small); color: var(--muted); }
.comments__form { display: grid; gap: 14px; }
.comments__form label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 500; }
.comments__form input:not([type="checkbox"]):not([type="submit"]), .comments__form textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-input); border: 1px solid var(--ink-40); background: #fff; font: inherit; }
.comments__form .btn { min-height: 48px; padding: 0 24px; }
.post__widgets { margin-top: 40px; display: grid; gap: 24px; }
.widget__title { font-size: 1.125rem; margin-bottom: 10px; }

/* ---- About --------------------------------------------------------------- */
.about-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-hero__grid { grid-template-columns: 1fr 380px; } }
.about-hero__role { font-weight: 500; }
.about-hero__photo { margin: 0; border-radius: 200px 200px var(--radius-feature) var(--radius-feature); overflow: hidden; border: var(--hairline); aspect-ratio: 4 / 5; }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.skills__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .skills__grid { grid-template-columns: 2fr 1fr 1.6fr; } }
.skills__group { padding: 24px; border-radius: var(--radius-feature); border: var(--hairline); background: var(--tone-cream); }
.skills__title { margin-bottom: 14px; font-size: 1.125rem; font-weight: 500; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound { min-height: 80vh; display: grid; align-items: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 3rem + 14vw, 14rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; }
.notfound__code span { color: var(--accent); font-style: italic; }
.notfound .search { margin-block: 8px; }

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .pcard__link:hover, .bcard:hover { transform: none; }
  .pcard__link:hover .pcard__img img, .bcard:hover .bcard__img img { transform: none; }
}

/* ==========================================================================
   Phase 4 additions: About section, photo placeholder, contact person card,
   reviews summary + "View on Google" links, full-width header option.
   ========================================================================== */
.about-home__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .about-home__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.about-home__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center; border-radius: 24px; overflow: hidden; border: var(--hairline); background: var(--bg-alt); }
.about-home__photo img, .about-home__photo .photo-ph { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-home__badge { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); border: var(--hairline); backdrop-filter: blur(8px); }
.about-home__badge span { font-size: var(--fs-caption); color: var(--muted); }
.about-home__text { display: grid; gap: 24px; justify-items: start; }
.about-home__text .section-head { margin-bottom: 0; }
.about-home__stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.about-home__stats div { display: flex; flex-direction: column-reverse; padding: 14px 20px; border-radius: var(--radius-card); border: var(--hairline); background: var(--bg-alt); }
.about-home__stats dd { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; }
.about-home__stats dt { font-size: var(--fs-caption); color: var(--muted); }
.about-home__tools-title { margin-bottom: 10px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }

/* Photo placeholder (shown until a photo is uploaded) */
.photo-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 64px; background: repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, #fff 12px 24px); color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 6vw, 4rem); letter-spacing: -0.03em; border-radius: inherit; }
.about-hero__photo .photo-ph { aspect-ratio: 4 / 5; }

/* Hero: the photo chip */
.hero__chips .hero__chip-photo { object-position: 50% 20%; }

/* Contact section: the person you'll talk to */
.cta__person { display: flex; align-items: center; gap: 14px; }
.cta__person img, .cta__person .photo-ph { width: 56px; height: 56px; min-height: 0; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream-12); font-size: 1rem; }
.cta__person div { display: grid; gap: 2px; }
.cta__person strong { color: var(--on-ink); }
.cta__person span { font-size: var(--fs-small); color: var(--cream-60); }

/* Author box photo */
.author-box .author-box__img { object-fit: cover; }
.author-box .photo-ph { width: 72px; height: 72px; flex: none; border-radius: 50%; font-size: 1.1rem; }

/* Reviews */
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0 0 32px; text-align: center; }
.reviews-summary .reviews-summary__stars { color: var(--ink); letter-spacing: 2px; font-size: 1.125rem; }
.reviews-summary strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.reviews-summary span { color: var(--muted); }
.tcard__stars { color: var(--ink); }
.tcard__who { flex-wrap: wrap; }
.tcard__link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-small); font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--grad-3); text-underline-offset: 3px; }

/* Header option: full-width bar that stays visible */
.hdr-bar .site-header { top: env(safe-area-inset-top, 0px); padding: 0; }
.hdr-bar.admin-bar .site-header { top: calc(env(safe-area-inset-top, 0px) + 32px); }
.hdr-bar .site-header.is-hidden { transform: none; }
.hdr-bar .nav-pill { max-width: none; border-radius: 0; border-width: 0 0 1px; padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); background: rgba(255, 255, 255, 0.94); }

/* ==========================================================================
   Profile additions (1.3.0): availability badge, resume button, connect row,
   experience timeline, education cards, hero showcase, contact email,
   service icon panel. Salt & Pepper tokens only.
   ========================================================================== */

/* ---- Availability badge ---------------------------------------------------- */
.avail { display: inline-flex; align-items: flex-start; gap: 12px; max-width: 520px; margin: 0; padding: 12px 18px 12px 14px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--color-white); box-shadow: var(--shadow-card); text-align: left; }
.avail__dot { position: relative; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--ink); }
.avail__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); animation: pulse 2.4s var(--ease-out) infinite; }
.avail__text { display: grid; gap: 2px; }
.avail__text strong { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.avail__text span { font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); }
.about-home__text .avail { margin: 4px 0 26px; }
.about-hero .avail { margin-top: 4px; }

/* ---- Resume button + About actions/connect -------------------------------- */
.btn--resume svg { width: 18px; height: 18px; }
.about-home__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-home__connect { display: grid; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: var(--hairline); }
.about-hero .socials { margin-top: 6px; }

/* ---- Experience timeline ---------------------------------------------------- */
.xp__list { position: relative; display: grid; gap: clamp(18px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.xp__item { position: relative; display: grid; grid-template-columns: minmax(150px, 210px) 28px 1fr; align-items: start; }
/* The line: one segment per item, drawn in the node column and carried across the gap. */
.xp__item::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 1px; height: calc(100% + clamp(18px, 2.4vw, 28px)); margin-top: 24px; background: var(--border); }
.xp__item:last-child::before { display: none; }
.xp__when { grid-column: 1; grid-row: 1; display: grid; justify-items: end; gap: 8px; padding: 18px 14px 0 0; text-align: right; }
.xp__period { font-size: var(--fs-small); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.xp__now { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.xp__now-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.xp__now-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease-out) infinite; }
.xp__node { position: relative; z-index: 1; grid-column: 2; grid-row: 1; justify-self: center; width: 11px; height: 11px; margin-top: 24px; border-radius: 50%; border: 2px solid var(--color-gray-medium); background: var(--bg); }
.xp__item.is-current .xp__node { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--ink); }
.xp__card { grid-column: 3; grid-row: 1; padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px); border-radius: var(--radius-feature); border: var(--hairline); background: var(--color-white); box-shadow: var(--shadow-card); transition: box-shadow 0.4s var(--ease-out), border-color 0.4s, transform 0.5s var(--ease-out); }
.xp__card:hover { box-shadow: var(--shadow-lift); border-color: var(--color-gray-medium); transform: translateY(-2px); }
.xp__item.is-current .xp__card { border-color: var(--ink); }
.xp__company { margin: 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; letter-spacing: var(--track-heading); line-height: 1.15; }
.xp__company a { text-decoration: underline; text-decoration-color: var(--color-gray-medium); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color var(--dur-fast); }
.xp__company a:hover { text-decoration-color: var(--ink); }
.xp__ext { display: inline-block; margin-left: 6px; font-size: 0.7em; color: var(--muted); transition: transform 0.35s var(--ease-out); }
.xp__company a:hover .xp__ext { transform: translate(2px, -2px); }
.xp__role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 6px 0 0; font-weight: 500; color: var(--ink); }
.xp__meta { font-size: var(--fs-caption); font-weight: 400; color: var(--muted); }
.xp__card .xp__points { display: grid; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: var(--hairline); list-style: none; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.xp__points li { position: relative; padding-left: 16px; }
.xp__points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--ink); }
@media (max-width: 767px) {
  .xp__item { grid-template-columns: 22px 1fr; }
  .xp__when { grid-column: 2; grid-row: 1; justify-items: start; padding: 0 0 8px; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; }
  .xp__item::before { grid-column: 1; grid-row: 1 / span 2; margin-top: 4px; height: calc(100% + clamp(18px, 2.4vw, 28px)); }
  .xp__node { grid-column: 1; grid-row: 1; margin-top: 4px; }
  .xp__card { grid-column: 2; grid-row: 2; }
}

/* ---- Education cards -------------------------------------------------------- */
.edu__layout { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .edu__layout { grid-template-columns: minmax(240px, 1fr) 2fr; align-items: start; } .edu__layout .section-head { margin-bottom: 0; } }
.edu__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.edu__card { display: flex; gap: 18px; padding: clamp(18px, 2.2vw, 24px); border-radius: var(--radius-feature); border: var(--hairline); background: var(--color-white); box-shadow: var(--shadow-card); }
.edu__card.is-progress { border-color: var(--ink); }
.edu__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-alt); border: var(--hairline); color: var(--ink); }
.edu__icon svg { width: 24px; height: 24px; }
.edu__degree { margin: 0; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.edu__school { margin: 4px 0 0; color: var(--muted); }
.edu__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.edu__facts > span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--radius-pill); border: var(--hairline); font-size: var(--fs-caption); color: var(--ink); }
.edu__facts .edu__status { background: var(--bg-alt); font-weight: 600; }
.edu__card.is-progress .edu__status { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---- Hero website showcase ---------------------------------------------------- */
.hero__showcase { position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 80px); }
.showcase { position: relative; display: block; max-width: 1040px; margin-inline: auto; text-align: left; }
.showcase__layer--back { position: absolute; inset: -16px 7% auto; height: 60%; border-radius: var(--radius-feature); background: var(--bg-alt); border: var(--hairline); transform: translateY(-10px); }
.showcase__frame { position: relative; box-shadow: 0 2px 6px rgba(43, 43, 43, 0.05), 0 30px 70px rgba(43, 43, 43, 0.16); transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.showcase:hover .showcase__frame { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(43, 43, 43, 0.06), 0 40px 90px rgba(43, 43, 43, 0.20); }
.showcase__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; }
.showcase__tag { position: absolute; right: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px); display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.92); border: var(--hairline); box-shadow: var(--shadow-card); font-size: var(--fs-caption); font-weight: 600; color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 600px) { .showcase__layer--back { inset: -10px 5% auto; } .browser__bar span { font-size: 11px; } }

/* ---- Contact: prominent email + social row ----------------------------------- */
.cta__mail { display: grid; gap: 4px; margin: 4px 0 0; }
.cta__mail span { font-size: var(--fs-caption); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--cream-60); }
.cta__mail a { justify-self: start; display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--on-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; transition: text-decoration-color var(--dur-fast); }
.cta__mail a:hover { text-decoration-color: var(--on-ink); }
.cta__mail a span { font-size: 0.6em; letter-spacing: 0; text-transform: none; color: var(--cream-60); }
.cta__contact a { color: var(--on-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.cta__social { display: grid; gap: 12px; margin-top: 26px; }
.cta__social p { margin: 0; font-size: var(--fs-caption); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--cream-60); }

/* ---- Service without a screenshot: icon panel ---------------------------------- */
.svc__media--icon { position: relative; display: grid; place-items: center; min-height: 260px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-card); border: var(--hairline); background: radial-gradient(circle at 50% 50%, var(--color-white) 0, var(--bg-alt) 70%); color: var(--ink); }
.svc__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--border); transform: translate(-50%, -50%); }
.svc__ring--1 { width: 34%; aspect-ratio: 1; }
.svc__ring--2 { width: 58%; aspect-ratio: 1; border-color: rgba(43, 43, 43, 0.08); }
.svc__ring--3 { width: 84%; aspect-ratio: 1; border-color: rgba(43, 43, 43, 0.05); }
.svc__glyph { position: relative; width: clamp(56px, 9vw, 84px); height: auto; padding: 14px; border-radius: 22px; background: var(--color-white); border: var(--hairline); box-shadow: var(--shadow-card); }

@media (prefers-reduced-motion: reduce) {
  .avail__dot::after, .xp__now-dot::after { animation: none; }
  .xp__card, .showcase__frame, .fw { transition: none; }
}
/* Stacked service cards: slightly tighter tag pills so long tag lists (e.g. Local SEO) still fit the sticky stack. */
.is-stacked .svc .tags { gap: 5px; }
.is-stacked .svc .tags li { padding: 3px 10px; line-height: 1.45; }
