/* 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; }
