/* Micro-interactions after framer.com (Andrew, 2026-11-23). Small, fast and
   functional: menus that answer hover, buttons that answer a press, cards that
   lift, and content that settles in once as it scrolls into view. Everything
   motion-related is off under prefers-reduced-motion. */
:root { --mi-ease: cubic-bezier(.2, .8, .2, 1); --mi-fast: 140ms; --mi-med: 220ms; }

/* Header: links brighten on hover (the chevron already flips on open). */
.site-nav .nav-links > a, .site-nav .nav-dropdown > summary { transition: color var(--mi-fast) ease, opacity var(--mi-fast) ease; }
.site-nav .nav-links > a:hover, .site-nav .nav-dropdown > summary:hover, .site-nav .nav-dropdown[open] > summary { color: #fff; }

/* Menu panel: fades in and settles from just above. */
@keyframes mi-drop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.site-nav .nav-dropdown[open] > .nav-dropdown-menu { animation: mi-drop var(--mi-med) var(--mi-ease); transform-origin: top center; }
.site-nav .nav-dropdown-menu a { transition: color var(--mi-fast) ease, background-color var(--mi-fast) ease; }

/* Buttons: a touch brighter on hover, a short press when clicked. */
.button, .nav-cta, .hp-link, .be-goal-action { transition: color var(--mi-fast) ease, background-color var(--mi-fast) ease, border-color var(--mi-fast) ease, filter var(--mi-fast) ease, transform var(--mi-fast) var(--mi-ease); }
.button:hover, .nav-cta:hover { filter: brightness(1.07); }
.button:active, .nav-cta:active { transform: scale(.97); transition-duration: 70ms; }

/* Inline text links: the underline comes in on hover. */
main p a:not([class]), main li a:not([class]) { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; transition: text-decoration-color var(--mi-fast) ease, color var(--mi-fast) ease; }
main p a:not([class]):hover, main li a:not([class]):hover { text-decoration-color: currentColor; }

/* Cards: lift, the picture inside moves in slightly, and a press settles. */
.be-goal-link, .hw-tile { transition: box-shadow var(--mi-med) var(--mi-ease), transform var(--mi-med) var(--mi-ease); }
.be-goal-link:hover { transform: translateY(-2px); }
body .be-goal-link:active, body.home-page .hw-tile:active { transform: translateY(0) scale(.99); transition-duration: 90ms; }
.be-goal-image, .hv-frame { overflow: hidden; }
.be-goal-image img, .hv-frame img { transition: transform 600ms var(--mi-ease); }
.be-goal-link:hover .be-goal-image img, .hw-tile:hover .hv-frame img { transform: scale(1.03); }
.hw-tile .hw-go svg { transition: transform var(--mi-med) var(--mi-ease); }
.hw-tile:hover .hw-go svg { transform: translateX(2px); }

/* Scroll-in: set up only by micro-interactions.js, so without it nothing is hidden. */
html.mi-ready .mi-reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 520ms var(--mi-ease), transform 620ms var(--mi-ease), filter 520ms var(--mi-ease); transition-delay: var(--mi-delay, 0ms); }
html.mi-ready .mi-reveal.mi-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .site-nav .nav-dropdown[open] > .nav-dropdown-menu { animation: none; }
  .button:active, .nav-cta:active, .be-goal-link:hover, body .be-goal-link:active, body.home-page .hw-tile:active { transform: none; }
  .be-goal-link:hover .be-goal-image img, .hw-tile:hover .hv-frame img, .hw-tile:hover .hw-go svg { transform: none; }
  html.mi-ready .mi-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Page rhythm, same reference as the homepage (Andrew, 2026-11-23): sections
   sit on one page background instead of tinted boxes in mint, off-white and
   tan, and their content lines up with the page grid. Product UI (the white
   demo workspace) and the dark closing band keep their own surface. */
body.ps-site [data-buyer-entry] .be-buyer-section.be-outcomes, body.ps-site [data-buyer-entry] .be-how-to-use.be-how-to-use, body.ps-site [data-buyer-entry] .be-buyer-section.be-implementation,
body .be-buyer-section.be-outcomes, body .be-how-to-use, body .be-buyer-section.be-implementation {
  background: transparent; border-radius: 0; padding-left: 0; padding-right: 0;
}
body .section.industry-cta-section.studio-section { background: transparent; }

/* Type and surfaces after pentagram.com and linear.app (Andrew, 2026-11-23),
   inside the Fortune AI VI (Noto Sans, navy, cream): lighter and tighter
   headings, hierarchy carried by colour rather than weight, and cards drawn
   with a hairline instead of a drop shadow. Sizes stay with each template;
   weight, tracking and leading are set here for every page, so these use
   !important over the templates' own heading weights. */
:is(h1, h2) { font-weight: 560 !important; letter-spacing: -.022em !important; line-height: 1.1 !important; }
:is(h3, h4) { font-weight: 600 !important; letter-spacing: -.012em !important; line-height: 1.3 !important; }
footer :is(h2, h3, h4) { letter-spacing: 0 !important; }
/* Japanese: no negative tracking, a little more leading. */
:lang(ja) :is(h1, h2, h3, h4) { letter-spacing: 0 !important; line-height: 1.4 !important; word-break: auto-phrase; }
.ip-phrase { display: inline-block; }
:is(h1, h2, h3, h4) { font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }

/* Type scale: headings a step larger so the headline carries the section,
   set through the site's own scale variables (reading and layout systems),
   so every template follows. Body sizes stay. */
html body.studio-site[data-reading-template] { --reading-h1: clamp(2.25rem, 4.2vw, 3.75rem); --reading-h2: clamp(1.75rem, 3vw, 2.75rem); --reading-h3: clamp(1.125rem, 1.5vw, 1.375rem); }
:root:root { --layout-page-title: clamp(2.25rem, 4.4vw, 3.75rem); --layout-section-title: clamp(1.75rem, 3vw, 2.75rem); }

/* Surfaces: hairline border, smaller radius, no drop shadow; hover darkens the
   line instead of lifting a shadow. */
body.home-page :is(.hw-tile, .hw-customer, .hc-systems > li) { border: 1px solid rgba(15, 41, 73, .1); border-radius: 12px; box-shadow: none; }
body.home-page :is(.hw-tile, .hw-customer):hover { border-color: rgba(15, 41, 73, .24); box-shadow: 0 8px 24px -18px rgba(15, 41, 73, .35); }
body.home-page :is(.hw-view, .hv-alert) { border-radius: 8px; }
body.home-page .hw-tile:hover { transform: none; }

/* Other pages, same standard (Andrew, 2026-11-23).
   1. Section labels that repeat the heading under them ("The team" over
      "The people behind Fortune AI") are hidden. Labels over an item heading
      (h3: a role, an office, a guide type) stay, since they add information. */
:is(p.eyebrow, p.ps-eyebrow, p.dc-label, p.start-kicker):has(+ :is(h1, h2)),
p.eyebrow:has(+ .studio-intro-grid),
p.eyebrow:has(+ div > :is(h1, h2):first-child) { display: none !important; }
/* 2. No all-caps labels: the text is written in sentence case and shows as written. */
body :not(.site-nav *) { text-transform: none !important; }
:is(.blog-meta, .blog-topic-nav, .about-recognition-v2, .faq-industry-group) *, .guide-nav-label, .industry-proof-scene-label, .vertical-featured-insight strong { letter-spacing: 0 !important; }
/* 3. One page background: the blog's tan bands match the rest of the site. */
body :is(.blog-feature-section, .blog-archive-section, .start-cinema).section-cream, body .start-cinema { background: transparent !important; }
/* 4. Page and section headers: heading, then the intro under it, left aligned
      (the same layout as the homepage), instead of title left / intro far right. */
body :is(.studio-intro-grid, .about-hero-v2-grid, .about-team-v2 header) { display: block !important; }
body :is(.studio-lead-group, .about-hero-v2-copy) { max-width: 40rem; margin-top: 16px !important; margin-left: 0 !important; padding-top: 0 !important; }
body .about-team-v2 header > p { max-width: 40rem; margin-top: 12px; }
