/* Aamin AI home: the ONE layout template (the founder, 2026-11-28: "information seems scattered...
   think and reframe"). Every chapter uses these classes and nothing else for its frame, so the page
   reads as one story. See knowledge/60-website/Home Reframe.md.

   Chapter intro (centred):
     <header class="hf-chapter">
       <p class="hf-eyebrow">What we do</p>
       <h2 class="hf-chapter__title">One team for the whole <span>life of an AI agent</span></h2>
       <p class="hf-chapter__lead">One sentence.</p>
     </header>

   Story row (text + ONE visual; add hf-row--flip to put the visual first):
     <div class="hf-row">
       <div class="hf-row__text">
         <p class="hf-eyebrow"><span class="hf-eyebrow__num">01</span> Build</p>
         <h3 class="hf-row__title">AI agents that work in production</h3>
         <p class="hf-row__lead">One sentence.</p>
         <ul class="hf-row__points"><li>(icon) one short line</li> … at most 3 … </ul>
         <a class="hf-row__link" href="…">AI agents <arrow></a>
       </div>
       <div class="hf-row__visual"> ONE device (lib/devices.css) or the dotted map </div>
     </div>
*/

:root {
  --hf-story-max: 1200px;
  --hf-story-pad-x: 24px;
  --hf-row-pad-y: 112px;
  --hf-tone: #5C6B7A;            /* the second tone of two-tone headings */
}

/* eyebrow: the one label style on the page */
.hf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 600 14px/1.2 var(--hf-font-sans, Geist, sans-serif);
  letter-spacing: 0.01em; color: var(--hf-color-text-3, #5E666F);
}
.hf-eyebrow::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 2px; background: var(--hf-color-seal, #E9A22F); }
.hf-eyebrow__num { font-family: var(--hf-font-mono, 'Geist Mono', monospace); font-weight: 500; color: var(--hf-color-text-2, #454C55); }

/* chapter intro */
.hf-chapter {
  max-inline-size: 920px; margin-inline: auto; text-align: center;
  padding: 128px var(--hf-story-pad-x) 8px;
}
.hf-chapter__title {
  margin: 16px 0 16px; font-weight: 650; letter-spacing: -0.03em;
  font-size: clamp(34px, 4.1vw, 52px); line-height: 1.05; color: var(--hf-color-text-1, #0B0D10);
  text-wrap: balance;
}
.hf-chapter__title span { color: var(--hf-tone); }
.hf-chapter__lead {
  margin: 0 auto; max-inline-size: 58ch; font-size: 19px; line-height: 1.55;
  color: var(--hf-color-text-2, #454C55); text-wrap: pretty;
}

/* story row */
.hf-row {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5.5vw, 88px);
  max-inline-size: calc(var(--hf-story-max) + 2 * var(--hf-story-pad-x));
  margin-inline: auto;
  padding: var(--hf-row-pad-y) var(--hf-story-pad-x);
}
.hf-row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hf-row--flip .hf-row__text { order: 2; }
.hf-row__text { min-inline-size: 0; }
.hf-row__title {
  margin: 14px 0 16px; font-weight: 650; letter-spacing: -0.025em;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; color: var(--hf-color-text-1, #0B0D10);
  text-wrap: balance;
}
.hf-row__title span { color: var(--hf-tone); }
.hf-row__lead {
  margin: 0 0 26px; max-inline-size: 44ch; font-size: 18px; line-height: 1.55;
  color: var(--hf-color-text-2, #454C55); text-wrap: pretty;
}
.hf-row__points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.hf-row__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--hf-color-text-1, #0B0D10); }
.hf-row__points li > svg, .hf-row__points li > .hf-icon { flex: none; inline-size: 22px; block-size: 22px; margin-block-start: 1px; color: var(--hf-color-text-2, #454C55); }
.hf-row__link {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px;
  font-weight: 600; font-size: 16px; color: var(--hf-color-text-1, #0B0D10); text-decoration: none;
  border-block-end: 1px solid currentColor;
}
.hf-row__link:hover { color: var(--hf-tone); }
.hf-row__visual { min-inline-size: 0; display: flex; justify-content: center; }

/* the one dark chapter keeps the same template */
.hf-ground--night .hf-eyebrow, .hf-ground--night .hf-eyebrow__num { color: #A9B0B8; }
.hf-ground--night .hf-row__title, .hf-ground--night .hf-chapter__title,
.hf-ground--night .hf-row__points li, .hf-ground--night .hf-row__link { color: #F5F5F1; }
.hf-ground--night .hf-row__lead, .hf-ground--night .hf-chapter__lead { color: #C9CED4; }
.hf-ground--night .hf-row__title span, .hf-ground--night .hf-chapter__title span { color: #9FB3C4; }
.hf-ground--night .hf-row__points li > svg, .hf-ground--night .hf-row__points li > .hf-icon { color: #C9CED4; }

/* Arabic */
:lang(ar) .hf-eyebrow { font-family: var(--hf-font-arabic, Alexandria, sans-serif); letter-spacing: 0; }
:lang(ar) .hf-chapter__title, :lang(ar) .hf-row__title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
:lang(ar) .hf-row__lead, :lang(ar) .hf-chapter__lead { line-height: 1.75; }

/* tablets and phones: text first, then the visual */
@media (max-width: 63.99rem) {
  :root { --hf-row-pad-y: 72px; --hf-story-pad-x: 20px; }
  .hf-row, .hf-row--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hf-row--flip .hf-row__text { order: 0; }
  .hf-chapter { padding-block-start: 88px; }
}

/* phones: chapter titles stay at three lines or fewer (Arabic runs wider) */
@media (max-width: 47.99rem) {
  .hf-chapter__title { font-size: 30px; }
  :lang(ar) .hf-chapter__title { font-size: 28px; }
}

/* a two-column list of short promises (the trust row only) */
.hf-row__points--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
@media (max-width: 47.99rem) { .hf-row__points--two { grid-template-columns: minmax(0, 1fr); } }
