/* New page composition uses the shared ceramic / metal surfaces and light fields. */
@layer pages {
  @media(max-width:767px){
    body.ix-expanded{
      --ix-section-heading-type:var(--ix-section-heading-mobile);
      --ix-section-copy-type:var(--ix-section-copy-mobile);
    }
  }
  /* Section headings and introduction copy use distinct type scales. */
  body.ix-expanded:is(.ix-home-round,.ix-technology-round,.ix-company-round) main :is(.ix-section,.ix-scene) .ix-section-title{
    font-size:var(--ix-section-heading-type);
  }
  body.ix-expanded:is(.ix-home-round,.ix-technology-round,.ix-company-round) main
    :is(.ix-section-head,.ix-tech-copy,.ix-company-statement,.ix-contact-head,.ix-company-mission>.ix-wrap,.ix-hero-copy)>.ix-copy{
    font-size:var(--ix-section-copy-type);
  }
  /* Section type (Riley, 2026-10-29): section headings and body copy on Home, AFH Technology and About take the sizes
     of Home section 2. Heroes, the ending sections and text inside components keep their own sizes. */
  body.ix-expanded:is(.ix-home-round,.ix-technology-round,.ix-company-round) main
    :is(.ix-home-ideas,.ix-home-tools,.ix-home-values,.ix-home-products,.ix-home-qa,.ix-tech-system,.ix-tech-constraints,.ix-tech-products,.ix-company-story)
    .ix-section-title{font-size:var(--ix-section-title-size);line-height:1.15;letter-spacing:-.015em;}
  body.ix-expanded:is(.ix-home-round,.ix-technology-round,.ix-company-round) main
    :is(.ix-home-ideas,.ix-home-tools,.ix-home-values,.ix-home-products,.ix-tech-system,.ix-tech-constraints,.ix-tech-products,.ix-company-story)
    :is(:is(.ix-section-head,.ix-tech-copy,.ix-company-statement,.ix-ideas-copy,.ix-product-entries)>.ix-copy,.ix-engineering-copy){
    font-size:var(--ix-section-body-size);line-height:1.6;
  }
  /* Centred introductions (Riley, 2026-10-29): Home Engineering, the AFH Technology foundation and About Team. The
     lines wrap naturally around the centre; balanced or justified lines read as a block. */
  body.ix-expanded main .ix-intro-center{max-width:56rem;margin:0 auto;text-align:center;}
  body.ix-expanded main .ix-intro-center>.ix-section-title{margin:0;}
  body.ix-expanded main .ix-intro-center>.ix-copy{max-width:none;margin:var(--ix-space-4) 0 0;line-height:1.5;color:var(--ix-t-body);text-wrap:pretty;}
  /* On phones the introduction copy is body sized, and longer paragraphs need more line spacing. */
  @media(max-width:767px){
    body.ix-expanded main :is(.ix-section-head,.ix-tech-copy,.ix-company-statement,.ix-contact-head,.ix-company-mission>.ix-wrap)>.ix-copy{
      line-height:1.5;
    }
  }
  /* The Blog section head uses the Home section type (Riley, 2026-10-29), also on phones. Its ending card takes the
     section heading size of the other pages (Riley, 2026-11-04). */
  body.ix-expanded.ix-blog-page main .ix-callout .ix-section-title{font-size:var(--ix-section-heading-type);}
  body.ix-expanded main .ix-blog-latest .ix-section-title{font-size:var(--ix-section-title-size);line-height:1.15;letter-spacing:-.015em;}
}

@layer scenes {
  .ix-expanded{background:var(--ix-deep);}
  .ix-wrap{width:var(--ix-container);margin:auto;}
  .ix-section{position:relative;isolation:isolate;padding:var(--ix-space-8) 0;background:var(--ix-deep);}
  /* Contain horizontal light-field bleed while preserving vertical blending. */
  :is(.ix-home-values,.ix-home-tools,.ix-tech-constraints,.ix-tech-products,.ix-blog-latest){overflow-x:clip;}
  .ix-section::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;}
  .ix-section-head{max-width:var(--ix-copy-width);margin-bottom:var(--ix-space-6);}
  .ix-section-head .ix-copy{margin-top:var(--ix-space-4);}
  /* Scope heading sizes to main content. The :where() wrapper preserves specificity and leaves footer headings independent. */
  .ix-expanded :where(main) h3{font-size:var(--ix-heading);line-height:1.3;font-weight:520;color:var(--ix-t-heading);}
  .ix-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ix-space-3);margin-top:var(--ix-space-5);}
  .ix-home-hero{padding:0;overflow:hidden;background:var(--ix-hero-bg);}
  .ix-home-hero>.ix-wrap{min-height:var(--ix-hero-height);display:flex;align-items:center;position:relative;}
  .ix-hero-media{position:absolute;inset:0 calc((100vw - 100%)/-2) 0 24%;z-index:-1;}
  .ix-hero-media img{height:100%;width:100%;object-fit:cover;object-position:58% center;}
  .ix-home-hero::before{display:none;}
  .ix-home-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--ix-hero-shade);}
  .ix-hero-copy{width:51%;padding:var(--ix-space-7) 0;}
  .ix-hero-title{font-size:var(--ix-hero-type);line-height:1.04;letter-spacing:-.045em;font-weight:520;color:var(--ix-t-title);max-width:11ch;}
  .ix-hero-copy>.ix-copy{max-width:49ch;margin-top:var(--ix-space-5);}
  .ix-hero-copy .ix-actions{max-width:34rem;}


  .ix-home-tools::before{background:var(--ix-field-blue);}
  .ix-tools-layout{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:var(--ix-space-7);align-items:start;}

  .ix-scenario{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--ix-space-4);padding:0 0 var(--ix-space-5);border-bottom:var(--ix-hairline) solid var(--ix-edge);}
  .ix-scenario h3{font-size:1.125rem;}
  .ix-scenario p{margin-top:var(--ix-space-2);}



  .ix-tech-layout{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:var(--ix-space-7);align-items:center;}
  .ix-tech-copy .ix-display{margin-top:var(--ix-space-3);}
  .ix-tech-copy .ix-copy{margin-top:var(--ix-space-4);}
  .ix-tech-visual{min-width:0;background:var(--ix-ceramic);border:var(--ix-hairline) solid var(--ix-edge);border-radius:var(--ix-radius-3);overflow:hidden;box-shadow:var(--ix-product-shadow);}

  .ix-tech-constraints .ix-tech-copy{order:2;}
  .ix-tech-constraints .ix-tech-layout{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);}
  .ix-tech-constraints::before{background:var(--ix-value-field);}

  @media(max-width:64rem){
    .ix-hero-title{font-size:var(--ix-hero-tablet);}
    .ix-hero-copy{width:58%;}
    .ix-tools-layout,.ix-tech-layout,.ix-tech-constraints .ix-tech-layout{gap:var(--ix-space-5);}
    .ix-tools-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);}
  }
  @media(max-width:48rem){
    .ix-section{padding:var(--ix-space-7) 0;}
    .ix-home-hero{padding:0;}
    .ix-home-hero>.ix-wrap{min-height:auto;padding:var(--ix-space-7) 0 18rem;align-items:flex-start;}
    .ix-hero-copy{width:100%;padding:0;}
    .ix-hero-title{max-width:13ch;}
    .ix-hero-media{inset:27% -25% -8% -10%;}
    .ix-hero-media img{object-position:55% 65%;}
    .ix-home-hero::after{background:var(--ix-hero-mobile-shade);}
    .ix-tools-layout,.ix-tech-layout,.ix-tech-constraints .ix-tech-layout{grid-template-columns:1fr;gap:var(--ix-space-6);}
    .ix-tech-constraints .ix-tech-copy{order:0;}

  }
  @media(max-width:32.5rem){
    .ix-wrap{width:calc(100% - 2rem);}
    .ix-hero-title{font-size:var(--ix-hero-mobile);}
    .ix-expanded .ix-display{font-size:var(--ix-mobile-heading);}


  }
  @media(prefers-reduced-motion:reduce){
    .ix-button{transition:none;}
    .ix-button:hover{transform:none;}
  }
}
@layer scenes {

  .ix-blog-latest{background:var(--ix-tool-bg);}
  .ix-blog-latest::before{background:var(--ix-value-field);}
  .ix-articles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ix-space-4);margin-top:var(--ix-space-6);}
  .ix-article{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:var(--ix-hairline) solid var(--ix-edge);background:var(--ix-metal);}
  .ix-article-visual{width:100%;aspect-ratio:var(--ix-blog-cover-ratio);background:var(--ix-ceramic);overflow:hidden;}
  .ix-article-visual img{display:block;width:100%;height:100%;object-fit:cover;}
  .ix-article-copy{padding:var(--ix-space-4);display:flex;flex:1;flex-direction:column;align-items:flex-start;}
  .ix-article h3{font-size:var(--ix-article-heading);margin-top:var(--ix-space-3);letter-spacing:-.02em;}
  .ix-article p{margin-top:var(--ix-space-3);}

  .ix-company-statement{padding:var(--ix-space-6);border:var(--ix-hairline) solid var(--ix-edge);border-radius:var(--ix-radius-2);background:var(--ix-metal);box-shadow:var(--ix-lit);}
  .ix-company-statement:nth-child(2){background:var(--ix-ceramic);}
  .ix-company-statement .ix-display{font-size:2rem;}
  .ix-company-statement .ix-copy{margin-top:var(--ix-space-5);max-width:45ch;}

  @media(max-width:64rem){.ix-articles{grid-template-columns:repeat(2,minmax(0,1fr));}}
  @media(max-width:48rem){

    .ix-articles{grid-template-columns:1fr;}

  }
  @media(max-width:32.5rem){

    .ix-company-statement{padding:var(--ix-space-5);}

  }
}
@layer scenes {
  .ix-expanded :is(.ix-board-preview,.ix-pipeline-output,.ix-blog-feature-visual,.ix-article-visual) svg{fill:none;stroke:var(--ix-edge-strong);stroke-width:1.1;}

}

@layer scenes {
  /* Light fields. */
  .ix-section::before{background:none;filter:none;}

  /* Section backgrounds progress from blue to teal. */
  .ix-home-values      {background:linear-gradient(145deg,#081018,#03070a 72%);}
  .ix-home-tools       {background:linear-gradient(145deg,#081318,#03080a 72%);}

  .ix-tech-system      {background:linear-gradient(145deg,#081318,#03080a 72%);}
  .ix-tech-constraints {background:linear-gradient(145deg,#081618,#03090a 72%);}
  .ix-tech-products    {background:linear-gradient(145deg,#081817,#030a09 72%);}

  .ix-company-story    {background:linear-gradient(145deg,#081318,#03080a 72%);}
  .ix-company-contact  {background:linear-gradient(145deg,#081817,#030a09 72%);}

  /* Upper-section blue lighting. */
  .ix-home-values::before{
    background:
      radial-gradient(ellipse 700px 560px at 86% -120px,color-mix(in srgb,#198dd8 74%,transparent),transparent 64%),
      radial-gradient(ellipse 440px 360px at 4% calc(100% + 80px),color-mix(in srgb,#198dd8 26%,transparent),transparent 60%);
  }
  /* Lower-section teal lighting. */
  .ix-tech-products::before{
    background:
      radial-gradient(ellipse 640px 500px at 12% -90px,color-mix(in srgb,#43c9b7 58%,transparent),transparent 62%);
  }
}
