/* Bulvar Building — design system
   Concept: "Drawn, then built". Paper + graphite, orange used as a precise signal only. */
:root {
  --paper: #f4f1ec;
  --stone: #e7e2da;
  --ink: #16181b;
  --graphite: #1a1c1f;
  --graphite-2: #232629;
  --mute: #57524b;
  --mute-dark: #b9b3a9;
  --line: rgba(22, 24, 27, .16);
  --line-dark: rgba(244, 241, 236, .18);
  --accent: #a94f24;
  --accent-deep: #8f4420;
  --accent-text: #9c4a22;
  --accent-dark: #d27a48;
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Marck Script", cursive;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, 0, 1);
  --nav-h: 76px;
}

html { scroll-behavior: auto; overflow-x: clip; }
/* Scoped reset for pages that do not load Tailwind (homepage) */
:where(body.no-tw) *, :where(body.no-tw) *::before, :where(body.no-tw) *::after { box-sizing: border-box; }
:where(body.no-tw) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(body.no-tw) :where(ul, ol) { list-style: none; padding: 0; }
:where(body.no-tw) :where(h1, h2, h3, h4) { font-weight: inherit; font-size: inherit; }
:where(body.no-tw) :where(button, input, textarea) { font: inherit; color: inherit; margin: 0; }
:where(body.no-tw) :where(a) { text-decoration: none; }
:where(body.no-tw) :where(img, svg) { display: block; }
:where(body.no-tw) [hidden] { display: none !important; }

body.site { margin: 0; font-feature-settings: "locl" 0; font-variant-ligatures: common-ligatures; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.site.is-locked { overflow: hidden; }
body.site ::selection { background: var(--accent); color: #fff; }
.site img { display: block; max-width: 100%; }
.site a { color: inherit; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; }
.skip:focus { top: 12px; }
:where(a, button, input, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type primitives ---------- */
.label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; line-height: 1.4; }
.display, .hero__title, .lead { text-wrap: balance; }
.display { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.02em; }
.display em { font-style: italic; font-weight: 300; }
.lead { font-family: var(--sans); font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }
.idx { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--mute); font-variant-numeric: tabular-nums; }
.rule { height: 1px; background: var(--line); border: 0; }
.on-dark { color: var(--paper); }
.on-dark .rule { background: var(--line-dark); }
.on-dark .idx { color: var(--mute-dark); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; background: var(--accent); color: var(--paper) !important; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; transition: background-color .3s var(--ease); }
.btn:hover { background: var(--accent-deep); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 34px; }
.btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper) !important; }
.tlink { position: relative; display: inline-block; text-decoration: none; padding-bottom: 4px; }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.tlink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- reveal (progressive; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h); color: var(--paper); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; text-decoration: none; height: 100%; }
.nav__logo { position: relative; flex: none; width: 90px; height: 48px; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s var(--ease); }
.nav__logo .l-dark { opacity: 0; }
.nav__name { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1; white-space: nowrap; padding: 7px 0 7px 16px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 40%, transparent); transition: color .4s var(--ease); }
.nav__links { display: none; align-items: center; gap: 34px; }
.nav-link { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; position: relative; padding: 8px 0; opacity: .9; transition: opacity .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-decoration: none; padding: 11px 18px; box-shadow: inset 0 0 0 1px currentColor; transition: background-color .3s, color .3s; white-space: nowrap; }
.nav__cta:hover { background: var(--paper); color: var(--ink); }
.nav__toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; background: none; border: 0; color: inherit; cursor: pointer; margin-right: -10px; position: relative; z-index: 2; }
.nav__toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
.nav.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .l-light { opacity: 0; }
.nav.is-solid .l-dark { opacity: 1; }
.nav.is-solid .nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav.is-solid .nav__name { color: var(--ink); }
.nav-open .nav { background: transparent; color: var(--paper); box-shadow: none; }
.nav-open .nav .l-light { opacity: 1; }
.nav-open .nav .l-dark { opacity: 0; }
.nav-open .nav .nav__name { color: var(--paper); }

.nav-menu { position: fixed; inset: 0; z-index: 1; background: var(--graphite); color: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s; overflow-y: auto; }
.nav-menu.active { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }
.nav-menu a.mobile-nav-link { display: flex; align-items: baseline; gap: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9vw, 52px); line-height: 1.15; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line-dark); transform: translateY(14px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.nav-menu.active a.mobile-nav-link { transform: none; opacity: 1; }
.nav-menu a.mobile-nav-link:nth-child(2) { transition-delay: .05s; }
.nav-menu a.mobile-nav-link:nth-child(3) { transition-delay: .1s; }
.nav-menu a.mobile-nav-link:nth-child(4) { transition-delay: .15s; }
.nav-menu a.mobile-nav-link:nth-child(5) { transition-delay: .2s; }
.nav-menu a.mobile-nav-link:nth-child(6) { transition-delay: .25s; }
.nav-menu a.mobile-nav-link .idx { font-size: 11px; }
.nav-menu__foot { margin-top: 32px; font-size: 14px; color: var(--mute-dark); display: grid; gap: 4px; }
.nav-menu__foot a { text-decoration: none; color: var(--paper); }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-block; }
  .nav__toggle, .nav-menu { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--graphite); color: var(--paper); display: grid; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; z-index: -2; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: hero-settle 2s var(--ease) both; }
.hero__scrim { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(26,28,31,.94) 0%, rgba(26,28,31,.72) 38%, rgba(26,28,31,.18) 72%, rgba(26,28,31,.1) 100%), linear-gradient(0deg, rgba(26,28,31,.7) 0%, rgba(26,28,31,0) 38%); }
.hero__in { align-self: end; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(88px, 12vh, 132px); }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; color: var(--accent-dark); margin-bottom: clamp(20px, 3vh, 32px); }
.hero__eyebrow i { display: block; width: 56px; height: 1px; background: currentColor; transform-origin: left; animation: line-grow 1.1s .15s var(--ease) both; }
.hero__brand { font-family: var(--script); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: var(--paper); margin-bottom: 14px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.2vw, 84px); line-height: 1.04; letter-spacing: -.02em; max-width: 15.5em; }
.hero__lead { margin-top: clamp(20px, 3vh, 32px); max-width: 34em; font-size: clamp(16px, 1.25vw, 18px); font-weight: 500; color: rgba(244,241,236,.84); line-height: 1.7; }
.hero__actions { margin-top: clamp(28px, 4.5vh, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero__meta { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line-dark); }
.hero__meta-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-block: 18px; color: rgba(244,241,236,.78); }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--paper); }
.hero__ruler { position: absolute; z-index: 0; right: var(--gutter); top: calc(var(--nav-h) + 28px); bottom: 70px; width: min(32vw, 460px); pointer-events: none; display: none; }
.hero__ruler .axis { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(244,241,236,.5); transform-origin: bottom; animation: grow-y 1.5s var(--ease) both; }
.hero__ruler .ticks { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; background: repeating-linear-gradient(to top, rgba(244,241,236,.45) 0 1px, transparent 1px 3.4%); animation: fade-in 1s .9s both; opacity: 0; }
.hero__ruler .lvl { position: absolute; right: 0; width: 100%; height: 1px; bottom: var(--y); background: linear-gradient(to left, rgba(244,241,236,.5), rgba(244,241,236,0)); transform-origin: right; animation: line-grow 1.3s var(--ease) both; animation-delay: var(--d); }
.hero__ruler .lvl span { position: absolute; right: 16px; bottom: 8px; color: var(--accent-dark); font: 600 11px/1 var(--sans); letter-spacing: .16em; opacity: 0; animation: fade-in .8s calc(var(--d) + .6s) both; }
@media (min-width: 900px) { .hero__ruler { display: block; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__in > * { animation: rise .9s var(--ease) both; }
.hero__in > *:nth-child(2) { animation-delay: .08s; }
.hero__in > *:nth-child(3) { animation-delay: .16s; }
.hero__in > *:nth-child(4) { animation-delay: .24s; }
.hero__in > *:nth-child(5) { animation-delay: .32s; }
@media (max-width: 899px) {
  .hero__scrim { background: linear-gradient(0deg, rgba(26,28,31,.96) 0%, rgba(26,28,31,.8) 45%, rgba(26,28,31,.25) 100%); }
  .hero__media img { object-position: 70% 30%; }
  .hero__meta-in { font-size: 11px; }
  .hero__meta-in span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Homepage sections
   ===================================================================== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arrow { display: block; width: 20px; height: 1px; background: currentColor; position: relative; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.arrow--l { transform: scaleX(-1); }
.x { position: relative; display: block; width: 20px; height: 20px; }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; background: currentColor; }
.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.round { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid currentColor; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s; }
.round:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round--dark { color: var(--paper); border-color: var(--line-dark); }
.round--dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ulink { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .3s; }
.ulink:hover { text-decoration-color: currentColor; }

.secthead { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(20px, 3vw, 36px); }
.secthead__rule { display: block; width: 56px; height: 1px; background: var(--line); }
.secthead--dark .secthead__rule { background: var(--line-dark); }
.about .secthead__rule, .rp .secthead__rule { width: 104px; background: linear-gradient(currentColor, currentColor) left center / 1px 9px no-repeat, linear-gradient(currentColor, currentColor) right center / 1px 9px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; color: var(--accent); opacity: .9; }
.rp .secthead__rule { color: var(--accent-dark); }
.about .secthead .idx { color: var(--accent-text); }
.rp .secthead .idx { color: var(--accent-dark); }

/* ---------- values ---------- */
.values { border-bottom: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { padding: clamp(28px, 3.4vw, 48px) clamp(18px, 2.4vw, 36px) clamp(28px, 3.4vw, 48px) 0; border-left: 1px solid var(--line); padding-left: clamp(18px, 2.4vw, 36px); }
.value:first-child { border-left: 0; padding-left: 0; }
.value__t { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 14px 0 8px; }
.value__p { color: var(--mute); font-size: 16px; line-height: 1.6; max-width: 24em; }
@media (max-width: 899px) {
  .values__grid { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { border-left: 0; padding-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 519px) {
  .values__grid { grid-template-columns: 1fr; }
  .value { border-left: 0; padding-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
}

/* ---------- about ---------- */
.about { padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 56px; align-items: start; }
.about__text { grid-column: 1 / span 7; }
.about__h { font-size: clamp(56px, 8.4vw, 132px); margin-bottom: clamp(32px, 4vw, 56px); }
.about__lead { font-size: clamp(19px, 1.6vw, 23px); color: var(--ink); max-width: 34em; }
.about__focus { margin-top: clamp(28px, 3vw, 44px); padding-top: 28px; border-top: 1px solid var(--line); }
.about__focus-t { color: var(--mute); margin-bottom: 14px; letter-spacing: .12em; }
.about__list { display: grid; gap: 12px; font-size: 17px; }
.about__list li { padding-left: 24px; position: relative; }
.about__list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--ink); opacity: .45; }
.about__p { margin-top: 32px; color: var(--mute); font-size: 17px; line-height: 1.75; max-width: 36em; }
.about__fig { grid-column: 9 / span 4; margin-top: clamp(0px, 8vw, 120px); }
.about__frame { position: relative; aspect-ratio: 4 / 5; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.crop { position: absolute; width: 26px; height: 26px; border: 0 solid var(--accent); pointer-events: none; }
.crop--tl { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; }
.crop--br { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; }
.about__cap { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); line-height: 1.6; }
@media (max-width: 1023px) {
  .about__text, .about__fig { grid-column: 1 / -1; }
  .about__fig { margin-top: 0; max-width: 520px; }
}

/* ---------- services ---------- */
.services { padding-block: 0 var(--section); }
.services__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.services__head > div { grid-column: 1 / span 7; }
.services__intro { grid-column: 9 / span 4; color: var(--mute); font-size: 17px; }
.services__h { font-size: clamp(40px, 5.6vw, 88px); }
.svc-list { border-bottom: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 40px; column-gap: clamp(16px, 3vw, 48px); align-items: baseline; padding-block: clamp(24px, 2.8vw, 40px); border-top: 1px solid var(--line); position: relative; transition: padding-left .6s var(--ease); }
.svc__t { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.2; letter-spacing: -.01em; transition: color .4s; }
.svc__p { color: var(--mute); font-size: 16.5px; line-height: 1.65; max-width: 30em; }
.svc__arrow { justify-self: end; align-self: center; width: 22px; height: 1px; background: var(--accent); position: relative; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .6s var(--ease); }
.svc__arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
@media (hover: hover) {
  .svc:hover { padding-left: 16px; }
  .svc:hover .svc__t { color: var(--accent-text); }
  .svc:hover .svc__arrow { opacity: 1; transform: none; }
}
@media (max-width: 899px) {
  .services__head > div, .services__intro { grid-column: 1 / -1; }
  .services__intro { margin-top: 20px; }
  .svc { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .svc__p { grid-column: 2; }
  .svc__arrow { display: none; }
}

/* ---------- typologies ---------- */
.typ { background: var(--stone); padding-block: var(--section); overflow: hidden; }
.typ__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.typ__head > div:first-child { grid-column: 1 / span 6; }
.typ__side { grid-column: 8 / span 5; }
.typ__h { font-size: clamp(36px, 4.6vw, 72px); }
.typ__intro { color: var(--mute); font-size: 16px; max-width: 34em; }
.typ__nav { display: flex; gap: 12px; margin-top: 28px; }
.typ__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter))); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.typ__track:focus-visible { outline-offset: -2px; }
.typ-card { flex: 0 0 clamp(262px, 29vw, 410px); scroll-snap-align: start; }
.typ-card__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); margin-bottom: 22px; }
.typ-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) { .typ-card:hover .typ-card__img img { transform: scale(1.035); } }
.typ-card__t { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; margin: 8px 0 12px; }
.typ-card__p { color: var(--mute); font-size: 16px; line-height: 1.65; }
@media (max-width: 899px) {
  .typ__head > div:first-child, .typ__side { grid-column: 1 / -1; }
  .typ__side { margin-top: 24px; }
}

/* ---------- projects (dark) ---------- */
.rp { position: relative; background: var(--graphite); color: var(--paper); padding-block: var(--section); }
.rp__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.rp__head > div { grid-column: 1 / span 8; }
.rp__intro { grid-column: 9 / span 4; color: var(--mute-dark); font-size: 17px; }
.rp__h { font-size: clamp(44px, 7vw, 112px); }
.rp__filters { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 2.6vw, 40px); padding-block: 18px; border-block: 1px solid var(--line-dark); margin-bottom: clamp(36px, 4.5vw, 64px); }
.rp-filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 8px 0; color: var(--mute-dark); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .3s, border-color .4s; }
.rp-filter:hover { color: var(--paper); }
.rp-filter.is-active { color: var(--paper); border-bottom-color: var(--accent-dark); }
.rp__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 2.4vw, 36px); row-gap: clamp(44px, 5vw, 72px); }
.rp-card { position: relative; grid-column: span 12; }
.rp-card[hidden] { display: none; }
.rp-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite-2); }
.rp-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity .4s; }
@media (hover: hover) { .rp-card:hover .rp-card-img { transform: scale(1.035); } }
.rp-card-gallery-btn { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; background: rgba(26, 28, 31, .62); color: var(--paper); border: 1px solid var(--line-dark); cursor: pointer; opacity: 0; transition: opacity .3s, background-color .3s, color .3s; }
.rp-prev { left: 14px; }
.rp-next { right: 14px; }
.rp-card-gallery-btn:hover { background: var(--paper); color: var(--ink); }
.rp-card:hover .rp-card-gallery-btn, .rp-card:focus-within .rp-card-gallery-btn { opacity: 1; }
@media (hover: none) { .rp-card-gallery-btn { opacity: 1; } }
.rp-dots { position: absolute; z-index: 2; left: 16px; bottom: 14px; right: 16px; display: flex; gap: 5px; pointer-events: none; }
.rp-dot { display: block; flex: 0 1 16px; height: 2px; background: rgba(244, 241, 236, .38); transition: background-color .3s, flex-basis .5s var(--ease); }
.rp-dot.active { background: var(--paper); flex-basis: 30px; }
.rp-meta { display: flex; align-items: baseline; gap: 16px; margin-top: 20px; }
.rp-meta .label { color: var(--mute-dark); }
.rp-n { margin-left: auto; }
.rp-t { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; margin-top: 6px; letter-spacing: -.01em; }
.rp-open { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.rp-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rp-open:focus-visible { outline: none; }
.rp-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 6px; }
.rp__empty { padding: 64px 0; text-align: center; color: var(--mute-dark); font-family: var(--serif); font-size: 24px; font-weight: 400; }
.rp__empty[hidden] { display: none; }
@media (min-width: 640px) { .rp-card { grid-column: span 6; } }
@media (min-width: 1024px) { .rp-card { grid-column: span 4; } }
@media (max-width: 899px) {
  .rp__head > div, .rp__intro { grid-column: 1 / -1; }
  .rp__intro { margin-top: 20px; }
}

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: #0e0f11; color: var(--paper); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; transition: opacity .35s var(--ease); }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.lb__count { color: var(--mute-dark); }
.lb__stage { padding: 0 clamp(20px, 8vw, 128px); min-height: 0; overflow: hidden; }
.lb__stage img { width: 100%; height: 100%; object-fit: contain; }
.lb__nav { position: absolute; top: 50%; margin-top: -26px; z-index: 2; }
.lb__nav--prev { left: clamp(10px, 2.4vw, 32px); }
.lb__nav--next { right: clamp(10px, 2.4vw, 32px); }
.lb__bottom { padding: 18px var(--gutter) 22px; display: grid; gap: 14px; justify-items: center; }
.lb__title { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 28px); }
.lb__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
.lb__thumb { flex: none; width: 56px; height: 56px; padding: 0; border: 1px solid transparent; background: none; opacity: .5; cursor: pointer; transition: opacity .3s, border-color .3s; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb:hover { opacity: .85; }
.lb__thumb.is-active { opacity: 1; border-color: var(--accent-dark); }
.lb.is-single .lb__nav { display: none; }
@media (max-width: 639px) { .lb__nav { display: none; } .lb__stage { padding-inline: 12px; } }
.vm { position: fixed; inset: 0; z-index: 300; background: rgba(14, 15, 17, .97); display: grid; place-items: center; }
.vm[hidden] { display: none; }
.vm__close { position: absolute; top: 18px; right: var(--gutter); }
.vm__frame { width: min(1100px, 92vw); aspect-ratio: 16 / 9; }
.vm__frame iframe { width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- testimonials ---------- */
.tst { padding-block: var(--section); }
.tst__head { max-width: 46em; margin-bottom: clamp(40px, 5vw, 72px); }
.tst__h { font-size: clamp(36px, 4.6vw, 72px); }
.tst__intro { margin-top: 20px; color: var(--mute); }
.tq { margin: 0; }
.tst__body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 40px; align-items: start; }
.tq--lead { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 32px); }
.tq-list { grid-column: 7 / span 6; border-bottom: 1px solid var(--line); }
.tq__stars { color: var(--mute); margin-bottom: 18px; letter-spacing: .14em; }
.tq__who { margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tq--lead .tq__q { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.34; letter-spacing: -.01em; }
.tq--lead .tq__who { margin-top: 24px; }
.tq-list .tq { padding-block: 28px; border-top: 1px solid var(--line); }
.tq-list .tq:first-child { border-top: 0; padding-top: 0; }
.tq-list .tq__q { font-family: var(--sans); font-weight: 500; font-size: 17.5px; line-height: 1.65; color: #2a2c2f; }
.tq-list .tq__who { font-size: 12.5px; color: var(--mute); }
@media (max-width: 899px) {
  .tq--lead, .tq-list { grid-column: 1 / -1; position: static; }
  .tq--lead { padding-bottom: 8px; }
}

/* ---------- CTA band ---------- */
.cta { background: var(--graphite); color: var(--paper); padding-block: clamp(72px, 8vw, 120px); }
.cta__in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 32px; align-items: end; }
.cta__h { grid-column: 1 / span 8; font-size: clamp(32px, 4.2vw, 64px); font-weight: 400; }
.cta__side { grid-column: 9 / span 4; display: grid; gap: 28px; justify-items: start; }
.cta__p { font-size: 17px; line-height: 1.65; color: rgba(244,241,236,.8); }
@media (max-width: 899px) { .cta__h, .cta__side { grid-column: 1 / -1; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(72px, 8vw, 128px); }
.contact__head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 56px); }
.contact__h { font-size: clamp(40px, 4.8vw, 72px); }
.contact__intro { margin-top: 16px; color: var(--mute); font-size: 17px; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 40px; }
.contact-info-section { grid-column: 1 / span 4; }
.contact__form { grid-column: 6 / span 7; }
.contact__sub { color: var(--mute); margin-bottom: 18px; }
.cinfo > div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cinfo > div:last-child { border-bottom: 1px solid var(--line); }
.cinfo dt { color: var(--mute); }
.cinfo dd { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.6; }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.field label { display: block; color: var(--mute); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(22, 24, 27, .4); border-radius: 0; padding: 8px 0 10px; font-size: 17px; font-weight: 500; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin: 6px 0 28px; user-select: none; }
.check__text { font-size: 14.5px; line-height: 1.6; color: var(--mute); }
.checkbox-box { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 1px solid var(--ink); display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s; }
.checkbox-box svg { width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
.check:hover .checkbox-box { border-color: var(--accent); }
.check input:checked + .checkbox-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .checkbox-box svg { opacity: 1; }
.policy { position: relative; }
.policy__link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: help; }
.policy__tip { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 10px); width: min(380px, 84vw); padding: 16px 18px; background: var(--graphite); color: var(--paper); font-size: 12.5px; line-height: 1.6; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s; pointer-events: none; }
.policy__t { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.policy:hover .policy__tip, .policy:focus-within .policy__tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.contact__submit { width: 100%; justify-content: space-between; }
.success-message { display: none; margin-bottom: 28px; padding: 18px 20px; background: var(--stone); border-left: 2px solid var(--accent); color: var(--ink); }
.success-message.show { display: block; }
@media (max-width: 1023px) {
  .contact-info-section, .contact__form { grid-column: 1 / -1; }
}
@media (max-width: 519px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--graphite); color: var(--paper); padding-block: clamp(64px, 8vw, 112px) 28px; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 48px; padding-bottom: clamp(48px, 6vw, 80px); }
.foot__brand { grid-column: 1 / span 5; }
.foot__grid > div:nth-child(2) { grid-column: 7 / span 3; }
.foot__grid > div:nth-child(3) { grid-column: 10 / span 3; }
.foot__brand img { width: 120px; height: auto; margin-bottom: 20px; }
.foot__name { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1; color: var(--paper); margin-bottom: 16px; }
.foot__p { color: var(--mute-dark); max-width: 26em; font-size: 16px; }
.foot__h { color: var(--mute-dark); margin-bottom: 18px; }
.foot__list { display: grid; gap: 10px; font-size: 16px; }
.foot__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.foot__list a:hover { background-size: 100% 1px; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--mute-dark); }
.foot__bar a { text-decoration: underline; text-underline-offset: 4px; }
.foot__bar a:hover { color: var(--paper); }
@media (max-width: 899px) {
  .foot__brand, .foot__grid > div:nth-child(2), .foot__grid > div:nth-child(3) { grid-column: 1 / -1; }
}

/* =====================================================================
   Blog: index + articles (pages load Tailwind for legacy utility classes)
   ===================================================================== */
.page-main { padding-top: var(--nav-h); }

/* ---------- blog index ---------- */
.bhead { padding: calc(var(--nav-h) + clamp(56px, 8vw, 112px)) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.bhead__in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: 28px; align-items: end; }
.bhead__h { grid-column: 1 / span 8; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.4vw, 116px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.bhead__p { grid-column: 9 / span 4; color: var(--mute); font-size: 17px; line-height: 1.6; }
@media (max-width: 899px) { .bhead__h, .bhead__p { grid-column: 1 / -1; } }

.bgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(44px, 5vw, 72px) clamp(20px, 3vw, 48px); padding-block: clamp(44px, 6vw, 88px) var(--section); }
.bcard { grid-column: span 12; display: block; text-decoration: none; color: inherit; }
.bcard__in { display: block; }
.bcard__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); transition: transform 1.4s var(--ease); }
.bcard__frame { display: block; overflow: hidden; margin-bottom: 22px; }
@media (hover: hover) { .bcard:hover .bcard__img { transform: scale(1.03); } }
.bcard__body { display: block; }
.bcard__t { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.22; letter-spacing: -.005em; margin: 0 0 12px; transition: color .3s; }
.bcard__p { color: var(--mute); font-size: 16px; line-height: 1.65; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__more { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); transition: color .3s; }
.bcard:hover .bcard__more { color: var(--accent-text); }
.bcard__more .arrow { width: 22px; transition: width .4s var(--ease); }
.bcard:hover .bcard__more .arrow { width: 36px; }
.bcard:hover .bcard__t { color: var(--accent-text); }
@media (min-width: 900px) {
  .bcard:nth-child(1) { display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(24px, 4vw, 72px); align-items: center; padding-bottom: clamp(24px, 3vw, 48px); border-bottom: 1px solid var(--line); }
  .bcard:nth-child(1) .bcard__in { display: contents; }
  .bcard:nth-child(1) .bcard__frame { margin: 0; }
  .bcard:nth-child(1) .bcard__img { aspect-ratio: 16 / 10; }
  .bcard:nth-child(1) .bcard__t { font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.12; }
  .bcard:nth-child(1) .bcard__p { font-size: 17px; -webkit-line-clamp: 4; }
  .bcard:nth-child(n+2) { grid-column: span 4; }
  .bcard:nth-child(2), .bcard:nth-child(3), .bcard:nth-child(n+10) { grid-column: span 6; }
  .bcard:nth-child(2) .bcard__img, .bcard:nth-child(3) .bcard__img, .bcard:nth-child(n+10) .bcard__img { aspect-ratio: 16 / 10; }
}
@media (min-width: 640px) and (max-width: 899px) { .bcard:nth-child(n+2) { grid-column: span 6; } }

/* ---------- article page ---------- */
.art { padding-bottom: var(--section); }
.art__head { padding-top: clamp(40px, 6vw, 88px); max-width: 60rem; }
.art__back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); text-decoration: none; transition: color .3s; }
.art__back:hover { color: var(--accent-text); }
.art h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; margin: 0 0 24px; }
.art__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-block: 18px; border-block: 1px solid var(--line); }
.art__meta i { color: var(--mute); margin-right: 8px; }
.art__hero { display: block; width: 100%; height: clamp(240px, 42vw, 580px); object-fit: cover; margin-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.art-body { max-width: 44rem; color: #2a2c2f; }
.art-body:has(> .wp-toc-container) { max-width: none; display: grid; grid-template-columns: minmax(0, 44rem) minmax(240px, 1fr); column-gap: clamp(48px, 7vw, 120px); }
.art-body:has(> .wp-toc-container) > * { grid-column: 1; }
.art-body:has(> .wp-toc-container) > .wp-toc-container { grid-column: 2; grid-row: 1 / span 300; position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; max-height: calc(100vh - var(--nav-h) - 56px); overflow: auto; }
@media (max-width: 1179px) {
  .art-body:has(> .wp-toc-container) { display: block; }
  .art-body:has(> .wp-toc-container) > .wp-toc-container { position: static; max-height: none; }
}
.art-body p { font-size: 18px; line-height: 1.82; margin: 0 0 1.35em; }
.art-body p.text-lg { font-family: var(--sans); font-weight: 500; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.7; color: var(--ink); letter-spacing: -.01em; }
.art-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin: 2.4em 0 .7em; padding: 0; border: 0; scroll-margin-top: calc(var(--nav-h) + 24px); }
.art-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2vw, 27px); line-height: 1.25; color: var(--ink); margin: 2em 0 .6em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.art-body h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 1.6em 0 .5em; }
.art-body ul, .art-body ol { margin: 0 0 1.5em; padding: 0; list-style: none; font-size: 18px; line-height: 1.75; }
.art-body ul > li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.art-body ul > li::before { content: ""; position: absolute; left: 0; top: .82em; width: 14px; height: 1px; background: var(--ink); opacity: .4; }
.art-body ol { counter-reset: n; }
.art-body ol > li { position: relative; padding-left: 40px; margin-bottom: .7em; counter-increment: n; }
.art-body ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .5em; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--mute); font-variant-numeric: tabular-nums; }
.art-body .wp-toc-container ol > li::before, .art-body .wp-toc-container ul > li::before { content: none; }
.art-body strong { font-weight: 700; color: var(--ink); }
.art-body a:not([class*="bg-primary"]):not(.wp-toc-link) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .3s, color .3s; }
.art-body a:not([class*="bg-primary"]):not(.wp-toc-link):hover { color: var(--accent-text); text-decoration-color: currentColor; }
.art-body img { max-width: 100%; height: auto; margin-block: 2em; }
.art-body table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; background: transparent; }
.art-body div:has(> table) { overflow-x: auto; margin: 2em 0; }
.art-body th, .art-body td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px 14px 0; text-align: left; vertical-align: top; line-height: 1.55; }
.art-body th { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--ink); background: transparent; }
.art-body tr:last-child td { border-bottom: 0; }
.art-body blockquote { margin: 2em 0; padding-left: 28px; border-left: 2px solid var(--accent); font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.4; }
/* legacy callout boxes */
.art-body div[class*="rounded"], .art-body div[class*="bg-orange"], .art-body div[class*="bg-gray-50"], .art-body div[class*="bg-blue"], .art-body div[class*="bg-green"], .art-body div[class*="bg-yellow"] { border-radius: 0; }
.art-body div[class*="bg-orange"], .art-body div[class*="bg-gray-50"], .art-body div[class*="bg-blue"], .art-body div[class*="bg-green"], .art-body div[class*="bg-yellow"] { background: var(--stone); border: 0; border-left: 2px solid var(--accent); padding: clamp(24px, 3vw, 40px); margin-block: 2.5em; }
.art-body div[class*="bg-orange"] p:last-child, .art-body div[class*="bg-gray-50"] p:last-child { margin-bottom: 0; }
.art-body div[class*="bg-orange"] h3, .art-body div[class*="bg-gray-50"] h3, .art-body div[class*="bg-orange"] h4, .art-body div[class*="bg-gray-50"] h4 { margin-top: 0; }
.art-body a[class*="bg-primary"] { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; background: var(--accent); color: #fff; border-radius: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .3s; }

.art-body .text-center { text-align: left; }
.art-body .flex.justify-between { margin-top: 4em; padding-top: 28px; border-top: 1px solid var(--line); gap: 24px; font-size: 14px; }
.art-body .flex.justify-between a { text-decoration: none; }
.art-body .flex.justify-between .block { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }

/* table of contents */
.wp-toc-container { margin: 0 0 2.2em; padding: 0 0 0 22px; border-left: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; }
.wp-toc-title { margin: 0 0 14px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); border: 0; padding: 0; }
.wp-toc-list { list-style: none; margin: 0; padding: 0; }
.wp-toc-item { margin: 0; padding: 0; }
.wp-toc-item::before { content: none !important; }
.wp-toc-link { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 15px; line-height: 1.45; color: var(--mute); text-decoration: none !important; border: 0; background: none; transition: color .3s, transform .4s var(--ease); }
.wp-toc-link:hover { color: var(--ink); transform: translateX(4px); background: none !important; }
.wp-toc-number { flex: none; min-width: 22px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--mute); font-variant-numeric: tabular-nums; background: none; padding: 0; width: auto; height: auto; border-radius: 0; }
.wp-toc-text { flex: 1; }

/* FAQ */
.wp-faq-section, .faq-section { margin-top: 3.5em; }
.wp-faq-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; margin: 0 0 24px; padding: 0; border: 0; color: var(--ink); }
.wp-faq-underline { display: none; }
.wp-faq-item, .faq-item { margin: 0; padding: 26px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.wp-faq-item:last-child, .faq-item:last-child { border-bottom: 1px solid var(--line); }
.wp-faq-question, .faq-question { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; margin: 0 0 10px; color: var(--ink); }
.wp-faq-answer, .faq-answer { font-size: 17px; line-height: 1.75; color: var(--mute); }
.wp-faq-answer p, .faq-answer p { font-size: inherit; }

/* specificity fixes for TOC inside article body */
.art-body .wp-toc-title { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.art-body .wp-toc-container ol > li, .art-body .wp-toc-container li { padding-left: 0; margin: 0; }
.art-body .wp-toc-list { counter-reset: none; }

/* legacy table cleanup + hero grade */
.art-body table, .art-body thead, .art-body tbody, .art-body tr, .art-body th, .art-body td { background: transparent !important; box-shadow: none; }
.art-body div:has(> table) { border: 0; border-radius: 0; box-shadow: none; background: none; }
.hero__media img { filter: saturate(.86) contrast(1.05) brightness(.96); }

/* hero: photo anchored right, fades into graphite (less upscaling, cleaner type area) */
@media (min-width: 900px) {
  .hero__media { left: auto; width: min(66%, 1240px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
  .hero__media img { object-position: 50% 50%; }
  .hero__scrim { background: linear-gradient(90deg, rgba(26,28,31,.55) 0%, rgba(26,28,31,.15) 45%, rgba(26,28,31,0) 100%), linear-gradient(0deg, rgba(26,28,31,.72) 0%, rgba(26,28,31,0) 36%); }
}

/* contrast: dark label on bright orange */
.art-body a[class*="bg-primary"] { color: var(--paper); }
.art-body a[class*="bg-primary"]:hover { background: var(--accent-deep); }
.hero__ruler .lvl span { font-size: 12px; }

/* hero type: keep headline mostly on the graphite side */
.hero__title { font-size: clamp(34px, 4.5vw, 76px); max-width: 14em; }
@media (min-width: 900px) {
  .hero__media { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%); }
}

/* legacy inline-coloured links inside articles follow the link system */
.art-body a[style*="color"] { color: var(--ink) !important; text-decoration-color: var(--accent) !important; text-underline-offset: 4px !important; }
.art-body a[style*="color"]:hover { color: var(--accent-text) !important; }
@media (max-width: 639px) { .rp-media { aspect-ratio: 4 / 3; } }

/* accent on interaction only; sienna on dark surfaces */
.svc .idx { transition: color .4s; }
@media (hover: hover) { .svc:hover .idx { color: var(--accent-text); } }
.nav:not(.is-solid) .nav-link::after { background: var(--accent-dark); }
.rp :where(a, button):focus-visible, .hero :where(a, button):focus-visible, .foot :where(a, button):focus-visible, .cta :where(a, button):focus-visible, .lb :where(a, button):focus-visible { outline-color: var(--accent-dark); }
.cta .btn:focus-visible { outline-color: var(--accent-dark); }

/* consistent grade for mixed-quality project photos (natural colour on hover and in the lightbox) */
.rp-card-img { filter: saturate(.82) contrast(1.05) brightness(.97); transition: transform 1.6s var(--ease), filter .6s var(--ease), opacity .4s; }
@media (hover: hover) { .rp-card:hover .rp-card-img { filter: none; } }
.typ-card__img img { filter: saturate(.9) contrast(1.03); }
.rp-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -80px 60px -40px rgba(26, 28, 31, .55); z-index: 1; }
