/* ANMA subpages: what home.css does not have. Loaded after style.css and home.css, which stay untouched. Dark pages: <body class="hm page-fade">. White pages: <html class="hl"> and <body class="page-fade">. */

/* Page hero: the home page's type, left on the header's edge. */
.hm-phero { width: var(--hw); margin-inline: auto; padding-top: 100px; }
.hm-phero__sub { max-width: 40rem; margin-top: 16px; color: var(--i2); font: 400 1.0625rem/1.625rem var(--f); letter-spacing: -.004em; text-wrap: pretty; }
.hm-phero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hm-phero__meta { margin-top: 20px; color: var(--i3); font: var(--t13); letter-spacing: 0; }

/* Sections closer than the page's rhythm, and small notes under a block. */
.hm-sec--near { margin-top: 72px; }
.hm-sec--first { margin-top: 56px; }
.hm-note { margin-top: 12px; color: var(--i3); font: var(--t13); letter-spacing: 0; text-wrap: pretty; }
.hm-note a, .hm-prose a { text-decoration: underline; text-decoration-color: var(--l2); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* A tile that is not a link: same shape, no pointer, no hover, no press. */
.hm-plate { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: #1A1A1A; color: #fff; container-type: inline-size; isolation: isolate; }
.hm-plate__foot { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 3.25rem; padding: 10px 20px; border-top: var(--hl); font: var(--t14); }

/* Text left, object right: the general form of the AI block on the home page. Source order follows the eye. */
.hm-split { display: grid; gap: 32px 12px; }
.hm-split__txt .hm-p { max-width: 32rem; margin-top: 16px; }
.hm-split__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* The 12 column grid in named shares. */
.hm-grid2, .hm-grid3, .hm-grid4 { display: grid; gap: 12px; }

/* Data on hairlines: label, value. */
.hm-rows { border-bottom: var(--hl); }
.hm-rows > div { display: grid; gap: 2px 12px; padding: 14px 0; border-top: var(--hl); font: var(--t15); letter-spacing: -.003em; }
.hm-rows dt { color: var(--i3); }
.hm-rows dd { min-width: 0; overflow-wrap: anywhere; }

/* A list on hairlines without ticks. */
.hm-list li { padding: 12px 0; border-top: var(--hl); color: var(--i2); font: var(--t15); letter-spacing: -.003em; }
.hm-list li:last-child { border-bottom: var(--hl); }

/* Long text. */
.hm-prose { max-width: 42rem; color: var(--i2); font: var(--t16); letter-spacing: -.004em; }
.hm-prose p + p, .hm-prose p + ul, .hm-prose ul + p { margin-top: 16px; }
.hm-prose strong { color: var(--ink, #fff); font-weight: 500; }

/* Closing block: one question, one sentence, one action. */
.hm-cta { text-align: center; }
.hm-cta__sub { max-width: 36rem; margin: 16px auto 0; }
.hm-cta__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }

/* Nothing that needs a script stays on the page without one. */
@media (scripting: none) {
  [data-motion-toggle] { display: none !important; }
}

@media (min-width: 640px) {
  .hm-phero { padding-top: 112px; }
  .hm-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-rows > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 800px) {
  .hm-phero { padding-top: 136px; }
  .hm-phero__sub { margin-top: 20px; font-size: 1.125rem; line-height: 1.8125rem; }
  .hm-phero__cta { margin-top: 32px; }
  .hm-sec--first { margin-top: 72px; }
  .hm-cta > .hm-h2 { font-size: 3.5rem; line-height: 3.75rem; letter-spacing: -.016em; }
  .hm-cta__sub { margin-top: 20px; }
  .hm-cta__acts { margin-top: 32px; }
}
@media (min-width: 1000px) {
  .hm-split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hm-split__txt { grid-column: 1 / span 5; }
  .hm-split__obj { grid-column: 7 / -1; min-width: 0; }
  .hm-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-height: 500px) {
  .hm-phero { padding-top: 72px; }
}
@media (pointer: coarse) {
  .hm-note a, .hm-prose a { padding: 4px 0; }
}
@media (prefers-contrast: more) {
  .hm-plate { box-shadow: inset 0 0 0 1px var(--l1); }
}
@media print {
  .hm-plate { border: 1px solid #ccc; background: none; }
  .hm-rows > div, .hm-plate { break-inside: avoid; }
  .hm-phero { padding-top: 0; }
}

/* ---------- White pages. The kit's tokens and surfaces in black on white, the header stays the live site's: it follows <html data-theme> as it always has. ---------- */
html.hl { background: #fff; --accent: #0A0A0A; --accent-soft: rgba(0, 0, 0, .08); --ink: #0A0A0A; --i2: rgba(0, 0, 0, .68); --i3: rgba(0, 0, 0, .56); --l1: rgba(0, 0, 0, .10); --l2: rgba(0, 0, 0, .18); }
@media (min-resolution: 2dppx) { html.hl { --l1: rgba(0, 0, 0, .16); --l2: rgba(0, 0, 0, .26); } }
html.hl[data-theme="dark"] { background: #0A0A0A; }
.hl body { background: #fff; transition: none; }
.hl body.page-fade > main { animation-duration: 240ms; }
.hl :focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }
.hl .hm-noring:focus-visible { outline: none; }

/* The header: the site's tokens, not this page's. */
.hl .nav, .hl .drawer { --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --accent: #0a84ff; --accent-soft: rgba(10, 132, 255, .14); color: var(--fg); font-family: var(--font-sans); }
html.hl[data-theme="dark"] .nav, html.hl[data-theme="dark"] .drawer { --fg: #f5f5f7; --fg-muted: #8a8a90; --fg-dim: #86868f; --line: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .2); }
html.hl[data-theme="dark"] .nav :focus-visible, html.hl[data-theme="dark"] .drawer :focus-visible { outline-color: #fff; }
.hl .brand [data-logo]:not(.is-in) { display: block; width: 76px; height: 19px; background: url(anma-logo-black.png) center / contain no-repeat; }

/* Type and controls on white. */
.hl .hm-s { color: #0A0A0A; }
.hl .hm-pill--ink { background: #1D1D1F; color: #fff; }
.hl .hm-pill--soft { background: #F5F5F7; color: #0A0A0A; }
.hl .hm-pill--line { color: #0A0A0A; }
.hl .hm-tag { background: rgba(0, 0, 0, .06); color: rgba(0, 0, 0, .72); }
.hl .hm-start__mail a { color: #0A0A0A; }
.hl .hm-tabs button[aria-selected="true"] { background: #F5F5F7; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); color: #0A0A0A; }

/* Surfaces on white. */
.hl .hm-tile, .hl .hm-plate, .hl .hm-card, .hl .hm-panel { background: #F5F5F7; color: #0A0A0A; }
.hl .hm-ops__row b, .hl .hm-tr span { color: #0A0A0A; }

@media (hover: hover) {
  .hl .hm-pill--ink:hover { background: #3A3A3C; }
  .hl .hm-pill--soft:hover { background: #E8E8ED; }
  .hl .hm-pill--line:hover { background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 var(--hr) rgba(0, 0, 0, .34); }
  .hl .hm-textbtn:hover, .hl .hm-tabs button:hover { color: #0A0A0A; }
  .hl .hm-tile:hover { background: #EDEDF0; }
  .hl .hm-dir a:hover i { color: #0A0A0A; }
  .hl .hm-reel:hover .hm-reel__t { color: var(--i2); }
}

/* A dark section or a dark object on a white page: the footer has data-theme, because the header should turn with it. An object inside a section must not have it, or the whole header flips: it takes .hm-dk. */
.hl [data-theme="dark"], .hl .hm-dk { --ink: #fff; --i2: rgba(255, 255, 255, .72); --i3: rgba(255, 255, 255, .56); --l1: rgba(255, 255, 255, .10); --l2: rgba(255, 255, 255, .18); --hl: var(--hr) solid var(--l1); }
@media (min-resolution: 2dppx) { .hl [data-theme="dark"], .hl .hm-dk { --l1: rgba(255, 255, 255, .16); --l2: rgba(255, 255, 255, .26); } }
.hl [data-theme="dark"], .hl [data-theme="dark"] .hm-s, .hl .hm-dk { color: #fff; }
.hl [data-theme="dark"].hm-s { color: #fff; background: #0A0A0A; }
.hl .hm-tile.hm-dk, .hl .hm-plate.hm-dk, .hl .hm-panel.hm-dk, .hl .hm-card.hm-dk { background: #1A1A1A; color: #fff; }
.hl [data-theme="dark"] :focus-visible, .hl .hm-dk :focus-visible { outline-color: #fff; }
.hl .hm-dk .hm-tag { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); }
.hl .hm-dk .hm-ops__row b, .hl .hm-dk .hm-tr span { color: #fff; }
.hl .hm-foot { border-top: 0; }
@media (hover: hover) {
  .hl .hm-tile.hm-dk:hover { background: #202020; }
  .hl .hm-foot__cols a:hover, .hl .hm-foot__lang button:hover { color: #fff; }
}

@media (prefers-contrast: more) {
  html.hl { --i2: #000; --i3: rgba(0, 0, 0, .86); --l1: rgba(0, 0, 0, .42); --l2: rgba(0, 0, 0, .7); }
  .hl [data-theme="dark"], .hl .hm-dk { --i2: #fff; --i3: rgba(255, 255, 255, .86); --l1: rgba(255, 255, 255, .42); --l2: rgba(255, 255, 255, .7); }
}
@media print {
  html.hl, .hl body { background: #fff; }
  .hl .hm-s, .hl .hm-s *, .hl .hm-dk, .hl .hm-dk * { color: #000 !important; }
  .hl [data-theme="dark"].hm-s, .hl .hm-tile, .hl .hm-plate, .hl .hm-card, .hl .hm-panel { background: none !important; }
  .hl .hm-pill { border: 1px solid #000; background: none; }
}
