/*
Theme Name: Chingiz
Theme URI: https://thechingiz.com/
Author: Chingiz
Author URI: https://thechingiz.com/
Description: Chingiz üçün şəxsi brend, layihələr, yazılar və fotoqrafiya yönümlü minimal one-page WordPress mövzusu.
Version: 1.0.0.25
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chingiz
Tags: one-page, personal, portfolio, blog, photography, accessibility-ready
*/

/* =========================================================================
   1. Tokens
   ====================================================================== */

:root {
  --brand: #10B981;
  /* 1.0.0.7 used #059669, which measured 3.77:1 on white and failed WCAG AA
     on every small green element (eyebrows, dates, "→" links). */
  --brand-dark: #047857;
  --brand-light: #34D399;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #5B6472;
  --line: rgba(17, 24, 39, .12);
  --surface: #F6FBF9;
  --white: #FFFFFF;
  --focus: #047857;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(17, 24, 39, .10);
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, .04);
  --container: 1320px;
  --gutter: clamp(24px, 4vw, 64px);
  --header-h: 82px;
}

/* =========================================================================
   2. Base
   ====================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; overflow-wrap: break-word; }

.container { width: min(calc(100% - (var(--gutter) * 2)), var(--container)); margin-inline: auto; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

/* Keyboard access ---------------------------------------------------------
   1.0.0.7 shipped no visible focus state at all, so keyboard users navigated
   blind through buttons whose border was transparent. */

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

.about :focus-visible,
.cta-box :focus-visible { outline-color: var(--ink); }

.about .role-card :focus-visible { outline-color: var(--white); }

#content:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 10000;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  transform: translateX(-50%);
}

/* Accessibility aid: visible only when a keyboard user intentionally tabs to it. */
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 12px 22px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .project-card:hover, .back-to-top:hover { transform: none; }
}

/* =========================================================================
   3. Header
   ====================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled,
.has-solid-header .site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.site-logo { width: 46px; height: 46px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-cta { min-height: 44px; padding-inline: 18px; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; }
.main-nav a {
  font-size: .94rem;
  font-weight: 650;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brand-dark); }
.main-nav .current-menu-item > a { color: var(--brand-dark); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
}
.menu-toggle-bar { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================================
   4. Buttons
   ====================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }

.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-light); color: var(--ink); }

.btn-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-secondary:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #1F2937; color: var(--white); }

.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: rgba(17, 24, 39, .08); }

.btn-link {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn-link:hover { transform: none; text-decoration-thickness: 2px; }

/* =========================================================================
   5. Section scaffolding
   ====================================================================== */

.section { padding: 132px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.hero { scroll-margin-top: 0; }

.section-eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  max-width: 860px;
}
.section-intro { margin: 22px 0 0; max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.section-head { margin-bottom: 56px; }

/* =========================================================================
   6. Hero
   ====================================================================== */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 164px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -160px;
  top: -170px;
  background: radial-gradient(circle, rgba(16, 185, 129, .16), rgba(16, 185, 129, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr);
  align-items: center;
  gap: clamp(64px, 7vw, 112px);
}

.hero-content { min-width: 0; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 750;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--brand-dark);
}
.hero-kicker::before { content: ""; width: 36px; height: 2px; background: var(--brand-dark); flex: 0 0 36px; }

.hero-lead { margin: 0 0 10px; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; color: var(--ink-soft); }

.hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(2.8rem, 5.2vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.hero-copy { margin: 26px 0 0; max-width: 740px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-visual { min-height: 620px; position: relative; }
.hero-image-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.hero-image-wrap img {
  max-height: 620px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(17, 24, 39, .16));
}
.hero-image-placeholder {
  position: absolute;
  inset: 10% 0 0 10%;
  border-radius: 50% 50% 28% 38%;
  background: linear-gradient(145deg, rgba(16, 185, 129, .13), rgba(255, 255, 255, .1));
  border: 1px dashed rgba(16, 185, 129, .25);
}

/* Stats -------------------------------------------------------------------
   Social proof band. Hidden entirely unless at least two pairs are filled. */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 64px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}
.stat { margin: 0; }
.stat-value { margin: 0; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat-label { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

/* =========================================================================
   7. About
   ====================================================================== */

.about { background: var(--ink); color: var(--white); }
.about .section-intro { color: rgba(255, 255, 255, .72); }
.about .section-eyebrow { color: var(--brand); }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.role-card {
  padding: clamp(36px, 3vw, 48px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
}
.role-number { margin: 0; color: var(--brand); font-weight: 800; font-size: .82rem; letter-spacing: .12em; }
.role-card h3 { margin: 24px 0 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.role-card p { color: rgba(255, 255, 255, .72); }

.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .92); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .14);
}

.about-action { margin: 34px 0 0; }

/* =========================================================================
   8. Projects
   ====================================================================== */

.projects { background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 28px; }
.project-card {
  min-height: 335px;
  padding: clamp(34px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover, .project-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.is-accent { background: var(--brand); color: var(--ink); border-color: transparent; }
.project-label { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-card.is-accent .project-label { color: rgba(17, 24, 39, .86); }
.project-card h3 { margin: auto 0 12px; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -.055em; }
.project-card p { margin: 0 0 26px; color: var(--muted); max-width: 520px; }
.project-card.is-accent p { color: rgba(17, 24, 39, .86); }
.project-card .btn-link { align-self: flex-start; }
.project-card.is-accent .btn-link { color: var(--ink); }

/* =========================================================================
   9. Testimonials
   ====================================================================== */

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.testimonial-card {
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial-card blockquote { margin: 0; font-size: 1.08rem; color: var(--ink-soft); }
.testimonial-card blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--brand-dark); margin-bottom: 10px; }
.testimonial-card figcaption { margin-top: auto; display: flex; flex-direction: column; }
.testimonial-author { font-weight: 750; }
.testimonial-role { color: var(--muted); font-size: .9rem; }

/* =========================================================================
   10. Process
   ====================================================================== */

.process { background: var(--surface); }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; counter-reset: step; }
.process-step { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.process-number { display: inline-block; margin-bottom: 16px; font-size: .9rem; font-weight: 800; letter-spacing: .12em; color: var(--brand-dark); }
.process-step h3 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -.03em; }
.process-step p { margin: 0; color: var(--muted); }

/* =========================================================================
   11. Insights + Frames
   ====================================================================== */

.interests-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.content-panel { border-top: 2px solid var(--ink); padding-top: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-head h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.04em; }

.post-list { display: grid; gap: 0; }
.post-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: 0; }
.post-meta { margin: 0; color: var(--brand-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.post-item h4 { margin: 8px 0 6px; font-size: 1.25rem; line-height: 1.3; }
.post-item h4 a:hover { color: var(--brand-dark); }
.post-item p { margin: 0; color: var(--muted); }

.frames-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.frame-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.frame-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.frame-card:hover img, .frame-card:focus-visible img { transform: scale(1.04); }

.frame-card.has-placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
  font-weight: 700;
}

.empty-state { padding: 34px; background: var(--surface); border-radius: var(--radius-md); color: var(--muted); }

/* =========================================================================
   12. FAQ
   ====================================================================== */

.faq-list { display: grid; gap: 14px; max-width: 960px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-dark); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--brand-dark); }
.faq-item summary:focus-visible { outline-offset: -4px; }
.faq-answer { padding: 0 26px 24px; color: var(--muted); }
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }

/* =========================================================================
   13. Contact CTA
   ====================================================================== */

.cta { padding-top: 40px; }
.cta-box {
  background: var(--brand);
  color: var(--ink);
  border-radius: 42px;
  padding: clamp(42px, 7vw, 86px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(40px, 6vw, 88px);
}
.cta-box .cta-eyebrow { color: var(--ink); }
.cta-box h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; max-width: 760px; }
.cta-box p { margin: 22px 0 0; max-width: 650px; color: rgba(17, 24, 39, .86); font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; }
.social-links a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, .62);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.social-links a:hover { background: var(--ink); color: var(--brand); border-color: var(--ink); }
.social-icon { width: 20px; height: 20px; }

/* =========================================================================
   14. Footer
   ====================================================================== */

.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner {
  width: min(calc(100% - (var(--gutter) * 2)), 1180px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  color: var(--muted);
  font-size: .92rem;
}
.footer-copy,
.footer-tagline {
  margin: 0;
  white-space: nowrap;
  font-weight: 400;
}
.footer-copy { color: var(--ink); }
.footer-tagline { margin-left: auto; text-align: right; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover, .back-to-top:focus-visible { transform: translateY(-3px); background: var(--brand); border-color: var(--brand); color: var(--ink); }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================================
   15. Archives + single
   ====================================================================== */

.archive-header { padding: 160px 0 70px; background: var(--surface); }
.archive-search { margin-top: 28px; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 70px 0 90px; }
.archive-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.archive-card-thumb { aspect-ratio: 16 / 10; background: var(--surface); display: block; }
.archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-body { padding: 24px; }
.archive-card h2 { font-size: 1.35rem; line-height: 1.25; margin: 8px 0 10px; letter-spacing: -.02em; }
.archive-card h2 a:hover, .archive-card h2 a:focus-visible { color: var(--brand-dark); }
.archive-card p { margin: 0; color: var(--muted); }

.archive-pagination { padding: 0 0 100px; }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.archive-pagination .page-numbers {
  min-width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}
.archive-pagination .current,
.archive-pagination a:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 32px; color: var(--muted); font-size: .9rem; }
.entry-thumb { margin: 0 0 40px; }
.entry-thumb img { border-radius: var(--radius-md); }
.entry-thumb figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { color: var(--brand-dark); font-weight: 750; }

.error-404 .search-form { margin: 32px 0; }
.error-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; }
.error-links a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   16. Long-form content typography
   1.0.0.7 defined no styles inside .entry-content, so every published article
   rendered with raw browser defaults against a designed shell.
   ====================================================================== */

.entry-content {
  width: min(calc(100% - 40px), 780px);
  margin: 0 auto;
  padding: 160px 0 100px;
  font-size: 1.08rem;
}
.entry-content > h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.05em; margin: 0 0 8px; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -.035em; margin: 56px 0 16px; }
.entry-content h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.3; letter-spacing: -.025em; margin: 42px 0 12px; }
.entry-content h4 { font-size: 1.2rem; margin: 34px 0 10px; }
.entry-content p { margin: 0 0 24px; }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 24px; }
.entry-content li { margin-bottom: 10px; }
.entry-content li::marker { color: var(--brand-dark); }
.entry-content a:not(.btn) { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { font-weight: 750; }
.entry-content img, .entry-content figure img { border-radius: var(--radius-md); }
.entry-content figure { margin: 40px 0; }
.entry-content iframe { max-width: 100%; }
.entry-content figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; text-align: center; }

.entry-content blockquote {
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--brand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content hr { margin: 56px 0; border: 0; border-top: 1px solid var(--line); }

.entry-content code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.entry-content pre {
  background: var(--ink);
  color: #E5E7EB;
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 32px 0;
  font-size: .92rem;
  line-height: 1.6;
}
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }

.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 32px 0; font-size: .96rem; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-weight: 750; background: var(--surface); }

.entry-content .alignwide { width: min(100vw - 40px, 1080px); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }

.page-links { display: flex; gap: 10px; margin: 32px 0; font-weight: 700; }

/* Search form + comments -------------------------------------------------- */

.search-form { display: flex; flex-wrap: wrap; gap: 10px; }
.search-field {
  flex: 1 1 220px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.search-field:focus-visible { border-color: var(--brand-dark); }

.comments-area { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.6rem; letter-spacing: -.03em; margin: 0 0 28px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 24px; }
.comment-list ol.children { list-style: none; margin: 24px 0 0 24px; padding: 0; display: grid; gap: 24px; }
.comment-body { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.comment-author img { border-radius: 50%; }
.comment-form { display: grid; gap: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.comment-form .submit { justify-self: start; }
.no-comments { color: var(--muted); }

/* =========================================================================
   16.5 Premium wide-layout refinements
   ====================================================================== */

@media (min-width: 1440px) {
  .header-inner { min-height: 88px; }
  .main-nav ul { gap: 34px; }
  .hero-grid { min-height: 700px; }
  .role-card,
  .project-card,
  .testimonial-card,
  .process-step { border-radius: 30px; }
  .project-card { min-height: 360px; }
  .frames-grid { gap: 16px; }
}

@media (min-width: 1800px) {
  :root { --container: 1400px; }
  .section { padding-block: 148px; }
  .hero { padding-top: 176px; }
}



/* =========================================================================
   16.6 1080p desktop adaptation
   Keeps 1920×1080 and similar desktop displays spacious without letting
   vertical padding push key content below the fold.
   ====================================================================== */

@media (min-width: 1280px) and (max-height: 1100px) {
  :root {
    --container: 1380px;
    --gutter: clamp(32px, 3vw, 56px);
    --header-h: 78px;
  }

  .header-inner { min-height: var(--header-h); }
  .main-nav ul { gap: 30px; }
  .header-actions { gap: 12px; }

  .section { padding-block: 104px; }
  .section-head { margin-bottom: 44px; }
  .section-title { font-size: clamp(2.15rem, 3.25vw, 3.55rem); max-width: 820px; }
  .section-intro { margin-top: 18px; max-width: 720px; }

  .hero {
    min-height: 100svh;
    padding: 126px 0 58px;
  }
  .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: clamp(52px, 5vw, 84px);
  }
  .hero h1 { font-size: clamp(3.1rem, 4.35vw, 4.85rem); max-width: 860px; }
  .hero-copy { margin-top: 22px; max-width: 690px; font-size: clamp(1.02rem, 1.2vw, 1.18rem); }
  .hero-actions { margin-top: 28px; }
  .hero-meta { margin-top: 28px; gap: 14px 18px; }
  .hero-visual { min-height: 520px; }
  .hero-image-wrap img { max-height: 540px; }
  .stats-bar { margin-top: 42px; padding-block: 24px; }

  .role-grid,
  .project-grid,
  .process-grid,
  .testimonials-grid { gap: 24px; }

  .role-card { padding: 38px; }
  .project-card {
    min-height: 335px;
    padding: 36px;
  }
  .process-step,
  .testimonial-card { padding: 28px; }

  .interests-grid { gap: 54px; }
  .post-item { padding-block: 18px; }

  .cta { padding-top: 28px; }
  .cta-box { padding: 62px; gap: 46px; }

  .site-footer { padding-block: 34px; }
  .archive-header { padding: 132px 0 58px; }
  .archive-grid { padding: 58px 0 76px; }
  .entry-content { padding: 132px 0 84px; }
}

/* Shorter desktop windows, including browser UI reducing usable height. */
@media (min-width: 1100px) and (max-height: 850px) {
  :root { --header-h: 72px; }
  .section { padding-block: 82px; }
  .section-head { margin-bottom: 36px; }
  .hero { min-height: auto; padding: 108px 0 52px; }
  .hero-grid { gap: 48px; }
  .hero h1 { font-size: clamp(2.8rem, 4vw, 4.25rem); }
  .hero-copy { margin-top: 18px; }
  .hero-actions, .hero-meta { margin-top: 24px; }
  .hero-visual { min-height: 450px; }
  .hero-image-wrap img { max-height: 470px; }
  .stats-bar { margin-top: 34px; }
  .cta-box { padding: 50px; }
}

/* =========================================================================
   17. Responsive
   ====================================================================== */

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    inset: var(--header-h) 20px auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    max-height: calc(100svh - var(--header-h) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 12px 10px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 380px; }
  .hero-image-wrap img { max-height: 390px; }

  .role-grid, .interests-grid, .cta-box { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 80px 0; }
  .header-inner { min-height: 72px; }
  .main-nav { inset: 72px 14px auto; }

  .hero { min-height: auto; padding: 118px 0 60px; }
  /* An empty decorative blob ate ~310px of the first screen on phones. */
  .hero-visual.is-empty { display: none; }
  .hero-visual { min-height: 300px; }
  .hero-meta { gap: 10px 16px; }
  .stats-bar { margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .role-card, .project-card, .process-step, .testimonial-card { padding: 26px; }
  .frames-grid { gap: 8px; }
  .panel-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .panel-head .btn-link { align-self: flex-start; }
  .cta-box { border-radius: 26px; }
  .archive-header { padding: 120px 0 50px; }
  .archive-grid { grid-template-columns: 1fr; padding: 44px 0 60px; }
  .entry-content { padding: 120px 0 70px; }

  .hero-actions, .about-action, .cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .btn, .about-action .btn, .cta-actions .btn { width: 100%; }

  .back-to-top { right: 16px; bottom: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-tagline { margin-left: 0; text-align: left; }
}

@media print {
  .site-header, .back-to-top, .skip-link, .post-navigation, .comments-area, .cta { display: none; }
  body { color: #000; }
  .entry-content { padding: 0; width: 100%; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}

/* 1.0.0.12 front-end stability fixes */
html.menu-is-open,
html.menu-is-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

/* =========================================================================
   18. Premium responsive composition — 1.0.0.20
   Balanced spacing for 1080p, wide desktops, laptops, tablets and phones.
   ====================================================================== */

:root {
  --content-wide: 1380px;
  --content-reading: 780px;
  --section-space: clamp(88px, 7.2vw, 138px);
}

.container {
  width: min(calc(100% - (2 * clamp(24px, 3.25vw, 62px))), var(--content-wide));
}

.section { padding-block: var(--section-space); }
.section-head { margin-bottom: clamp(38px, 4vw, 58px); }
.section-intro { max-width: var(--content-reading); }

.hero {
  padding-block: clamp(124px, 10vh, 164px) clamp(64px, 7vh, 92px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(48px, 5vw, 92px);
}

.hero-content { max-width: 780px; }

/* Give a tall portrait enough horizontal and vertical breathing room. */
.hero-visual {
  min-width: 0;
  min-height: clamp(560px, 62vh, 720px);
  isolation: isolate;
}

.hero-image-wrap {
  inset: 0 -4% 0 -2%;
  align-items: flex-end;
  overflow: visible;
}

.hero-image-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(112%, 680px);
  max-height: clamp(560px, 66vh, 730px);
  object-fit: contain;
  object-position: center bottom;
}

.hero-image-placeholder {
  inset: 8% 2% 0 5%;
}

.role-grid,
.project-grid,
.process-grid,
.testimonials-grid { gap: clamp(22px, 2.2vw, 32px); }

.role-card,
.project-card,
.process-step,
.testimonial-card { padding: clamp(30px, 2.7vw, 46px); }

.cta-box { padding: clamp(42px, 5vw, 76px); }

/* Common 1920×1080 and similar displays. */
@media (min-width: 1366px) and (max-height: 1100px) {
  :root {
    --content-wide: 1360px;
    --section-space: clamp(86px, 8.4vh, 108px);
  }

  .hero {
    min-height: 100svh;
    padding-top: clamp(112px, 12vh, 136px);
    padding-bottom: clamp(46px, 5vh, 64px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(460px, .97fr);
    gap: clamp(48px, 4.5vw, 78px);
  }

  .hero h1 { font-size: clamp(3.25rem, 4.15vw, 4.9rem); }
  .hero-copy { max-width: 700px; }
  .hero-visual { min-height: clamp(520px, 61vh, 650px); }
  .hero-image-wrap img {
    max-width: min(116%, 650px);
    max-height: clamp(530px, 64vh, 670px);
  }
}

/* Laptop-sized desktop windows. */
@media (min-width: 961px) and (max-width: 1365px) {
  :root {
    --content-wide: 1180px;
    --section-space: clamp(82px, 8vw, 108px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
    gap: clamp(36px, 4vw, 58px);
  }

  .hero h1 { font-size: clamp(3rem, 5vw, 4.45rem); }
  .hero-visual { min-height: 500px; }
  .hero-image-wrap img { max-width: 112%; max-height: 540px; }
}

@media (max-width: 960px) {
  :root { --section-space: clamp(76px, 10vw, 104px); }

  .hero-grid { gap: 28px; }
  .hero-content { max-width: 760px; }
  .hero-visual {
    width: min(100%, 620px);
    min-height: clamp(390px, 62vw, 560px);
    margin-inline: auto;
  }
  .hero-image-wrap { inset-inline: 0; }
  .hero-image-wrap img {
    max-width: 100%;
    max-height: clamp(400px, 68vw, 580px);
  }
}

@media (max-width: 640px) {
  :root { --section-space: 76px; }

  .container { width: min(calc(100% - 32px), var(--content-wide)); }
  .hero { padding: 110px 0 54px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.65rem); }
  .hero-copy { font-size: 1.04rem; line-height: 1.68; }
  .hero-visual:not(.is-empty) { min-height: clamp(330px, 105vw, 470px); }
  .hero-image-wrap img { max-height: clamp(350px, 112vw, 500px); }
  .role-card,
  .project-card,
  .process-step,
  .testimonial-card { padding: 26px; }
}

/* =========================================================================
   19. Footer width and hero portrait proportion — 1.0.0.20
   ====================================================================== */

/* Keep the footer on its intended 1180px measure even when the global
   premium container width changes at larger breakpoints. */
.site-footer .footer-inner {
  width: min(calc(100% - (2 * clamp(24px, 3.25vw, 62px))), 1180px);
  margin-inline: auto;
}

/* Use a true portrait proportion for the empty hero state so the visual
   preview represents a full-height portrait instead of a compressed blob. */
.hero-visual.is-empty {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual.is-empty .hero-image-placeholder {
  position: relative;
  inset: auto;
  width: min(88%, 560px);
  aspect-ratio: 4 / 5;
  min-height: 0;
  flex: 0 0 auto;
}

@media (min-width: 1366px) and (max-height: 1100px) {
  .hero-visual.is-empty {
    min-height: clamp(570px, 64vh, 680px);
  }

  .hero-visual.is-empty .hero-image-placeholder {
    width: min(86%, 540px);
  }
}

@media (min-width: 961px) and (max-width: 1365px) {
  .hero-visual.is-empty .hero-image-placeholder {
    width: min(84%, 470px);
  }
}

@media (max-width: 960px) and (min-width: 641px) {
  .hero-visual.is-empty .hero-image-placeholder {
    width: min(76%, 470px);
  }
}

/* =========================================================================
   20. Mobile text measure and responsive consistency — 1.0.0.21
   Prevents fixed minimum tracks, oversized type and card padding from
   narrowing or overflowing content on phones and small tablets.
   ====================================================================== */

/* Grid children and rich content must be allowed to shrink inside tracks. */
.hero-grid > *,
.role-grid > *,
.project-grid > *,
.testimonial-grid > *,
.process-grid > *,
.interests-grid > *,
.cta-box > *,
.panel-head > *,
.footer-inner > *,
.entry-content,
.entry-content > * {
  min-width: 0;
}

/* Long URLs, labels and translated words should never create horizontal scroll. */
.hero h1,
.section-title,
.role-card h3,
.project-card h3,
.process-step h3,
.panel-head h3,
.cta-box h2,
.archive-card h2,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.btn,
.faq-item summary,
.footer-copy,
.footer-tagline {
  overflow-wrap: anywhere;
}

/* The original 360px/320px minimum tracks could exceed a phone container. */
.project-grid,
.testimonial-grid,
.process-grid,
.archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Keep all full-width media and embeds inside the content column. */
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100%;
}

@media (max-width: 960px) {
  :root { --gutter: clamp(18px, 4.5vw, 32px); }

  .container,
  .site-footer .footer-inner {
    width: min(calc(100% - (2 * var(--gutter))), var(--content-wide));
  }

  .section-head { max-width: 760px; }
  .section-title { max-width: 18ch; }
  .section-intro { max-width: 62ch; }

  .main-nav {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }

  .hero {
    min-height: auto;
    overflow: clip;
  }

  .hero-content { width: 100%; }
  .hero h1 { max-width: 15ch; }
  .hero-copy { max-width: 62ch; }

  .role-grid,
  .project-grid,
  .testimonial-grid,
  .process-grid,
  .interests-grid {
    width: 100%;
  }

  .cta-box {
    gap: 32px;
  }

  .cta-body,
  .cta-actions { width: 100%; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --section-space: clamp(68px, 18vw, 78px);
  }

  .container,
  .site-footer .footer-inner {
    width: calc(100% - (2 * var(--gutter)));
  }

  body { line-height: 1.62; }
  .section { padding-block: var(--section-space); }
  .section-head { margin-bottom: 34px; }

  .section-eyebrow {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  .section-title {
    max-width: 100%;
    font-size: clamp(2rem, 9.8vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -.045em;
  }

  .section-intro {
    margin-top: 16px;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.68;
  }

  .site-logo { width: 42px; height: 42px; }
  .header-inner { min-height: 70px; gap: 12px; }
  .main-nav { inset: 70px var(--gutter) auto; }

  .hero { padding: 104px 0 50px; }
  .hero-grid { gap: 24px; }
  .hero-kicker {
    max-width: 100%;
    font-size: .8rem;
    line-height: 1.4;
  }
  .hero-kicker::before { width: 26px; flex-basis: 26px; }
  .hero-lead { font-size: 1.05rem; line-height: 1.45; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.6vw, 3.2rem);
    line-height: 1.035;
    letter-spacing: -.05em;
  }
  .hero-copy {
    margin-top: 20px;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.65;
  }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-meta {
    margin-top: 24px;
    gap: 9px 14px;
    font-size: .75rem;
    line-height: 1.45;
    letter-spacing: .065em;
  }

  .hero-visual:not(.is-empty) {
    width: 100%;
    min-height: clamp(300px, 96vw, 430px);
  }
  .hero-image-wrap img {
    max-width: 100%;
    max-height: clamp(320px, 104vw, 460px);
  }

  .stats-bar {
    gap: 24px 16px;
    margin-top: 36px;
    padding-top: 24px;
  }
  .stat-value { font-size: clamp(2rem, 10vw, 2.7rem); }
  .stat-label { font-size: .88rem; line-height: 1.45; }

  .role-card,
  .project-card,
  .process-step,
  .testimonial-card {
    padding: 24px;
    border-radius: 22px;
  }

  .role-card h3,
  .project-card h3,
  .process-step h3 {
    max-width: 100%;
  }

  .role-card h3 { margin-top: 18px; font-size: 1.55rem; }
  .project-card { min-height: auto; }
  .project-card h3 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .project-card p { max-width: 100%; }
  .testimonial-card blockquote { font-size: 1rem; }

  .feature-list { margin-top: 22px; gap: 12px; }
  .feature-list li { padding-left: 20px; }

  .panel-head { margin-bottom: 8px; }
  .post-item { padding-block: 20px; }
  .post-item h4 { font-size: 1.15rem; }
  .frames-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .faq-list { max-width: 100%; }
  .faq-item summary {
    padding: 18px 20px;
    gap: 14px;
    font-size: 1rem;
    line-height: 1.45;
  }
  .faq-answer { padding: 0 20px 20px; }

  .cta-box {
    padding: 30px 24px;
    gap: 26px;
    border-radius: 24px;
  }
  .cta-box h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.04;
  }
  .cta-box p { max-width: 100%; font-size: 1rem; }
  .social-links { gap: 10px; }

  .btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 18px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .footer-inner { gap: 8px; }
  .footer-copy,
  .footer-tagline {
    max-width: 100%;
    font-size: .86rem;
    line-height: 1.5;
  }

  .archive-header { padding: 108px 0 44px; }
  .archive-grid { padding: 38px 0 54px; }
  .archive-card-body { padding: 20px; }

  .entry-content {
    width: calc(100% - (2 * var(--gutter)));
    padding: 108px 0 64px;
    font-size: 1rem;
  }
  .entry-content > h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .entry-content h2 { margin-top: 44px; font-size: clamp(1.65rem, 7.5vw, 2.05rem); }
  .entry-content h3 { margin-top: 34px; font-size: clamp(1.3rem, 6vw, 1.55rem); }
  .entry-content ul,
  .entry-content ol { padding-left: 20px; }
  .entry-content blockquote {
    margin-block: 32px;
    padding-left: 20px;
    font-size: 1.08rem;
  }
  .entry-content pre { padding: 18px; }
  .entry-content .alignwide,
  .entry-content .alignfull {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .comment-list ol.children { margin-left: 12px; }
  .comment-body { padding: 18px; }
  .back-to-top { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 2.65rem); }
  .role-card,
  .project-card,
  .process-step,
  .testimonial-card,
  .cta-box { padding: 21px; }
  .stats-bar { grid-template-columns: 1fr; }
}

/* =========================================================================
   21. Hero grid cascade fix — 1.0.0.22
   The premium desktop rule is declared after older responsive rules. Keep its
   tracks shrinkable and explicitly collapse the grid at tablet/mobile widths.
   ====================================================================== */
.hero-grid {
  max-width: 100%;
}

@media (max-width: 960px) {
  .hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content,
  .hero-visual {
    min-width: 0;
    max-width: 100%;
  }
}

/* =========================================================================
   22. Hero mobile composition and spacing — 1.0.0.23
   Keep semantic source order (H1/content first), while rendering the portrait
   above the copy on tablet and phone layouts. Restore the same vertical rhythm
   and horizontal gutters used by regular sections.
   ====================================================================== */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + clamp(42px, 7vw, 72px));
    padding-bottom: var(--section-space);
    overflow: clip;
  }

  .hero-grid {
    align-items: start;
    gap: clamp(34px, 6vw, 54px);
  }

  /* Visual order only. The HTML and document outline still begin with H1. */
  .hero-visual { order: 1; }
  .hero-content { order: 2; width: 100%; }

  .hero-visual:not(.is-empty) {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .hero .stats-bar {
    margin-top: clamp(46px, 7vw, 68px);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: var(--section-space);
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-visual:not(.is-empty) {
    min-height: clamp(340px, 102vw, 470px);
  }

  .hero-image-wrap {
    inset: 0;
  }

  .hero-image-wrap img {
    max-width: 100%;
    max-height: clamp(360px, 108vw, 500px);
  }

  .hero .stats-bar {
    margin-top: 44px;
  }
}

/* =========================================================================
   23. Hero container gutter parity — 1.0.0.24
   `.container.hero-grid` carries both classes. A later mobile `.hero-grid {
   width: 100%; }` was overriding the shared container width and removing the
   visible left/right gutters. Reassert the canonical container measure on the
   combined element so Hero and every regular section align exactly.
   ====================================================================== */
@media (max-width: 960px) {
  .container.hero-grid {
    width: min(calc(100% - (2 * var(--gutter))), var(--content-wide));
    max-width: var(--content-wide);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .container.hero-grid {
    width: calc(100% - (2 * var(--gutter)));
  }
}
