/* ==========================================================================
   AI Hub v2: company pages (About, Services, Contact / Book a demo).
   Loads after system.css.  Everything here is page-level; nothing in system.css is overridden
   except where a rule says so.

   Contents
    1  Shared bits (inline link, tan section, compact hero)
    2  About: story
    3  About: values (U-25)
    4  About: facts strip, leadership figure, technologies
    5  Services: service rows
    6  Numbered steps (U-07), 3 or 4 columns
    7  Services: start-from-a-product split
    8  FAQ in two columns (L-19)
    9  Contact: form, fields, errors, success
   10 Contact: channels column
   11 Responsive
   ========================================================================== */

/* ---------- 1. Shared bits ---------- */
.icon--fill { fill: currentColor; stroke: none; }
.inline-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.inline-link:hover { color: var(--coral-text); }
.section--tan { background: var(--tan); }
.hero--compact { padding-block: clamp(48px, 5vw, 72px) clamp(52px, 5.6vw, 80px); }
@media (min-width: 1101px) { .hero__grid--wide { grid-template-columns: minmax(0, 8.6fr) minmax(0, 4.4fr); } }

/* ---------- 2. About: story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__head { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.story__body { display: grid; gap: 26px; max-width: 34em; }
.story__body p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.7; }
.story__body p:first-child { font-family: var(--font-serif); font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem); line-height: 1.4; color: var(--ink); letter-spacing: -.005em; }

/* ---------- 3. About: values (U-25): a large statement over six soft tan tiles ---------- */
.values-head { display: grid; justify-items: center; gap: 20px; text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.values-head .h2 { font-size: clamp(2.25rem, 3.4vw + 1rem, 3.75rem); max-width: 14em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vtile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(36px, 4vw, 56px); min-height: 280px; padding: clamp(24px, 2.6vw, 34px); border-radius: 16px; border: 1px solid rgba(20, 20, 19, .07); background-color: var(--tan); isolation: isolate; }
.vtile::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(176deg, var(--tan) 0%, #E5DBC9 160%); transition: opacity .2s var(--ease); }   /* the sand gradient fades out under the near-black hover state (system.css section 20) */
@media (hover: hover) and (pointer: fine) { .vtile:hover::before { opacity: 0; } }
.vtile:has(:focus-visible)::before { opacity: 0; }
.vtile__n { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; color: var(--coral-text-s, #A8402F); }   /* AA on sand (see .pcard .tag) */
.vtile h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.375rem, .8vw + 1.1rem, 1.625rem); line-height: 1.2; letter-spacing: -.01em; }
.vtile h3 span { background: linear-gradient(var(--coral), var(--coral)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; }
.vtile p { margin-top: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* ---------- 4. About: facts strip, leadership figure, technologies ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line-strong); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 28px 24px 0 0; font-weight: 500; color: var(--ink); }
.facts .icon { width: 22px; height: 22px; color: var(--coral-text); stroke-width: 1.5; }
.facts-note { margin-top: 28px; max-width: 46em; }

.xp { display: grid; grid-template-columns: auto minmax(0, 27em); justify-content: space-between; align-items: end; gap: clamp(24px, 3vw, 40px) clamp(32px, 6vw, 96px); }
.xp .eyebrow { grid-column: 1 / -1; }
.xp__fig { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.xp__num { font-family: var(--font-serif); font-weight: 500; font-size: clamp(6.5rem, 13vw, 12rem); line-height: .8; letter-spacing: -.04em; color: var(--coral); }
.xp__unit { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.75rem, 2.4vw + 1rem, 3.25rem); line-height: 1.1; letter-spacing: -.015em; max-width: 8em; text-wrap: balance; }
.xp__unit em { font-style: italic; color: var(--coral-lt); }
.xp__copy { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-dark-strong); }

.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.tech__group { padding: 28px 24px 0 0; }
.tech__group h3 { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.tech__group li { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: .9375rem; line-height: 1.25; color: var(--ink-2); }
.tech__group img { flex: none; display: block; width: 22px; height: 22px; opacity: .6; transition: opacity var(--t); }
.tech__group li:hover img { opacity: 1; }
.tech-note { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- 5. Services: hairline rows. Name and one-liner left, "what you get" right ---------- */
.svcs { border-top: 1px solid var(--line-strong); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line-strong); }
.svc__head { display: grid; gap: 18px; align-content: start; justify-items: start; }
.svc__top { display: flex; align-items: center; gap: 18px; }
.svc__top .icon-tile { width: 60px; height: 60px; border-radius: 16px; }
.svc__top .icon-tile .icon { width: 26px; height: 26px; }
.svc__n { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; color: var(--coral-text); }
.svc__name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.375rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.svc__one { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 30em; }
.svc__body .eyebrow { margin-bottom: 8px; display: block; color: var(--ink-3); }
.svc__list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; }
.svc__list li:first-child { border-top: 0; padding-top: 12px; }
.svc__list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--coral-text); stroke-width: 2; }
.svc__list strong { color: var(--ink); font-weight: 600; }
.svc__list strong::after { content: ' '; }
.svc__link { margin-top: 12px; }

/* ---------- 6. Numbered steps (U-07): hairline columns, icon, title, one line, copy ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: 10px; padding: 4px clamp(20px, 2.4vw, 32px) 12px; border-left: 1px solid var(--line-strong); }
.step__n { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; color: var(--coral-text); }
.step .icon { width: 44px; height: 44px; margin: clamp(24px, 3vw, 44px) 0 clamp(20px, 2.4vw, 32px); color: var(--coral-text); stroke-width: 1.15; }
.step h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.step__hl { font-weight: 600; color: var(--ink); line-height: 1.4; }
.step p:last-child { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.steps-close { margin-top: clamp(40px, 5vw, 64px); text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.125rem, .6vw + 1rem, 1.375rem); color: var(--ink-2); text-wrap: balance; }

/* ---------- 7. Services: start from a product (text left, framed UI right) ---------- */
.pitch { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pitch__copy { display: grid; gap: 22px; justify-items: start; }
.pitch__fig { display: grid; gap: 14px; }
.pitch__fig .frame__body img { aspect-ratio: 1600 / 767; object-position: top left; }

/* ---------- 8. FAQ in two columns (L-19): heading left, accordion right ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.faq__more { margin-top: 28px; }

/* ---------- 9. Contact: form card, fields, errors, success ---------- */
.book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 52px); }
.form-card__head { display: grid; gap: 10px; margin-bottom: clamp(28px, 3.4vw, 40px); }
.form-card__head p { color: var(--ink-2); }
.form__group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field__label { font-size: .9375rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.field__input { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid #8E887D; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color var(--t), background var(--t); }
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
select.field__input { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; border-color: var(--ink); }
.field__help, .field__hint { font-size: .875rem; line-height: 1.45; color: var(--ink-3); }
.field__hint { color: var(--ink-2); }
.field__error { display: none; align-items: flex-start; gap: 8px; font-size: .875rem; font-weight: 500; line-height: 1.45; color: #B3261E; }
.field__error .icon { width: 16px; height: 16px; margin-top: 2px; stroke-width: 2; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__input { border-color: #B3261E; background: #FFF8F7; }
.field.is-invalid .field__input:focus-visible { border-color: #B3261E; }
.field.is-invalid .field__help { display: none; }

/* Consent checkbox: a native checkbox with a 44px row */
.check { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; cursor: pointer; line-height: 1.5; color: var(--ink-2); font-size: .9688rem; }
.check input { -webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px 0 -10px; background: transparent; cursor: pointer; }   /* 44px hit area, 24px visual box */
.check input::before { content: ''; box-sizing: border-box; width: 24px; height: 24px; border: 1.5px solid var(--ink-3); border-radius: 6px; background: #fff; }
.check input:checked::before { border-color: var(--coral-fill); background: var(--coral-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.check input:focus-visible { outline: none; }
.check input:focus-visible::before { outline: 3px solid var(--focus); outline-offset: 2px; }
.check span { padding-top: 10px; }
.check a { padding-block: 12px; }   /* the link's hit area reaches 44px; inline padding does not move the lines */
.field.is-invalid .check input::before { border-color: #B3261E; box-shadow: 0 0 0 2px #B3261E; }

.form__foot { display: grid; gap: 16px; margin-top: 30px; }
.form__summary { display: none; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 12px; border: 1.5px solid #B3261E; background: #FFF8F7; color: #8E1B14; font-weight: 600; font-size: .9688rem; }
.form__summary.is-shown { display: flex; }
.form__summary .icon { width: 20px; height: 20px; margin-top: 1px; stroke-width: 2; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Success state replaces the form inside the same card */
.form-success { display: grid; gap: 22px; justify-items: start; padding-block: clamp(8px, 2vw, 24px); }
.form-success:focus { outline: none; }
.form-success__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: #fff; }
.form-success__mark .icon { width: 30px; height: 30px; stroke-width: 2.25; }
.form-success .h2 { font-size: clamp(1.875rem, 2vw + 1.2rem, 2.75rem); }
.form-success__steps { width: 100%; margin-top: 6px; border-top: 1px solid var(--line); }
.form-success__steps li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.form-success__steps b { color: var(--coral-text); font-size: .8125rem; letter-spacing: .16em; padding-top: 3px; }
.form-success__steps strong { color: var(--ink); font-weight: 600; }

/* ---------- 10. Contact: channels column ---------- */
.reach { position: sticky; top: calc(var(--header-h) + 24px); background: var(--tan); border: 1px solid rgba(20, 20, 19, .07); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.reach__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.reach__item { display: flex; align-items: flex-start; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.reach__item:first-of-type { margin-top: 18px; }
.reach__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--coral-text); border: 1px solid var(--line); }
.reach__icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.reach__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.reach__value { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.reach__item a.reach__value { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.reach__item a.reach__value:hover { color: var(--coral-text); }
.reach__note { margin-top: 2px; font-size: .9375rem; color: var(--ink-2); }
.reach__links { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 6px; }
.reach__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9688rem; color: var(--ink); }
.reach__links a:hover { color: var(--coral-text); }
.reach__links .icon { width: 18px; height: 18px; }
.reach__trust { padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); line-height: 1.8; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1100px) {
  .reach { position: static; }
}
@media (max-width: 1000px) {
  .xp { grid-template-columns: 1fr; align-items: start; }
  .xp__copy { padding-left: 0; border-left: 0; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line-dark); }
  .story, .svc, .pitch, .faq, .book { grid-template-columns: 1fr; }
  .story__head, .faq__head { position: static; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtile { min-height: 220px; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps .step:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech__group:nth-child(n + 3) { padding-top: 36px; }
}
@media (max-width: 860px) {
  .steps--3 { grid-template-columns: 1fr; row-gap: 0; }
  .steps--3 .step { border-left: 0; padding: 28px 0 28px; border-top: 1px solid var(--line-strong); }
  .steps--3 .step:first-child { border-top: 0; padding-top: 4px; }
  .steps--3 .step .icon { margin: 18px 0 18px; }
}
@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; gap: 14px; }
  .vtile { min-height: 0; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 18px 0 0; }
  .xp__fig { flex-direction: column; align-items: flex-start; gap: 20px; }
  .xp__num { font-size: clamp(7rem, 38vw, 9rem); }
  .tech { grid-template-columns: 1fr 1fr; }
  .tech__group { padding-right: 12px; }
  .tech__group li { gap: 10px; font-size: .875rem; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps .step, .steps .step:nth-child(n) { border-left: 0; padding: 28px 0; border-top: 1px solid var(--line-strong); }
  .steps .step:first-child { border-top: 0; padding-top: 4px; }
  .steps .step .icon { margin: 18px 0 18px; }
  .form__row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
.svc__name a { color: inherit; text-decoration: none; }
.svc__name a:hover, .svc__name a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
