/* Editorial rhythm and progressive motion. All colours come from the existing palette. */
html { scroll-padding-top: 112px; }
main[tabindex="-1"]:focus { outline: none; }
.motion-ui .site-header { position: fixed; }
.site-header { transition: padding 200ms ease; }
.nav-shell { transition: box-shadow 200ms ease, border-color 200ms ease; }
.site-header.is-scrolled { padding-block: 10px; }
.site-header.is-scrolled .nav-shell { border-color: var(--line); box-shadow: 0 8px 24px rgb(74 16 18 / .09); }
.header-sentinel { position: absolute; inset: 0 auto auto 0; width: 1px; height: 24px; pointer-events: none; }
.cms-preview-bar ~ .site-header { position: absolute; top: 52px; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ''; position: absolute; inset: auto 0 4px; height: 2px; background: var(--red-700); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.desktop-nav a[aria-current] { text-decoration: none; }
.desktop-nav a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.mobile-nav { max-height: calc(100svh - 106px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { border-radius: 8px; }
.mobile-nav a:is(:hover, :focus-visible) { background: var(--cream); }
.btn { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.text-link { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.text-link:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.hero { position: relative; overflow: clip; padding-block: 158px 64px; }
.hero-grid { grid-template-columns: minmax(0,1fr) minmax(260px,.43fr); gap: 46px; align-items: start; }
.hero-copy { min-width: 0; container-type: inline-size; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { position: relative; font-size: clamp(2rem,7.4vw,7rem); line-height: .99; max-width: none; letter-spacing: -.035em; }
@supports (font-size:1cqw) { .hero h1 { font-size: clamp(2rem,12cqw,7rem); } }
.hero h1::after { content: none; }
.hero-word-mask { display: inline-block; max-width: 100%; overflow: clip; vertical-align: top; padding-block: .06em .12em; margin-block: -.06em -.12em; }
.kinetic-four .hero-word-mask:nth-of-type(2) { font-size: .4em; vertical-align: baseline; margin-left: -.12em; letter-spacing: -.025em; }
.kinetic-four .hero-word-mask:nth-of-type(3) { display: block; font-size: .96em; }
.kinetic-four .hero-word-mask:nth-of-type(4) { display: block; width: fit-content; color: var(--red-700); font-size: 1.34em; margin-left: 9%; }
.hero-char { display: inline-block; transform-origin: 0 100%; }
.hero-intro { margin-top: 30px; max-width: 53ch; }
.hero-editorial { max-width: 54ch; margin-top: 18px; }
.hero .actions { margin-top: 26px; }
.hero-portrait { margin-top: 66px; }
.portrait-frame { position: relative; padding: 0 0 16px 16px; isolation: isolate; }
.portrait-frame::before { content: ''; position: absolute; inset: 18px 18px 0 0; z-index: -1; border: 2px solid var(--red-700); border-radius: 20px; }
.portrait-window { overflow: clip; border-radius: 20px; }
.hero-portrait img { border-radius: 0; aspect-ratio: 3/4; }
.hero-portrait figcaption { margin-left: 20px; max-width: 29ch; }
@media (prefers-reduced-motion: no-preference) {
  .kinetic-playing .hero-char { animation: kinetic-letter 860ms cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--word-delay) + var(--char-delay)); }
  .kinetic-playing .hero-word-mask:nth-of-type(3) .hero-char { animation-name: kinetic-letter-reverse; }
  .kinetic-playing .hero-word-mask:nth-of-type(4) .hero-char { animation-name: kinetic-letter-final; }
  .kinetic-playing .hero-copy > .eyebrow { animation: hero-support 650ms ease both; animation-delay: 50ms; }
  .kinetic-playing .portrait-window { animation: portrait-cut 1050ms cubic-bezier(.2,.7,.2,1) 420ms both; }
  .kinetic-playing .portrait-window img { animation: portrait-settle 1400ms cubic-bezier(.2,.7,.2,1) 420ms both; }
  .kinetic-playing .portrait-frame::before { animation: frame-draw 800ms cubic-bezier(.2,.7,.2,1) 850ms both; }
  .kinetic-playing .hero-portrait figcaption { animation: hero-support 550ms ease 1250ms both; }
  .kinetic-playing .hero-intro { animation: hero-support 550ms ease 1080ms both; }
  .kinetic-playing .hero-editorial { animation: hero-support 550ms ease 1220ms both; }
  .kinetic-playing .actions { animation: hero-support 550ms ease 1360ms both; }
  .kinetic-playing .actions:focus-within { animation: none !important; opacity: 1; transform: none; }
  .headline-enter { animation: headline-cut 800ms cubic-bezier(.16,1,.3,1) both; }
  @keyframes kinetic-letter { from { transform: translate3d(-.16em,115%,0) rotate(9deg); } to { transform: none; } }
  @keyframes kinetic-letter-reverse { from { transform: translate3d(.2em,120%,0) rotate(-7deg); } to { transform: none; } }
  @keyframes kinetic-letter-final { 0% { transform: translate3d(0,120%,0) scaleX(.72) rotate(5deg); } 75% { transform: translate3d(0,-.025em,0) scaleX(1.025); } 100% { transform: none; } }
  @keyframes portrait-cut { from { clip-path: inset(0 100% 0 0 round 20px); transform: translateX(28px) rotate(2deg); } to { clip-path: inset(0 0 0 0 round 20px); transform: none; } }
  @keyframes portrait-settle { from { transform: scale(1.13); } to { transform: scale(1); } }
  @keyframes frame-draw { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  @keyframes hero-support { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes headline-cut { from { clip-path: inset(100% 0 0); transform: translateY(32px); } to { clip-path: inset(0); transform: none; } }
}
/* No content is hidden while waiting for JavaScript, observers or fonts. */
.services-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.services-intro { position: sticky; top: 136px; }
.services-intro h2 { max-width: 13ch; }
.services-intro .section-intro { max-width: 34ch; }
.services-story .services-grid { display: block; margin-top: 0; }
.services-story .service-card { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 20px; padding: 42px 18px 44px 26px; min-height: 226px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.services-story .service-card::before { content: ''; position: absolute; left: 0; top: 36px; bottom: 36px; width: 3px; background: var(--red-700); transform: scaleY(0); transform-origin: top; transition: transform 360ms ease; }
.services-story .service-card.is-current::before,
.services-story .service-card:focus-within::before { transform: scaleY(1); }
.services-story .service-card .number { grid-column: 1; grid-row: 1 / span 2; margin: 2px 0 0; font-size: 1rem; }
.services-story .service-card h3 { grid-column: 2; font-size: clamp(1.65rem, 2.6vw, 2.3rem); max-width: 19ch; }
.services-story .service-card p:last-child { grid-column: 2; margin-top: 18px; max-width: 38ch; }
/* The method remains an ordered list with the same approved wording. */
.method-inline { margin-top: 52px; gap: 36px; }
.method-inline ol { flex: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; counter-reset: method; }
.method-inline li { position: relative; padding: 27px 20px 0 0; margin: 0 !important; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.4; counter-increment: method; }
.method-inline li::before,
.method-inline li + li::before { content: counter(method, decimal-leading-zero); position: absolute; left: 0; top: -12px; width: 26px; height: 24px; margin: 0; background: var(--paper); color: var(--red-700); font-size: .75rem; font-weight: 700; }
.method-inline > .text-link { flex: 0 0 auto; }
.method-grid { gap: 0; }
.method-step { position: relative; padding: 32px 32px 0 0; }
.method-step::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border: 2px solid var(--red-700); border-radius: 50%; background: var(--paper); transition: background-color 220ms ease; }
.method-step::after { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--red-700); transform: scaleX(0); transform-origin: left; transition: transform 500ms ease; }
.method-step.is-reached::before { background: var(--red-700); }
.method-step.is-reached::after { transform: scaleX(1); }
/* Lead analysis on the left; two shorter editorial items on the right. */
.analyses-grid { grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 0 40px; }
.analyses-grid > .analysis-card:first-child { grid-row: span 2; padding: 38px; }
.analyses-grid > .analysis-card:first-child h3 { font-size: clamp(2rem,3.1vw,2.7rem); line-height: 1.1; }
.analyses-grid > .analysis-card:first-child p { max-width: 43ch; margin-bottom: 32px; }
.analyses-grid > .analysis-card:not(:first-child) { background: transparent; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0; }
.analyses-grid > .analysis-card:not(:first-child) .meta { margin-bottom: 18px; }
.analyses-grid > .analysis-card:not(:first-child) h3 { font-size: clamp(1.5rem,2vw,1.85rem); }
.analysis-card h2 a,
.analysis-card h3 a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.analysis-card h2 a:is(:hover,:focus-visible),
.analysis-card h3 a:is(:hover,:focus-visible) { text-decoration-color: currentColor; }
.archive-grid .analysis-card:first-child { grid-column: 1 / -1; background: var(--cream); padding: 38px 42px; }
.archive-grid .analysis-card:first-child h2 { font-size: clamp(2rem,3.4vw,3rem); max-width: 30ch; }
.archive-grid .analysis-card:first-child p { max-width: 65ch; }
.archive-grid .analysis-card:first-child .text-link { margin-top: 6px; }
.contact { border-top: 4px solid var(--amber); padding-block: 92px; }
.contact h2 { font-size: clamp(2.8rem,5.5vw,4.6rem); line-height: 1.02; max-width: 12ch; }
.contact .email-link { display: inline-flex; align-items: center; gap: 24px; padding-block: 12px; border-bottom: 1px solid var(--cream); }
.email-link span { display: inline-block; transition: transform 180ms ease; }
.contact-form { border-top: 1px solid var(--ink-2); padding-top: 28px; }
.contact .btn-primary:is(:hover,:focus-visible) { background: var(--paper); color: var(--ink); }
@media (hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover { transform: translateY(-2px); }
  .email-link:hover span { transform: translateX(5px); }
}
@media (max-width:1100px) {
  .hero-grid { gap: 30px; grid-template-columns: minmax(0,1fr) minmax(230px,.42fr); }
  .hero-portrait { margin-top: 58px; }
  .services-layout { gap: 40px; }
  .analyses-grid { column-gap: 28px; }
  .analyses-grid > .analysis-card:first-child { padding: 28px; }
}
@media (max-width:900px) {
  .hero { padding-top: 140px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(210px,.4fr); gap: 26px; }
  .hero-portrait { margin-top: 52px; }
  html { scroll-padding-top: 104px; }
  .services-layout { grid-template-columns: 1fr; gap: 30px; }
  .services-intro { position: static; }
  .services-intro h2 { max-width: 22ch; }
  .services-intro .section-intro { max-width: 60ch; }
  .services-story .service-card { min-height: 0; padding-block: 30px; }
  .services-story .service-card h3 { max-width: none; }
  .method-inline { align-items: flex-start; gap: 24px; }
  .method-inline ol { display: grid; }
  .analyses-grid { gap: 0 28px; }
  .analyses-grid > .analysis-card:first-child h3 { font-size: 2rem; }
}
@media (max-width:640px) {
  .site-header.is-scrolled { padding-block: 10px; }
  .page-hero h1 { font-size: clamp(2rem,10.5vw,2.8rem); overflow-wrap: anywhere; }
  .hero { padding-block: 124px 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { overflow-wrap: anywhere; line-height: .99; }
  @supports (font-size:1cqw) { .hero h1 { font-size: clamp(2rem,12.5cqw,3.6rem); } }
  .hero .eyebrow { margin-bottom: 25px; max-width: 34ch; }
  .hero-intro { margin-top: 25px; }
  .kinetic-four .hero-word-mask:nth-of-type(4) { margin-left: 11%; font-size: 1.42em; }
  .hero-portrait { margin-top: 0; }
  .portrait-frame { padding: 0 0 12px 12px; }
  .hero-portrait img { aspect-ratio: 1.2/1; }
  .services-layout { gap: 28px; }
  .services-story .service-card { grid-template-columns: 30px minmax(0,1fr); column-gap: 14px; padding: 28px 0 30px 12px; }
  .services-story .service-card::before { top: 24px; bottom: 24px; width: 2px; }
  .services-story .service-card h3 { font-size: 1.65rem; }
  .services-story .service-card p:last-child { margin-top: 12px; }
  .method-inline { margin-top: 26px; }
  .method-inline ol { display: block; }
  .method-inline li { margin: 0 !important; padding: 0 0 24px 38px; border-top: 0; border-left: 1px solid var(--line); min-height: 38px; font-size: 1rem; }
  .method-inline li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .method-inline li::before,
  .method-inline li + li::before { top: 0; left: -10px; padding-inline: 2px; }
  .method-inline > .text-link { margin-top: 20px; }
  .method-grid { gap: 0; margin-left: 5px; }
  .method-step { padding: 0 0 32px 28px; border-top: 0; border-left: 1px solid var(--line); }
  .method-step:last-child { padding-bottom: 0; border-left-color: transparent; }
  .method-step::before { top: 4px; left: -6px; }
  .method-step::after { top: 4px; bottom: 0; left: -1px; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .method-step.is-reached::after { transform: scaleY(1); }
  .method-step:last-child::after { display: none; }
  .method-step .number { margin-bottom: 15px; }
  .analyses-grid { grid-template-columns: 1fr; gap: 24px; }
  .analyses-grid > .analysis-card:first-child { grid-row: auto; padding: 26px; }
  .analyses-grid > .analysis-card:first-child h3 { font-size: 1.85rem; }
  .analyses-grid > .analysis-card:not(:first-child) { padding-block: 24px 0; }
  .analyses-grid > .analysis-card:not(:first-child) h3 { font-size: 1.65rem; }
  .archive-grid .analysis-card:first-child { grid-column: auto; padding: 26px; }
  .archive-grid .analysis-card:first-child h2 { font-size: 1.85rem; }
  .contact { padding-block: 60px; }
  .contact h2 { font-size: 2.8rem; }
  .contact-grid { gap: 32px; }
  .contact-form { border-top-color: var(--cream); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .hero-char { animation: none !important; transform: none !important; }
  .services-story .service-card::before,
  .method-step::before,
  .method-step::after { transition: none; }
}
.motion-off .hero-char { animation: none !important; transform: none !important; }
