/* Hallmark · check · built: the project · room: ai.neuf.cc · after 60fps: a giant word behind, a row of kinds, every film in its own device · theme: brand (NEUF guidelines v1.0) */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, a small archive (six films) carried by scale, not by count */
:root { --bg: #F1F1EE; --stage: #E6E6E1; --card: #FBFBF9; --frame: #111218; }
.ai__hero { position: relative; display: grid; justify-items: center; gap: 28px; padding: clamp(120px, 14vw, 190px) var(--g) clamp(40px, 5vw, 72px); text-align: center; isolation: isolate; }
.ai__giant { position: absolute; inset: 40px 0 auto; z-index: -1; margin: 0; font-size: clamp(220px, 42vw, 640px); line-height: .8; font-weight: 700; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgb(var(--ink-rgb) / .1); user-select: none; }
.ai__title { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; max-width: 22ch; }
.ai__kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ai__kind { display: grid; justify-items: center; gap: 8px; width: 96px; padding: 12px 8px 10px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ai__kind i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--stage); font-style: normal; transition: background .3s var(--ease), color .3s var(--ease); }
.ai__kind svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai__kind sup { font: 500 11px var(--mono); color: var(--muted); }
.ai__kind:active { transform: scale(.96); }
.ai__kind[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--blue); }
.ai__kind[aria-pressed="true"] i { background: var(--blue); color: var(--white); }
@media (hover: hover) { .ai__kind:hover { transform: translateY(-3px); } }

/* the films: numbered, each in a phone or a screen, on a soft stage */
.ai__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; padding: 0 var(--g) clamp(72px, 9vw, 130px); }
.ai__card { display: grid; grid-template-rows: auto 1fr; padding: 8px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: start; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.ai__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 12px; font-size: 14px; }
.ai__head b { font: 500 13px var(--mono); color: var(--muted); }
.ai__head span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ai__head span i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.ai__stage { display: grid; place-items: center; min-height: 420px; padding: 28px 20px; border-radius: 20px; background: var(--stage); overflow: hidden; }
.ai__device { position: relative; width: min(100%, var(--w)); aspect-ratio: var(--ar); border: 6px solid var(--frame); border-radius: var(--r); overflow: hidden; background: var(--frame); box-shadow: 0 30px 50px -28px rgb(var(--ink-rgb) / .55); transition: transform .5s var(--ease); }
.ai__device.tall { --w: 210px; --r: 30px; }
.ai__device.wide { --w: 100%; --r: 16px; }
.ai__device img, .ai__device video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai__device video { opacity: 0; transition: opacity .35s var(--ease); }
.ai__device.live video { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .ai__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -30px rgb(var(--ink-rgb) / .35); }
  .ai__card:hover .ai__device { transform: scale(1.03); }
}
.ai__grid.swap .ai__card { animation: aiIn .45s var(--ease) both; animation-delay: calc(min(var(--d, 0), 10) * 40ms); }
@keyframes aiIn { from { opacity: 0; translate: 0 16px; } }

.ai__how { padding: clamp(64px, 8vw, 120px) var(--g); border-top: 1px solid var(--line); }
.ai__h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: .95; letter-spacing: -.04em; font-weight: 600; max-width: 14ch; }
.ai__steps { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.ai__steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ai__steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px var(--mono); color: var(--blue); }
.ai__steps b { font-size: 22px; letter-spacing: -.02em; }
.ai__steps span { color: var(--muted); }
@media (max-width: 860px) { .ai__steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ai__stage { min-height: 340px; } }
@media (max-width: 520px) { .ai__steps { grid-template-columns: minmax(0, 1fr); } .ai__kind { width: 84px; } }
@media (prefers-reduced-motion: reduce) { .ai__grid.swap .ai__card { animation: none; } }

/* ---------- the shared NEUF scale ---------- */
.ai__hero { padding: var(--top) var(--g) var(--space-head); }
.ai__title { font-size: clamp(30px, 3.6vw, 56px); }
.ai__grid { gap: var(--gap); padding: 0 var(--g) var(--space-section); }
.ai__card { border-radius: var(--radius-card); }
.ai__stage { border-radius: var(--radius-plate); min-height: clamp(380px, 32vw, 460px); }
.ai__how { padding: var(--space-section) var(--g); }
.ai__h2 { font-size: var(--fs-h2); }
.ai__steps { gap: var(--gap); margin-top: var(--space-head); }
.ai__steps li { border-radius: var(--radius-card); }
