/* Home (23.11.2026, second pass). Markup: src/site/home.ts. Tokens, buttons, type weights and motion: system.css.
   A 12-column grid; in RTL column 1 is the start (right) side. Each section places its parts on it differently. */

.hp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); }

/* ---------- hero: text 7 columns, numbers card 4 ---------- */
.hp-hero { padding: clamp(112px, 15vh, 168px) 0 clamp(56px, 8vh, 96px); color: var(--hp-ink); }
.hp-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); align-items: center; }
.hp-hero-text { grid-column: 1 / span 7; }
.hp-hello { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; margin: 0 0 clamp(20px, 3vh, 32px); font-size: clamp(16px, 1.3vw, 19px); color: var(--hp-ink); }
.hp-hello span { color: var(--hp-ink-50); }
.hp-face { width: 1.9em; height: 1.9em; border-radius: .4em; object-fit: cover; transform: rotate(-5deg); transition: transform .25s var(--hp-ease); }
.hp-face:hover { transform: rotate(0) scale(1.08); }
.hp-hero .hp-h1 { margin: 0; color: var(--hp-ink); letter-spacing: -.02em; }
.hp-h1-a { display: block; font-size: clamp(44px, 5.4vw, 88px); line-height: 1.08; }
.hp-h1-b { display: block; margin-top: .3em; font-size: clamp(24px, 2.6vw, 42px); line-height: 1.3; color: var(--hp-ink-70); }
.hp-h1 .hm-flap { font-size: .62em; vertical-align: .2em; }
.hp-h1 .hm-term { font-size: .62em; vertical-align: .14em; white-space: normal; }
.hp-h1 .hm-term span { font-family: "Ping ", sans-serif !important; font-size: calc(1em / .62 * .9); line-height: 1.35; }
.hp-lead { max-width: 46ch; margin: clamp(24px, 4vh, 40px) 0 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; color: var(--hp-ink-70); }
.hp-hero .hp-actions { margin-top: clamp(28px, 4vh, 40px); }

/* numbers card: a frame around a lighter sheet, like a product panel */
.hp-card { grid-column: 9 / span 4; padding: 8px; border: 1px solid var(--hp-rule); border-radius: 28px; background: rgba(2, 12, 44, .035); }
.hp-card-in { padding: clamp(20px, 2vw, 28px); border-radius: 22px; background: #F8F8F6; }
.hp-card-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--hp-ink-50); }
.hp-card-head span:first-child { color: var(--hp-ink); }
.hp-card-live { display: inline-flex; align-items: center; gap: 6px; }
.hp-card-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hp-blue); }
.hp-card-stats { margin: 0; padding: 0; list-style: none; }
.hp-card-stats li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--hp-rule); }
.hp-card-stats li:first-child { border-top: 0; }
.hp-card-stats b { font-size: clamp(36px, 3.4vw, 52px); line-height: 1; letter-spacing: -.02em; color: var(--hp-ink); text-align: right; }
.hp-card-stats li > span { font-size: 14px; color: var(--hp-ink-50); }

/* ---------- logos: one strip between hairlines ---------- */
.hp-logos { margin-top: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 36px) 0; border-block: 1px solid var(--hp-rule); }
.hp-logos .elementor-widget-image-carousel { width: 100%; }
.hp-logos img { filter: brightness(0); opacity: .5; transition: opacity .3s; }
.hp-logos img:hover { opacity: .85; }

/* ---------- statement: note in the corner (3 cols), the line (8 cols) ---------- */
.hp-statement { padding-bottom: 0; }
.hp-note { grid-column: 1 / span 3; grid-row: 1; align-self: start; margin: .6em 0 0; font-size: 15px; line-height: 1.7; color: var(--hp-ink-70); }
.hp-note b { display: block; margin-bottom: 10px; color: var(--hp-ink); }
body .hp-big { grid-column: 5 / span 8; grid-row: 1; margin: 0; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.1; letter-spacing: -.02em; color: var(--hp-ink); }
body.hp-body .hp-big .hp-mute, body.hp-body .hp-big .hp-mute * { color: var(--hp-ink-50); }
.hp-st-text { grid-column: 5 / span 4; grid-row: 2; align-self: start; margin: clamp(32px, 4vw, 56px) 0 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; color: var(--hp-ink-70); }
.hp-st-art { grid-column: 9 / span 4; grid-row: 2; margin-top: clamp(24px, 3vw, 40px); }
.hp-st-art .tags-drop { width: 100%; }

/* section header with the title on one side and the text on the other */
.hp-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: clamp(40px, 5vw, 72px); }
body .hp-head-split .hp-h2 { margin: 0; max-width: 14ch; }
.hp-head-split > p, .hp-head-split > div > p { max-width: 34rem; margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: var(--hp-ink-70); }
.hp-head-split > div > p { margin-top: 16px; }
.hp-head-split strong { color: var(--hp-ink); }

/* ---------- services: bento ---------- */
.hp-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.hp-tile { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-radius: 28px; transition: background-color .25s; }
.hp-tile--dark { grid-column: 1 / span 7; background: var(--hp-ink); color: #F3F4F8; }
.hp-tile--dark:hover { background: #0A1640; }
.hp-tile--tint { grid-column: 8 / span 5; background: #E6E9F1; }
.hp-tile--tint:hover { background: #DDE2EE; }
.hp-tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; border: 1px solid var(--hp-rule); }
.hp-tile--wide:hover { background: rgba(255, 255, 255, .45); }
.hp-tile-n { font-size: 14px; letter-spacing: .06em; color: var(--hp-ink-50); }
.hp-tile--dark .hp-tile-n { color: var(--hp-sky); }
body .hp-tile-t { margin: clamp(28px, 4vw, 64px) 0 12px; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: inherit; }
.hp-tile-lead { margin: 0 0 20px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; color: inherit; }
.hp-tile .hp-prose { max-width: 60ch; }
body .hp-tile .hp-prose p { font-size: 16px; line-height: 1.75; }
body .hp-tile--dark .hp-prose p { color: rgba(243, 244, 248, .72); }
.hp-tile .hp-tags { margin-top: auto; padding-top: 24px; }
.hp-tile--dark .hp-tags li { border-color: rgba(255, 255, 255, .18); color: rgba(243, 244, 248, .85); }
.hp-tile-side { display: flex; flex-direction: column; }
.hp-tile-side .hp-tile-t { margin-top: clamp(20px, 3vw, 40px); }
.hp-tile--wide .hp-prose { align-self: end; }
.hp-tile-side .hp-tags { margin-top: 0; padding-top: 8px; }
.hp-tags--quiet li { border-style: dashed; }

/* ---------- approach: label + big line (8 cols) with the network art beside it, three principles in columns ---------- */
.hp-app-label { grid-column: 1 / -1; color: var(--hp-sky) !important; }
body .hp-app-big { grid-column: 1 / span 8; grid-row: 2; align-self: center; color: #F3F4F8; }
body.hp-body .hp-app-big .hp-mute, body.hp-body .hp-app-big .hp-mute * { color: var(--hp-sky); }
.hp-app-art { grid-column: 9 / span 4; grid-row: 2; align-self: center; }
.hp-app-art .elementor-element { width: 100%; }
.hp-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; list-style: none; }
.hp-cols li { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hp-col-n { display: block; margin-bottom: 20px; font-size: clamp(32px, 3vw, 48px); line-height: 1; color: var(--hp-sky); }
body .hp-cols p { margin: 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; color: rgba(243, 244, 248, .76); }

/* ---------- campaigns: the big line on the start side (8 cols), the intro as a note on the far side (4) ---------- */
body .hp-camp-big { grid-column: 1 / span 7; grid-row: 1; align-self: end; font-size: clamp(44px, 6.4vw, 104px); line-height: 1.02; }
.hp-camp-note { grid-column: 9 / span 4; grid-row: 1; align-self: end; margin: 0; }
.hp-camp-note strong { color: var(--hp-ink); }
.hp-strips { margin-top: clamp(40px, 5vw, 72px); overflow: hidden; }
.hp-strips > .elementor-element { --width: 100%; width: 100%; max-width: none; margin-inline: auto; }

/* ---------- landing pages: title and three points (4 cols), the folder carousel (8 cols) ---------- */
.hp-landings .hp-grid { align-items: center; }
.hp-land-text { grid-column: 1 / span 4; }
body .hp-land-text .hp-h2 { margin-bottom: clamp(28px, 3vw, 40px); }
.hp-points { margin: 0; padding: 0; list-style: none; }
.hp-points li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--hp-rule); }
.hp-points li > span { font-size: 13px; letter-spacing: .06em; color: var(--hp-blue); padding-top: .3em; }
body .hp-points p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--hp-ink-70); }
.hp-folders { grid-column: 5 / span 8; overflow-x: clip; }
.hp-folders .elementor-element { width: 100%; }

/* ---------- agents: text (5 cols) beside the faux agent panel (5 cols) ---------- */
.hp-agents .hp-grid { align-items: center; }
.hp-agents-text { grid-column: 1 / span 5; }
.hp-agents-text .hp-prose { max-width: 52ch; }
body.hp-body .hp-agents .auto-tools { direction: rtl; justify-content: flex-start; margin: 28px 0 0; }
.hp-flow { grid-column: 8 / span 5; }
.hp-flow-steps { margin: 4px 0 0; padding: 0; list-style: none; }
.hp-flow-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hp-rule); font-size: 16px; color: var(--hp-ink); }
.hp-flow-steps li:first-child { border-top: 0; }
.hp-flow-steps i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--hp-blue); color: #fff; }
.hp-flow-steps svg { width: 14px; height: 14px; }
/* the panel works the lead once it scrolls in: each step lights up after the one before */
html.hp-js .hp-flow:not(.is-in) .hp-flow-steps li { opacity: .3; }
html.hp-js .hp-flow:not(.is-in) .hp-flow-steps i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hp-rule); color: transparent; }
html.hp-js .hp-flow .hp-flow-steps li { transition: opacity .4s var(--hp-ease) calc(var(--i) * .35s + .2s); }
html.hp-js .hp-flow .hp-flow-steps i { transition: background .3s var(--hp-ease) calc(var(--i) * .35s + .3s), color .3s var(--hp-ease) calc(var(--i) * .35s + .3s), box-shadow .3s calc(var(--i) * .35s + .3s); }

/* ---------- building with AI (markup from the admin document) ---------- */
body.hp-body .site-ai { margin: var(--hp-sec) 12px 0; border-radius: var(--hp-radius); }
body.hp-body .site-ai__inner { max-width: calc(var(--hp-wrap) + var(--hp-gutter) * 2); padding: var(--hp-sec) var(--hp-gutter); }
body.hp-body .site-ai .site-ai__head { margin: 0 0 clamp(40px, 5vw, 72px); max-width: 62ch; text-align: right; }
body.hp-body .site-ai .site-ai__head :is(p, .elementor-heading-title) { text-align: right !important; margin-inline: 0 !important; }
body.hp-body .site-ai .ai-title .elementor-heading-title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.08; }
body.hp-body .site-ai .ai-lead p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; }

/* AI chapter: label + title on the start side, the lead on the far side; the two Bright cards at unequal widths */
body.hp-body .site-ai .site-ai__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); max-width: none; align-items: end; }
body.hp-body .site-ai .site-ai__head .ai-eyebrow { grid-column: 1 / -1; }
body.hp-body .site-ai .site-ai__head .ai-title { grid-column: 1 / span 6; }
body.hp-body .site-ai .site-ai__head .ai-title .elementor-heading-title { margin-bottom: 0 !important; }
body.hp-body .site-ai .site-ai__head .ai-lead { grid-column: 8 / span 5; }
body.hp-body .site-ai .ai-cards { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; }

/* ---------- about: text 6 cols, photo 5 with its caption ---------- */
.hp-about .hp-grid { align-items: center; }
.hp-about-text { grid-column: 1 / span 6; }
body .hp-prose--lg p { font-size: clamp(17px, 1.4vw, 20px); }
.hp-about-text .hp-actions { margin-top: 32px; }
.hp-about-photo { grid-column: 8 / span 5; margin: 0; }
.hp-about-photo img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--hp-radius); }
.hp-about-photo figcaption { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--hp-ink-50); }

/* ---------- magazine: lead article 7 cols, two smaller ones stacked beside it ---------- */
.hp-magazine { padding-bottom: var(--hp-sec); }
.hp-magazine .mg-home { width: 100% !important; max-width: none; margin: 0 !important; padding: 0; }
.hp-magazine .mg-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.hp-magazine .mg-card:first-child { grid-column: 1 / span 7; grid-row: span 2; }
body .hp-magazine .mg-card:first-child .mg-title { font-size: clamp(24px, 2.2vw, 32px) !important; line-height: 1.2; }
.hp-magazine .mg-card:not(:first-child) { grid-column: 8 / span 5; flex-direction: row; }
.hp-magazine .mg-card:not(:first-child) .mg-img { flex: 0 0 42%; aspect-ratio: auto; }
.hp-magazine .mg-card:not(:first-child) .mg-excerpt { -webkit-line-clamp: 2; }
.hp-magazine .mg-all { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hp-hero-text { grid-column: 1 / -1; }
  .hp-card { grid-column: 1 / -1; margin-top: 48px; }
  .hp-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hp-card-stats li { border-top: 0; padding: 8px 0; }
  .hp-note { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; }
  body .hp-big { grid-column: 1 / -1; grid-row: auto; }
  .hp-st-text { grid-column: 1 / span 6; grid-row: auto; }
  .hp-st-art { grid-column: 7 / span 6; grid-row: auto; }
  .hp-tile--dark, .hp-tile--tint { grid-column: 1 / -1; }
  body .hp-app-big, body .hp-camp-big { grid-column: 1 / -1; grid-row: auto; }
  .hp-app-art { grid-column: 1 / -1; grid-row: auto; max-width: 420px; margin-top: 24px; }
  .hp-camp-note { grid-column: 1 / -1; grid-row: auto; margin-top: 24px; max-width: 52ch; }
  .hp-land-text, .hp-folders { grid-column: 1 / -1; }
  .hp-folders { margin-top: 40px; }
  .hp-agents-text, .hp-flow { grid-column: 1 / -1; }
  .hp-flow { max-width: 520px; margin-top: 40px; }
  body.hp-body .site-ai .site-ai__head .ai-title, body.hp-body .site-ai .site-ai__head .ai-lead { grid-column: 1 / -1; }
  body.hp-body .site-ai .site-ai__head .ai-lead { margin-top: 24px; }
  .hp-about-text, .hp-about-photo { grid-column: 1 / -1; }
  .hp-about-photo { max-width: 520px; margin-top: 40px; }
  .hp-magazine .mg-card:first-child, .hp-magazine .mg-card:not(:first-child) { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 767px) {
  .hp-hero { padding-top: 104px; }
  .hp-card-stats { grid-template-columns: 1fr; gap: 0; }
  .hp-card-stats li { border-top: 1px solid var(--hp-rule); padding: 16px 0; }
  .hp-st-text, .hp-st-art { grid-column: 1 / -1; }
  .hp-head-split { flex-direction: column; align-items: flex-start; }
  .hp-tile--wide { grid-template-columns: 1fr; }
  .hp-cols { grid-template-columns: 1fr; gap: 32px; }
  body.hp-body .site-ai .ai-cards { grid-template-columns: 1fr; }
  .hp-magazine .mg-card:not(:first-child) { flex-direction: column; }
  .hp-magazine .mg-card:not(:first-child) .mg-img { flex: none; aspect-ratio: 16 / 10; }
  body.hp-body .site-ai { margin-inline: 8px; border-radius: 22px; }
}

/* ---------- hero reveal: the title words rise out of their masks (system.css .hp-w), the rest follows ---------- */
@keyframes hp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hp-hero .hp-hello { animation: hp-rise .8s var(--hp-ease) both .05s; }
.hp-hero .hp-lead, .hp-hero .hp-actions { animation: hp-rise .8s var(--hp-ease) both .7s; }
.hp-hero .hp-card { animation: hp-rise .9s var(--hp-ease) both .45s; }
@media (prefers-reduced-motion: reduce) { .hp-hero * { animation: none !important; } }
.a11y-motion .hp-hero * { animation: none !important; }

/* ================= /about (src/site/about.ts): the home building blocks, arranged for a profile ================= */
.ab-hero .hp-h1-a { font-size: clamp(56px, 8vw, 128px); line-height: 1.02; }
.ab-hero .hp-crumbs { margin-bottom: clamp(20px, 3vh, 32px); }
.ab-hero .hp-lead a { color: var(--hp-ink); }
.ab-photo { grid-column: 8 / span 5; margin: 0; }
.ab-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--hp-radius); }
.ab-photo figcaption { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--hp-ink-50); }
.ab-hero .ab-photo { animation: hp-rise .9s var(--hp-ease) both .45s; }
body .ab-big { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.15; }
.ab-story-end { grid-column: 5 / span 6; }
.ab-story { padding-bottom: 0; }
.ab-bento .hp-tile--dark { grid-row: span 2; }
.ab-bento .hp-tile--wide.hp-tile--row { grid-column: 8 / span 5; display: flex; flex-direction: column; }
.ab-bento .hp-tile-lead { margin-bottom: 0; }
.ab-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--hp-rule); }
.ab-strip li { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); border-inline-start: 1px solid var(--hp-rule); }
.ab-strip li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ab-strip b { font-size: clamp(44px, 5vw, 80px); line-height: 1; letter-spacing: -.02em; color: var(--hp-ink); text-align: right; }
.ab-strip span { max-width: 16ch; font-size: 15px; line-height: 1.5; color: var(--hp-ink-50); }
.ab-skills { grid-column: 1 / span 6; }
.ab-ai { grid-column: 8 / span 5; }
.ab-ai .hp-prose { margin-bottom: 20px; }
.ab-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hp-rule); }
.ab-list a { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr) 24px; gap: 8px 32px; align-items: baseline; padding: clamp(22px, 2.4vw, 32px) 0; border-top: 1px solid var(--hp-rule); color: var(--hp-ink); text-decoration: none; }
.ab-list-n { font-size: 14px; letter-spacing: .06em; color: var(--hp-ink-50); }
.ab-list b { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; transition: color .2s; }
.ab-list-x { font-size: 15px; line-height: 1.6; color: var(--hp-ink-70); }
.ab-list a:hover b { color: var(--hp-blue); }
.ab-list a:hover .hp-arr { transform: translateX(-4px); }
.ab-end { margin-bottom: 0; }
body .ab-end-big { grid-column: 1 / span 7; align-self: end; color: #F3F4F8; }
.ab-end-side { grid-column: 9 / span 4; align-self: end; }
.ab-end-side p { margin: 0 0 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; color: rgba(243, 244, 248, .76); }
@media (max-width: 1024px) {
  .ab-photo { grid-column: 1 / -1; max-width: 520px; margin-top: 40px; }
  .ab-story-end { grid-column: 1 / -1; }
  .ab-bento .hp-tile--wide.hp-tile--row { grid-column: 1 / -1; }
  .ab-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-strip li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .ab-strip li:nth-child(n+3) { border-top: 1px solid var(--hp-rule); }
  .ab-skills, .ab-ai { grid-column: 1 / -1; }
  .ab-ai { margin-top: 48px; }
  .ab-list a { grid-template-columns: 40px minmax(0, 1fr) 20px; }
  .ab-list-x { grid-column: 2; }
  body .ab-end-big, .ab-end-side { grid-column: 1 / -1; }
  .ab-end-side { margin-top: 24px; }
}
.ab-tail { height: var(--hp-sec); }
