/* ============================================================
   Sweta Shrestha — Personal Brand & Consulting
   Editorial design system. Nepal-inspired, warm, feminine.
   WordPress-conversion friendly (semantic, tokenized).
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color — Sapphire Veil */
  --ivory:        #F3F8FD;
  --ivory-deep:   #E7F0FA;
  --paper:        #FCFEFF;
  --cream-card:   #EEF5FC;
  --maroon:       #2E5E99;
  --maroon-deep:  #21477A;
  --maroon-ink:   #0D2440;
  --gold:         #3F72AB;
  --gold-soft:    #7BA4D0;
  --gold-pale:    #C3D9EF;
  --charcoal:     #26303C;
  --ink:          #1A2530;
  --muted:        #586676;
  --blush:        #E7F0FA;
  --blush-deep:   #D2E2F3;
  --clay:         #7BA4D0;
  --sage:         #6F93A0;
  --sage-deep:    #4F6F7C;

  --line:         rgba(13, 36, 64, 0.12);
  --line-soft:    rgba(13, 36, 64, 0.07);
  --line-gold:    rgba(46, 94, 153, 0.32);

  /* Surfaces */
  --bg:           var(--ivory);
  --surface:      var(--paper);

  /* Typography */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Lato", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 600;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --maxw-wide: 1340px;
  --radius: 8px;
  --radius-lg: 18px;

  --shadow-soft: 0 18px 50px -28px rgba(13, 36, 64, 0.30);
  --shadow-card: 0 14px 40px -26px rgba(13, 36, 64, 0.32);
  --shadow-raise: 0 26px 60px -30px rgba(13, 36, 64, 0.42);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Tweakable spacing (controlled by the Tweaks panel on index.html) */
  --hero-top-gap: 2.4rem;
  --nav-gap: 0.5rem;
  --serp-pad: 1rem;
  --serp-inner-gap: 0.9rem;
  --serp-maxw: 720px;
}



/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--display-weight, 500); }

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); }
h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  font-weight: var(--display-weight, 500);
  letter-spacing: -0.01em;
  color: var(--maroon-ink);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: var(--display-weight, 500);
  color: var(--maroon-ink);
  letter-spacing: -0.005em;
}
h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.18;
  color: var(--maroon-ink);
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: var(--line-gold);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: var(--line-gold);
}

.lede {
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}
.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--maroon); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.wrap-wide { max-width: var(--maxw-wide); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.bg-cream { background: var(--ivory-deep); }
.bg-paper { background: var(--paper); }
.bg-maroon { background: var(--maroon-deep); color: var(--blush); }
.bg-maroon h1, .bg-maroon h2, .bg-maroon h3 { color: #EEF5FC; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.92em 1.7em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--maroon);
  color: #FCEFE3;
  box-shadow: 0 14px 30px -16px rgba(33, 71, 122, 0.7);
}
.btn-primary:hover { background: var(--maroon-deep); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(33, 71, 122, 0.8); }
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--line-gold);
}
.btn-outline:hover { border-color: var(--maroon); background: rgba(46, 94, 153, 0.06); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--charcoal); padding-left: 0; padding-right: 0; }
.btn-light { background: #EEF5FC; color: var(--maroon-deep); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-on-dark { border-color: rgba(195, 217, 239, 0.4); color: #E7F0FA; }
.btn-on-dark:hover { border-color: var(--gold-soft); background: rgba(195,217,239,0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row.center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; text-transform: none;
  color: var(--maroon);
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--line-gold);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.textlink:hover { gap: 0.85em; border-color: var(--maroon); }

/* ---------- Decorative motifs (Newari jali lattice + mandala medallion) ---------- */
.divider-orn {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  max-width: 360px;
  color: var(--gold);
}
.divider-orn::before, .divider-orn::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold));
}
.divider-orn::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.divider-orn svg { width: 26px; height: 26px; opacity: 0.85; }

.contour-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'60'%20height%3D'60'%20viewBox%3D'0%200%2060%2060'%3E%3Cg%20fill%3D'none'%20stroke%3D'rgba(70%2C52%2C40%2C0.05)'%20stroke-width%3D'1'%3E%3Ccircle%20cx%3D'0'%20cy%3D'0'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'60'%20cy%3D'0'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'0'%20cy%3D'60'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'60'%20cy%3D'60'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'30'%20cy%3D'30'%20r%3D'30'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 58px 58px; background-position: center;
}
.contour-bg svg { display: none; } /* retire old contour line-art; CSS motif is used instead */
.contour-bg::after {
  content: ""; position: absolute; right: -90px; top: -70px; width: 360px; height: 360px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20240%20240'%20fill%3D'none'%20stroke%3D'rgba(70%2C52%2C40%2C0.10)'%20stroke-width%3D'1'%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'20'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'38'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'62'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'86'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'110'%2F%3E%3Cline%20x1%3D'206.0'%20y1%3D'120.0'%20x2%3D'230.0'%20y2%3D'120.0'%2F%3E%3Cline%20x1%3D'203.1'%20y1%3D'142.3'%20x2%3D'226.3'%20y2%3D'148.5'%2F%3E%3Cline%20x1%3D'194.5'%20y1%3D'163.0'%20x2%3D'215.3'%20y2%3D'175.0'%2F%3E%3Cline%20x1%3D'180.8'%20y1%3D'180.8'%20x2%3D'197.8'%20y2%3D'197.8'%2F%3E%3Cline%20x1%3D'163.0'%20y1%3D'194.5'%20x2%3D'175.0'%20y2%3D'215.3'%2F%3E%3Cline%20x1%3D'142.3'%20y1%3D'203.1'%20x2%3D'148.5'%20y2%3D'226.3'%2F%3E%3Cline%20x1%3D'120.0'%20y1%3D'206.0'%20x2%3D'120.0'%20y2%3D'230.0'%2F%3E%3Cline%20x1%3D'97.7'%20y1%3D'203.1'%20x2%3D'91.5'%20y2%3D'226.3'%2F%3E%3Cline%20x1%3D'77.0'%20y1%3D'194.5'%20x2%3D'65.0'%20y2%3D'215.3'%2F%3E%3Cline%20x1%3D'59.2'%20y1%3D'180.8'%20x2%3D'42.2'%20y2%3D'197.8'%2F%3E%3Cline%20x1%3D'45.5'%20y1%3D'163.0'%20x2%3D'24.7'%20y2%3D'175.0'%2F%3E%3Cline%20x1%3D'36.9'%20y1%3D'142.3'%20x2%3D'13.7'%20y2%3D'148.5'%2F%3E%3Cline%20x1%3D'34.0'%20y1%3D'120.0'%20x2%3D'10.0'%20y2%3D'120.0'%2F%3E%3Cline%20x1%3D'36.9'%20y1%3D'97.7'%20x2%3D'13.7'%20y2%3D'91.5'%2F%3E%3Cline%20x1%3D'45.5'%20y1%3D'77.0'%20x2%3D'24.7'%20y2%3D'65.0'%2F%3E%3Cline%20x1%3D'59.2'%20y1%3D'59.2'%20x2%3D'42.2'%20y2%3D'42.2'%2F%3E%3Cline%20x1%3D'77.0'%20y1%3D'45.5'%20x2%3D'65.0'%20y2%3D'24.7'%2F%3E%3Cline%20x1%3D'97.7'%20y1%3D'36.9'%20x2%3D'91.5'%20y2%3D'13.7'%2F%3E%3Cline%20x1%3D'120.0'%20y1%3D'34.0'%20x2%3D'120.0'%20y2%3D'10.0'%2F%3E%3Cline%20x1%3D'142.3'%20y1%3D'36.9'%20x2%3D'148.5'%20y2%3D'13.7'%2F%3E%3Cline%20x1%3D'163.0'%20y1%3D'45.5'%20x2%3D'175.0'%20y2%3D'24.7'%2F%3E%3Cline%20x1%3D'180.8'%20y1%3D'59.2'%20x2%3D'197.8'%20y2%3D'42.2'%2F%3E%3Cline%20x1%3D'194.5'%20y1%3D'77.0'%20x2%3D'215.3'%20y2%3D'65.0'%2F%3E%3Cline%20x1%3D'203.1'%20y1%3D'97.7'%20x2%3D'226.3'%20y2%3D'91.5'%2F%3E%3Ccircle%20cx%3D'170.0'%20cy%3D'120.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'163.3'%20cy%3D'145.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'145.0'%20cy%3D'163.3'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'120.0'%20cy%3D'170.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'95.0'%20cy%3D'163.3'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'76.7'%20cy%3D'145.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'70.0'%20cy%3D'120.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'76.7'%20cy%3D'95.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'95.0'%20cy%3D'76.7'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'120.0'%20cy%3D'70.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'145.0'%20cy%3D'76.7'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'163.3'%20cy%3D'95.0'%20r%3D'11'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(0%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(30%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(60%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(90%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(120%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(150%20120%20120)'%2F%3E%3C%2Fsvg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.page-hero .contour-bg::after { width: 300px; height: 300px; right: -70px; top: -60px; }
.bg-maroon .contour-bg, .cta-band.bg-maroon .contour-bg {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'60'%20height%3D'60'%20viewBox%3D'0%200%2060%2060'%3E%3Cg%20fill%3D'none'%20stroke%3D'rgba(250%2C245%2C235%2C0.06)'%20stroke-width%3D'1'%3E%3Ccircle%20cx%3D'0'%20cy%3D'0'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'60'%20cy%3D'0'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'0'%20cy%3D'60'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'60'%20cy%3D'60'%20r%3D'30'%2F%3E%3Ccircle%20cx%3D'30'%20cy%3D'30'%20r%3D'30'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.bg-maroon .contour-bg::after, .cta-band.bg-maroon .contour-bg::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20240%20240'%20fill%3D'none'%20stroke%3D'rgba(250%2C245%2C235%2C0.11)'%20stroke-width%3D'1'%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'20'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'38'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'62'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'86'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'120'%20r%3D'110'%2F%3E%3Cline%20x1%3D'206.0'%20y1%3D'120.0'%20x2%3D'230.0'%20y2%3D'120.0'%2F%3E%3Cline%20x1%3D'203.1'%20y1%3D'142.3'%20x2%3D'226.3'%20y2%3D'148.5'%2F%3E%3Cline%20x1%3D'194.5'%20y1%3D'163.0'%20x2%3D'215.3'%20y2%3D'175.0'%2F%3E%3Cline%20x1%3D'180.8'%20y1%3D'180.8'%20x2%3D'197.8'%20y2%3D'197.8'%2F%3E%3Cline%20x1%3D'163.0'%20y1%3D'194.5'%20x2%3D'175.0'%20y2%3D'215.3'%2F%3E%3Cline%20x1%3D'142.3'%20y1%3D'203.1'%20x2%3D'148.5'%20y2%3D'226.3'%2F%3E%3Cline%20x1%3D'120.0'%20y1%3D'206.0'%20x2%3D'120.0'%20y2%3D'230.0'%2F%3E%3Cline%20x1%3D'97.7'%20y1%3D'203.1'%20x2%3D'91.5'%20y2%3D'226.3'%2F%3E%3Cline%20x1%3D'77.0'%20y1%3D'194.5'%20x2%3D'65.0'%20y2%3D'215.3'%2F%3E%3Cline%20x1%3D'59.2'%20y1%3D'180.8'%20x2%3D'42.2'%20y2%3D'197.8'%2F%3E%3Cline%20x1%3D'45.5'%20y1%3D'163.0'%20x2%3D'24.7'%20y2%3D'175.0'%2F%3E%3Cline%20x1%3D'36.9'%20y1%3D'142.3'%20x2%3D'13.7'%20y2%3D'148.5'%2F%3E%3Cline%20x1%3D'34.0'%20y1%3D'120.0'%20x2%3D'10.0'%20y2%3D'120.0'%2F%3E%3Cline%20x1%3D'36.9'%20y1%3D'97.7'%20x2%3D'13.7'%20y2%3D'91.5'%2F%3E%3Cline%20x1%3D'45.5'%20y1%3D'77.0'%20x2%3D'24.7'%20y2%3D'65.0'%2F%3E%3Cline%20x1%3D'59.2'%20y1%3D'59.2'%20x2%3D'42.2'%20y2%3D'42.2'%2F%3E%3Cline%20x1%3D'77.0'%20y1%3D'45.5'%20x2%3D'65.0'%20y2%3D'24.7'%2F%3E%3Cline%20x1%3D'97.7'%20y1%3D'36.9'%20x2%3D'91.5'%20y2%3D'13.7'%2F%3E%3Cline%20x1%3D'120.0'%20y1%3D'34.0'%20x2%3D'120.0'%20y2%3D'10.0'%2F%3E%3Cline%20x1%3D'142.3'%20y1%3D'36.9'%20x2%3D'148.5'%20y2%3D'13.7'%2F%3E%3Cline%20x1%3D'163.0'%20y1%3D'45.5'%20x2%3D'175.0'%20y2%3D'24.7'%2F%3E%3Cline%20x1%3D'180.8'%20y1%3D'59.2'%20x2%3D'197.8'%20y2%3D'42.2'%2F%3E%3Cline%20x1%3D'194.5'%20y1%3D'77.0'%20x2%3D'215.3'%20y2%3D'65.0'%2F%3E%3Cline%20x1%3D'203.1'%20y1%3D'97.7'%20x2%3D'226.3'%20y2%3D'91.5'%2F%3E%3Ccircle%20cx%3D'170.0'%20cy%3D'120.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'163.3'%20cy%3D'145.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'145.0'%20cy%3D'163.3'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'120.0'%20cy%3D'170.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'95.0'%20cy%3D'163.3'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'76.7'%20cy%3D'145.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'70.0'%20cy%3D'120.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'76.7'%20cy%3D'95.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'95.0'%20cy%3D'76.7'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'120.0'%20cy%3D'70.0'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'145.0'%20cy%3D'76.7'%20r%3D'11'%2F%3E%3Ccircle%20cx%3D'163.3'%20cy%3D'95.0'%20r%3D'11'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(0%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(30%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(60%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(90%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(120%20120%20120)'%2F%3E%3Cellipse%20cx%3D'120'%20cy%3D'91'%20rx%3D'8'%20ry%3D'17'%20transform%3D'rotate(150%20120%20120)'%2F%3E%3C%2Fsvg%3E");
}
@media (max-width: 620px){ .contour-bg::after { width: 220px; height: 220px; right: -60px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 36, 64, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 164, 208, 0.18);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  border-color: rgba(123, 164, 208, 0.28);
  box-shadow: 0 10px 40px -16px rgba(13, 36, 64, 0.7);
}
.site-header::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,164,208,0.5) 30%, rgba(195,217,239,0.8) 50%, rgba(123,164,208,0.5) 70%, transparent);
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 80px; position: relative; gap: var(--nav-gap);
}
.nav .brand { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .nav-cta { justify-self: end; }
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(123, 164, 208, 0.45);
  border-radius: 11px;
  color: var(--gold-pale);
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(45deg); border-color: var(--gold-soft); }
.brand-mark svg { width: 23px; height: 23px; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark svg { transform: rotate(-45deg); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: 0.005em;
  color: #FCFEFF;
  line-height: 1; white-space: nowrap;
}
.brand-sub {
  display: block; font-family: var(--font-body);
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft); margin-top: 5px;
}
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.3vw, 2.3rem); }
.nav-links a {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em;
  color: rgba(231, 240, 250, 0.78);
  position: relative; padding: 0.6em 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  background: var(--gold-soft); transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: #FCFEFF; }
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav-links a.active { color: #FCFEFF; }
.nav-links a.active::after { background: var(--gold-soft); }
.nav-cta { display: flex; align-items: center; gap: 1.35rem; }
.nav-cta::before {
  content: ""; width: 1px; height: 28px; background: rgba(123, 164, 208, 0.3); flex: none;
}
.nav-cta .btn-primary {
  padding: 0.82em 1.5em; background: transparent; color: #FCFEFF;
  border: 1px solid rgba(123, 164, 208, 0.5); box-shadow: none;
}
.nav-cta .btn-primary:hover {
  background: var(--maroon); color: #FCFEFF; border-color: var(--maroon);
  transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(13, 36, 64, 0.6);
}

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(123, 164, 208, 0.4); background: transparent;
  border-radius: 50%; position: relative;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: rgba(231, 240, 250, 0.85); transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 80px 0 0 0; z-index: 99;
  background: rgba(13, 36, 64, 0.98);
  padding: 2.5rem clamp(1.5rem, 6vw, 3rem);
  transform: translateY(-12px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  display: flex; flex-direction: column;
}
body.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; color: #FCFEFF;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(123, 164, 208, 0.18);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a .idx { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold-soft); }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ivory); }
.hero-inner { position: relative; z-index: 2; padding: var(--hero-top-gap) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-eyebrow { margin-bottom: 1.7rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--maroon); font-style: italic; }

/* ---- Google AI Overview mock (hero header) ---- */
.g-serp {
  --g-text: #1f1f1f; --g-sec: #4d5156; --g-url: #4d5156; --g-link: #1a0dab;
  --g-border: #dadce0; --g-line: #ececec;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: #fff; border: 1px solid var(--g-border); border-radius: 16px;
  max-width: var(--serp-maxw); margin: 0 auto clamp(2rem, 4vw, 2.8rem);
  padding: var(--serp-pad) calc(var(--serp-pad) + 0.2rem) calc(var(--serp-pad) + 0.2rem); box-shadow: 0 12px 40px -22px rgba(32,33,36,0.4);
  text-align: left;
}
.g-bar {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--g-border); border-radius: 100px; padding: 0.62rem 1.05rem;
  box-shadow: 0 1px 6px rgba(32,33,36,0.12); margin-bottom: var(--serp-inner-gap);
}
.g-bar:hover { box-shadow: 0 1px 10px rgba(32,33,36,0.18); }
.g-mag { width: 20px; height: 20px; flex: none; }
.g-mag svg { width: 100%; height: 100%; display: block; }
.g-typed {
  flex: 1; min-width: 0; font-size: 1rem; color: var(--g-text); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-typed .cursor {
  display: inline-block; width: 1.5px; height: 1.05em; background: #4285F4;
  margin-left: 1px; vertical-align: text-bottom; animation: caret 1s step-end infinite;
}
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.g-bar-icons { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.g-ic { width: 22px; height: 22px; display: block; }
.g-div { width: 1px; height: 22px; background: var(--g-border); }

.g-ai { position: relative; padding: 0.1rem 0 0.95rem; border-bottom: 1px solid var(--g-line); margin-bottom: 0.85rem; }
.g-ai-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.85rem; }
.g-spark { width: 24px; height: 24px; flex: none; }
.g-spark svg { width: 100%; height: 100%; display: block; }
.g-spark.pop { animation: gPop 0.5s var(--ease); }
@keyframes gPop { 0% { transform: scale(1); } 45% { transform: scale(1.3) rotate(12deg); } 100% { transform: scale(1); } }
.g-ai-title { font-size: 1.18rem; font-weight: 400; color: var(--g-text); letter-spacing: 0.01em; }
.g-ai-cols { display: grid; grid-template-columns: 1fr 168px; gap: 1.4rem; align-items: start; }
.g-ai-text { font-size: 1rem; line-height: 1.62; color: var(--g-text); margin: 0; }
.g-ai-text .nm { font-weight: 700; }
.g-ai-text .src {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: super;
  font-size: 0.58rem; font-weight: 700; line-height: 1; width: 1.3em; height: 1.3em;
  border-radius: 50%; margin: 0 1px; background: #e8f0fe; color: #1a73e8;
}
.g-ai-text .w { opacity: 1; }
.g-ai-text.will-stream .w { opacity: 0; transition: opacity 0.32s var(--ease); }
.g-ai-text.will-stream .w.on { opacity: 1; }
.g-ai-srcs { display: flex; flex-direction: column; gap: 0.5rem; }
.g-src {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.65rem;
  border: 1px solid var(--g-border); border-radius: 10px; background: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.g-src:hover { background: #f8f9fa; box-shadow: 0 1px 6px rgba(32,33,36,0.14); }
.g-src-fav { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.55rem; font-weight: 700; color: #fff; }
.g-fav-ss { background: var(--maroon); }
.g-fav-wp { background: #21759b; }
.g-fav-li { background: #0a66c2; font-size: 0.5rem; }
.g-src-name { font-size: 0.72rem; color: var(--g-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.g-result { padding-top: 0.1rem; }
.g-res-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.35rem; }
.g-fav { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--maroon); color: #EEF5FC; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.g-res-site { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.g-res-name { font-size: 0.84rem; color: var(--g-text); }
.g-res-url { font-size: 0.76rem; color: var(--g-url); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-res-title { display: inline-block; font-size: 1.3rem; line-height: 1.3; color: var(--g-link); margin: 0.15rem 0 0.25rem; font-weight: 400; }
.g-res-title:hover { text-decoration: underline; }
.g-res-snip { font-size: 0.92rem; line-height: 1.58; color: var(--g-sec); margin: 0; }
.g-res-snip .g-date { color: #70757a; }
.g-res-snip b { color: var(--g-sec); font-weight: 700; }

.hero h1 .seo-quip {
  display: block; font-family: var(--font-body); font-size: 0.92rem; font-weight: 400;
  font-style: normal; letter-spacing: 0; line-height: 1.5; color: var(--muted);
  margin-top: 1rem; max-width: 30em;
}
.hero h1 .seo-quip .hl { color: var(--maroon); font-weight: 600; }
.hero-lede { max-width: 30em; margin-bottom: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-meta .stat .num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--maroon); display: block; }
.hero-meta .stat .lbl { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; display: block; }

/* Portrait frame */
.portrait-frame { position: relative; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 220px 220px 8px 8px;
  overflow: hidden; background: linear-gradient(160deg, var(--blush), var(--blush-deep) 60%, var(--clay));
  box-shadow: var(--shadow-raise);
  border: 1px solid rgba(63,114,171,0.3);
}
.portrait.tall { aspect-ratio: 4/5; }
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--maroon-deep);
}
.portrait-placeholder .mono { font-family: var(--font-display); font-size: 4rem; letter-spacing: 0.05em; }
.portrait-placeholder .cap { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(33,71,122,0.6); margin-top: 0.4rem; }
.portrait-ring { position: absolute; inset: -14px; border: 1px solid var(--line-gold); border-radius: 230px 230px 14px 14px; z-index: -1; }
.portrait-badge {
  position: absolute; right: -18px; bottom: 30px;
  background: var(--paper); border: 1px solid var(--line-gold); border-radius: 100px;
  padding: 0.7rem 1.1rem; display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-card); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; color: var(--maroon);
}
.portrait-badge svg { width: 22px; height: 22px; color: var(--gold); }

/* ---------- AI Overview (generative-answer mockup) ---------- */
.ai-overview-sec { position: relative; }
.ai-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--paper) 0%, var(--cream-card) 100%);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-card);
}
/* soft animated gold sheen along the top edge (no purple AI cliché) */
.ai-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold), var(--gold-soft), transparent);
  background-size: 200% 100%; animation: aiSheen 5s linear infinite;
}
@keyframes aiSheen { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .ai-card::before { animation: none; } }
.ai-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.ai-spark {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--maroon); color: var(--gold-pale);
}
.ai-spark svg { width: 18px; height: 18px; }
.ai-spark.pulse svg { animation: aiTwinkle 2.4s var(--ease) infinite; }
@keyframes aiTwinkle { 0%,100% { transform: scale(1) rotate(0); opacity: 0.95; } 50% { transform: scale(1.18) rotate(18deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-spark.pulse svg { animation: none; } }
.ai-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--maroon-ink); }
.ai-tag {
  margin-left: auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line-gold); border-radius: 100px; padding: 0.35em 0.75em;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.ai-tag .liveball { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(127,140,114,0.22); }
.ai-query {
  font-size: 0.86rem; color: var(--muted); margin-bottom: 1.1rem;
  padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line-gold);
}
.ai-query .q { color: var(--charcoal); font-style: italic; font-family: var(--font-display); font-size: 1.15em; }
.ai-answer { font-size: 1.06rem; line-height: 1.72; color: var(--charcoal); }
.ai-answer .nm { color: var(--maroon); font-weight: 700; }
.ai-answer .src {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: super; font-size: 0.6rem; font-weight: 700; line-height: 1;
  width: 1.25em; height: 1.25em; border-radius: 50%; margin-left: 2px;
  background: var(--gold-pale); color: var(--maroon-deep);
}
/* word-by-word stream reveal — base state is VISIBLE; hidden only once JS
   opts in via .will-stream, so the answer can never get stuck invisible */
.ai-answer .w { opacity: 1; }
.ai-answer.will-stream .w { opacity: 0; transition: opacity 0.34s var(--ease); }
.ai-answer.will-stream .w.on { opacity: 1; }
.ai-cites { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.ai-cites .cl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 0.2rem; }
.ai-cite {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--charcoal); background: var(--paper);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.35em 0.8em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.ai-cite:hover { border-color: var(--gold); color: var(--maroon); }
.ai-cite .n { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-pale); color: var(--maroon-deep); font-size: 0.56rem; font-weight: 700; }
.ai-foot { margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted); font-style: italic; font-family: var(--font-display); display: flex; align-items: center; gap: 0.5rem; }
.ai-foot svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--line-gold); }

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.7rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service card */
.service-card { display: flex; flex-direction: column; }
.service-card .num-tag { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blush), var(--ivory-deep));
  border: 1px solid var(--line-gold); color: var(--maroon); margin-bottom: 1.3rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.2rem; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.chip {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: var(--sage-deep);
  background: rgba(127,140,114,0.12); border: 1px solid rgba(127,140,114,0.22);
  padding: 0.32em 0.75em; border-radius: 100px;
}

/* ---------- Snapshot / expertise ---------- */
.expertise-list { display: grid; gap: 0; }
.expertise-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.expertise-item:last-child { border-bottom: 1px solid var(--line); }
.expertise-item .e-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.expertise-item .e-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--maroon-ink); }
.expertise-item .e-desc { color: var(--muted); font-size: 0.96rem; max-width: 34ch; }
@media (max-width: 720px){ .expertise-item { grid-template-columns: auto 1fr; } .expertise-item .e-desc { grid-column: 2; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-gold); }
.tl-item { position: relative; padding: 0 0 clamp(2rem,4vw,2.8rem) 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ivory); border: 1.6px solid var(--gold);
}
.tl-item.now::before { background: var(--maroon); border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(46,94,153,0.15); }
.tl-date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tl-role { font-family: var(--font-display); font-size: clamp(1.3rem,2vw,1.6rem); color: var(--maroon-ink); margin: 0.3rem 0 0.1rem; }
.tl-org { font-weight: 700; color: var(--charcoal); font-size: 0.92rem; }
.tl-org .place { color: var(--muted); font-weight: 400; }
.tl-item p { color: var(--muted); font-size: 0.97rem; margin-top: 0.7rem; max-width: 60ch; }

/* ---------- WordPress highlight ---------- */
.wp-feature { position: relative; overflow: hidden; }
.wp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.badge-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.9rem; }
.wp-badge {
  background: rgba(252,254,255,0.06); border: 1px solid rgba(195,217,239,0.22);
  border-radius: 10px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.wp-badge:hover { transform: translateY(-4px); border-color: var(--gold-soft); background: rgba(255,252,246,0.1); }
.wp-badge .b-ico { width: 34px; height: 34px; color: var(--gold-soft); }
.wp-badge .b-ico svg { width: 100%; height: 100%; }
.wp-badge .b-title { font-family: var(--font-display); font-size: 1.25rem; color: #EEF5FC; line-height: 1.1; }
.wp-badge .b-meta { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.wp-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.wp-tag { font-size: 0.74rem; color: var(--blush); border: 1px solid rgba(195,217,239,0.28); padding: 0.4em 0.9em; border-radius: 100px; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post-thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blush), var(--ivory-deep));
  color: rgba(33,71,122,0.5);
}
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-thumb img, .post-card:hover .post-thumb .ph svg { transform: scale(1.05); }
.post-cat {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(250,245,235,0.95); color: var(--maroon); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.45em 0.85em; border-radius: 100px;
}
.post-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.post-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; transition: color 0.3s var(--ease); }
.post-card:hover h3 { color: var(--maroon); }
.post-card .excerpt { color: var(--muted); font-size: 0.95rem; flex: 1; }
.post-card .read { margin-top: 1.2rem; }

/* Featured post (big) */
.featured-post { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; overflow: hidden; padding: 0; }
.featured-post .post-thumb { aspect-ratio: auto; min-height: 380px; }
.featured-post .fp-body { padding: clamp(2rem,4vw,3.2rem); display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { margin: 0.8rem 0 1rem; }
@media (max-width: 820px){ .featured-post { grid-template-columns: 1fr; } .featured-post .post-thumb { min-height: 240px; } }

/* Category filters */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
  background: transparent; border: 1px solid var(--line); padding: 0.6em 1.2em; border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--maroon); }
.filter-btn.active { background: var(--maroon); color: #EEF5FC; border-color: var(--maroon); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 3.5rem; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  font-size: 0.9rem; font-weight: 600; color: var(--charcoal); border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.pagination a:hover { border-color: var(--line-gold); color: var(--maroon); }
.pagination .current { background: var(--maroon); color: #EEF5FC; }
.pagination .dots { border: none; }

/* ---------- Single post ---------- */
.article { max-width: var(--maxw-narrow); margin: 0 auto; }
.article-header { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; align-items: center; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; margin-top: 1.5rem; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.article-hero-img { aspect-ratio: 16/8; border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 clamp(2.5rem,5vw,3.5rem); background: linear-gradient(150deg, var(--blush), var(--ivory-deep)); display: grid; place-items: center; color: rgba(33,71,122,0.4); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.prose { font-size: 1.12rem; line-height: 1.78; color: var(--charcoal); }
.prose > * { max-width: var(--maxw-narrow); margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin: 2.8rem 0 1rem; color: var(--maroon-ink); }
.prose h3 { margin: 2rem 0 0.8rem; color: var(--maroon-ink); }
.prose p { margin-bottom: 1.4rem; }
.prose a { color: var(--maroon); border-bottom: 1px solid var(--line-gold); transition: border-color 0.3s var(--ease); }
.prose a:hover { border-color: var(--maroon); }
.prose strong { font-weight: 700; color: var(--maroon-ink); }
.prose em { font-style: italic; }
.prose code { font-family: ui-monospace, "SF Mono", monospace; font-size: 0.88em; background: var(--cream-card); border: 1px solid var(--line); border-radius: 5px; padding: 0.15em 0.45em; color: var(--maroon); }

/* Lists — markdown renders plain <ul>/<ol>, match .bullets style */
.prose ul, .prose ol { margin: 0 auto 1.6rem; padding-left: 0; list-style: none; max-width: var(--maxw-narrow); }
.prose ul li, .prose ol li { position: relative; padding-left: 1.6rem; margin-bottom: 0.75rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.prose ol { counter-reset: prose-ol; }
.prose ol li::before { counter-increment: prose-ol; content: counter(prose-ol); position: absolute; left: 0; top: 0.05em; font-size: 0.78rem; font-weight: 700; color: var(--maroon); letter-spacing: 0.04em; }

/* Explicit .bullets class still works */
.prose ul.bullets { margin: 0 auto 1.4rem; padding-left: 1.2rem; list-style: none; max-width: var(--maxw-narrow); }
.prose ul.bullets li { position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* Blockquote — markdown > becomes <blockquote>, style like pullquote */
.prose blockquote {
  font-family: var(--font-display); font-size: clamp(1.22rem,2vw,1.55rem); line-height: 1.45; font-style: italic;
  color: var(--maroon); max-width: 660px !important; margin: 2.5rem auto !important;
  padding: 1.2rem 1.6rem; border-left: 3px solid var(--gold);
  background: var(--cream-card); border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.prose blockquote p { margin: 0; max-width: none; }
.prose blockquote::before { content: "\201C"; font-size: 3rem; color: var(--gold-soft); position: absolute; top: -0.1rem; left: 1.4rem; line-height: 1; }

.pullquote {
  font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.3; font-style: italic;
  color: var(--maroon); text-align: center; max-width: 680px !important; margin: 2.5rem auto !important;
  padding: 1.5rem 0; position: relative;
}
.pullquote::before { content: "\201C"; font-size: 3.5rem; color: var(--gold-soft); display: block; line-height: 0.6; margin-bottom: 0.4rem; }

/* Author card */
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.author-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(150deg, var(--blush), var(--clay)); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--maroon-deep); border: 1px solid var(--line-gold); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); }
.field label .req { color: var(--maroon); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9em 1em; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(46,94,153,0.12);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(106,98,90,0.55); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3503f; box-shadow: 0 0 0 3px rgba(179,80,63,0.12); }
.field .err { font-size: 0.76rem; color: #b3503f; letter-spacing: 0.02em; text-transform: none; font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-note { font-size: 0.84rem; color: var(--muted); }
.form-success {
  display: none; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; border-radius: 8px;
  background: rgba(127,140,114,0.12); border: 1px solid rgba(127,140,114,0.3); color: var(--sage-deep);
  font-weight: 600; font-size: 0.92rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* ---------- Info / contact tiles ---------- */
.info-tile { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.info-tile:last-child { border-bottom: 1px solid var(--line); }
.info-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--maroon); }
.info-ico svg { width: 22px; height: 22px; }
.info-tile h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.info-tile a, .info-tile p { color: var(--charcoal); font-size: 1.02rem; margin: 0; }
.info-tile a:hover { color: var(--maroon); }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,2vw,1.6rem); counter-reset: step; }
.process-step { position: relative; padding-top: 2.5rem; }
.process-step .p-num {
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 3.2rem; line-height: 0.8;
  color: var(--gold-pale);
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; }
.process-step::after { content: ""; position: absolute; top: 1.5rem; left: 3.4rem; right: -0.8rem; height: 1px; background: var(--line-gold); }
.process-step:last-child::after { display: none; }
@media (max-width: 820px){ .process-grid { grid-template-columns: repeat(2,1fr); } .process-step::after { display: none; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3rem,7vw,5.5rem) 0 clamp(2.5rem,5vw,3.5rem); background: var(--ivory-deep); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 1.3rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 50ch; margin-top: 1.5rem; }
.breadcrumb { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; display: flex; gap: 0.5rem; }
.breadcrumb a:hover { color: var(--maroon); }
.breadcrumb .sep { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #EEF5FC; max-width: 18ch; margin: 0 auto 1.2rem; }
.cta-band p { color: var(--blush); max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- Logo / clients strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem,4vw,3.5rem); }
.logo-item { font-family: var(--font-display); font-size: clamp(1.1rem,2vw,1.5rem); color: var(--muted); opacity: 0.8; letter-spacing: 0.02em; }
.logo-item .lt { font-size: 0.6rem; display: block; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-body); color: var(--gold); margin-top: 2px; }

/* ---------- Skills ---------- */
.skill-group { padding: 1.8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 0.5fr 1fr; gap: 1.5rem; }
.skill-group:last-child { border-bottom: 1px solid var(--line); }
.skill-group h3 { font-size: 1.4rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: flex-start; }
.skill-tag { font-size: 0.85rem; color: var(--charcoal); background: var(--cream-card); border: 1px solid var(--line); padding: 0.5em 1em; border-radius: 100px; transition: all 0.3s var(--ease); }
.skill-tag:hover { border-color: var(--gold); color: var(--maroon); }
@media (max-width: 680px){ .skill-group { grid-template-columns: 1fr; gap: 0.8rem; } }

/* ---------- Values ---------- */
.value-card { text-align: left; }
.value-card .v-ico { width: 46px; height: 46px; color: var(--maroon); margin-bottom: 1rem; }
.value-card .v-ico svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-ink); color: var(--blush); position: relative; overflow: hidden; }
.footer-top { padding: clamp(3.5rem,6vw,5.5rem) 0 clamp(2.5rem,4vw,3.5rem); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem,4vw,3rem); }
.footer-brand .brand-name { color: #EEF5FC; }
.footer-brand p { color: rgba(232,212,198,0.7); margin-top: 1.2rem; max-width: 30ch; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.2rem; }
.footer-col a { display: block; color: rgba(232,212,198,0.82); font-size: 0.96rem; padding: 0.35rem 0; transition: color 0.3s var(--ease), padding 0.3s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(195,217,239,0.16); padding: 1.6rem 0; position: relative; z-index: 2; }
.footer-bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(232,212,198,0.6); }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(195,217,239,0.24); display: grid; place-items: center; color: var(--blush); transition: all 0.3s var(--ease); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-ink); }
.footer-social svg { width: 18px; height: 18px; }
.footer-orn { position: absolute; right: -40px; top: -40px; width: 280px; height: 280px; color: rgba(195,217,239,0.06); z-index: 1; }
.footer-orn svg { width: 100%; height: 100%; }

/* ---------- Scroll reveal (transform-only — content is ALWAYS visible) ----------
   Opacity is never animated, so text can never be left invisible if the
   IntersectionObserver/transition clock is throttled (embeds, background tabs,
   print/PDF). The offset state is gated behind html.js-anim, which a failsafe
   in main.js removes so elements always settle into their final position. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal { transform: translateY(22px); transition: transform 0.75s var(--ease); }
  html.js-anim .reveal.d1 { transition-delay: 0.07s; }
  html.js-anim .reveal.d2 { transition-delay: 0.14s; }
  html.js-anim .reveal.d3 { transition-delay: 0.21s; }
  html.js-anim .reveal.d4 { transition-delay: 0.28s; }
  html.js-anim .reveal.in { transform: none; }
}

/* ---------- Misc ---------- */
.pill-note { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--cream-card); border: 1px solid var(--line-gold); border-radius: 100px; padding: 0.5em 1.1em; font-size: 0.8rem; color: var(--maroon); font-weight: 600; }
.pill-note .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.30); animation: pulse-green 2s ease-in-out infinite; }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.30); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.15); } }
.two-col-text { columns: 2; column-gap: 3rem; }
@media (max-width: 680px){ .two-col-text { columns: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 380px; margin: 0 auto; order: -1; }
  .wp-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn, .nav-cta::before { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.2rem 1.5rem; }
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-avatar { margin: 0 auto; }
  .g-ai-cols { grid-template-columns: 1fr; gap: 0.9rem; }
  .g-ai-srcs { flex-direction: row; flex-wrap: wrap; }
  .g-src { flex: 1 1 auto; }
  .g-serp { padding: 1rem 1rem 1.15rem; }
  .g-typed { font-size: 0.92rem; }
  .g-res-title { font-size: 1.15rem; }
  .g-bar-icons { gap: 0.5rem; }
}

