/* Shared dark-canvas identity, loaded after all page styles.
   Keep physical palette tokens (navy/ink) intact for buttons and image overlays.
   Text roles change explicitly; no global light-to-dark token substitution. */
html body.aym-navy{
  --aym-content-text:#DCE1E6;
  --aym-content-muted:#A8B2BF;
  --aym-calm-paper:#07101D;
  --aym-calm-gold-text:var(--aym-calm-gold);
  --aym-calm-text:var(--aym-content-text);
  --aym-calm-text-muted:var(--aym-content-muted);
  --aym-calm-text-soft:var(--aym-content-muted);
  --aym-calm-on-dark-muted:var(--aym-content-muted);
  --aym-calm-on-dark-soft:var(--aym-content-muted);
  --aym-calm-line:rgba(220,225,230,.16);
  --aym-calm-line-strong:rgba(220,225,230,.28);
  --aym-heading:var(--aym-content-text);
  --aym-text:var(--aym-content-text);
  --aym-surface:var(--aym-calm-navy);
  --ins-heading:var(--aym-content-text);
  --ins-text:var(--aym-content-text);
  background:var(--aym-calm-navy)!important;
  color:var(--aym-content-text)!important;
}

html body.aym-navy #main{
  background:var(--aym-calm-navy)!important;
  color:var(--aym-content-text)!important;
}
html body.aym-navy :is(.aym-header,.site-footer){
  background:var(--aym-calm-navy)!important;
}
/* Keep breadcrumb labels aligned with their larger touch targets on mobile. */
html body.aym-navy #main :is(.aym-breadcrumb,.services-breadcrumb,.sv-breadcrumb,.ins-breadcrumb,.contact-breadcrumb){
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}
html body.aym-navy #main :is(.aym-breadcrumb,.services-breadcrumb,.sv-breadcrumb,.ins-breadcrumb,.contact-breadcrumb)>li{
  display:inline-flex;
  align-items:center;
}
html body.aym-navy #main :is(h1,h2,h3,h4,h5,h6,strong,b,summary,label,th),
html body.aym-navy #main :is(h1,h2,h3) :is(a,em){
  color:var(--aym-content-text)!important;
}
html body.aym-navy #main :is(p,li,dd,dt,small,figcaption),
html body.aym-navy #main :is(.service-desc,.service-copy small,.partners-proof span,.project-scope){
  color:var(--aym-content-muted)!important;
}
html body.aym-navy #main :is(
  .section-index,.hero-kicker,.aym-kicker,.ins-tag,.service-no,
  .principles article>span,.aym-identity-grid article>span,.aym-belief>span,
  .partners-proof strong,.partners-proof sup,.insight-preview-card>span,.gold
){color:var(--aym-calm-gold)!important;}

/* Text and surface roles for the remaining public templates. */
html body.aym-navy #main :is(
  .services-shell,.services-capability-card>a,.services-card-need span,
  .sv-dark-shell,.sv-dark-bg,.sv-evidence,.aym-responsibility,
  .aym-case-cover-title,.aym-case-meta-value,.aym-filter-btn,
  .sv-stat-value,.sv-related-link,.ins-card a,.ins-card-visual>b
){color:var(--aym-content-text)!important;}
html body.aym-navy #main :is(
  .services-eyebrow,.services-index,.services-card-tag,.services-card-link,
  .aym-section-kicker,.aym-project-cover-label,.aym-case-study-type,
  .aym-case-study-sector,.sv-kicker,.sv-card-no,.sv-step-no,
  .sv-ph-tag,.ins-card-meta,.ins-card-visual>span
){color:var(--aym-calm-gold)!important;}
html body.aym-navy #main :is(
  .services-lifecycle-grid li>span,.services-method-steps>li>span,
  .services-scope-columns span,.aym-founder-message>span,
  .aym-founder-message footer,.aym-council-identity>span,
  .aym-case-study-link,.aym-project-link,.nasaq-disclosure>span,
  .sv-connection-card>span,.aym-project-cover-status,.aym-service-no
){color:var(--aym-calm-gold)!important;}
html body.aym-navy #main :is(.sv-panel-list li span,.aym-stat-val){
  color:var(--aym-content-muted)!important;
}
html body.aym-navy #main :is(
  .aym-form-card,.aym-contact-card,.aym-location-card,.aym-value-card,
  .aym-team-card,.sv-side-panel,.sv-card,.sv-step,.sv-stat-item,
  .sv-connection-card,.sv-faq-item,.ins-card,.ins-card-visual,
  .aym-case-study-card,.aym-project-card,.nasaq-disclosure
){background:transparent!important;box-shadow:none!important;}
html body.aym-navy #main :is(.services-action--line,.aym-btn--outline){
  background:transparent!important;
  color:var(--aym-content-text)!important;
  border-color:var(--aym-calm-line-strong)!important;
}
html body.aym-navy #main :is(.services-action--gold,.form-submit),
html body.aym-navy #main :is(.services-action--gold,.form-submit) :is(span,b){
  background:var(--aym-calm-gold)!important;
  color:var(--aym-calm-navy)!important;
  border-color:var(--aym-calm-gold)!important;
}
html body.aym-navy #main :is(.services-action--gold,.form-submit):hover{
  filter:brightness(1.08);
}
html body.aym-navy #main .aym-filter-btn:is(:hover,.is-active,[aria-pressed="true"]){
  color:var(--aym-calm-gold)!important;
}
/* Service cards retain their image/text structure without a wall of boxes. */
html body.aym-navy #main .services-capability-grid{
  border:0!important;
  gap:2.5rem 3rem!important;
}
html body.aym-navy #main .services-capability-card{
  border:0!important;
  border-top:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main .services-card-media>span{display:none!important;}
/* Readable photo captions without sector-specific blue/purple washes. */
html body.aym-navy #main .aym-project-cover.has-photo::before{
  background:linear-gradient(180deg,rgba(7,16,29,.06),rgba(7,16,29,.28) 35%,rgba(7,16,29,.88) 100%)!important;
}
html body.aym-navy #main .aym-project-cover.has-photo::after{
  background:none!important;
}
html body.aym-navy #main .aym-project-cover-label{
  color:var(--aym-content-text)!important;
}
html body.aym-navy #main :is(.sv-faq-item,.ins-article,.aym-panel) a:not(.aym-btn){
  color:var(--aym-calm-gold)!important;
  text-underline-offset:.2em;
}

/* Native fields use dark surfaces too, including the expanded option menu. */
html body.aym-navy .contact-page-section::before{
  height:470px!important;
  background-image:linear-gradient(180deg,rgba(7,16,29,.6),#07101D 98%),var(--aym-page-hero-image,none)!important;
}
html body.aym-navy #main .contact-form{
  background:transparent!important;
  border:0!important;
  border-block:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main .contact-form :is(input,select,textarea,option){
  color-scheme:dark;
  background:var(--aym-calm-navy)!important;
  color:var(--aym-content-text)!important;
  border-color:var(--aym-calm-line-strong)!important;
}
html body.aym-navy #main .contact-form :is(input,textarea)::placeholder{
  color:var(--aym-content-muted)!important;
  opacity:1;
}
/* Keep field boundaries visible on navy and prevent mobile input zoom. */
html body.aym-navy #main .contact-form :is(input,select,textarea){
  border-color:#788494!important;
  font-size:1rem;
}
html body.aym-navy #main .contact-form :is(input,select,textarea):focus-visible{
  outline:2px solid var(--aym-calm-gold);
  outline-offset:4px;
}
html body.aym-navy #main .contact-form :is(input,select,textarea):focus{
  border-color:var(--aym-calm-gold)!important;
}
html body.aym-navy #main .contact-form [aria-invalid="true"]{
  border-color:var(--aym-calm-gold)!important;
  box-shadow:0 1px 0 var(--aym-calm-gold)!important;
}
html body.aym-navy #main .contact-form :is(.form-field-error,.form-feedback.is-error){
  color:var(--aym-calm-gold)!important;
}

html body.aym-navy #main :is(.text-link,.ins-side a,.insight-preview-card a){
  color:var(--aym-content-text)!important;
}
html body.aym-navy #main :is(.text-link,.ins-side a,.insight-preview-card a):hover{
  color:var(--aym-calm-gold)!important;
}
html body.aym-navy #main :is(.aym-btn--ghost,.aym-btn--outline-dark,.action--glass){
  background:transparent!important;
  color:var(--aym-content-text)!important;
  border-color:var(--aym-calm-line-strong)!important;
}
html body.aym-navy #main :is(.action--gold,.aym-btn--primary),
html body.aym-navy #main :is(.action--gold,.aym-btn--primary) :is(span,strong){
  background:var(--aym-calm-gold)!important;
  color:var(--aym-calm-navy)!important;
  border-color:var(--aym-calm-gold)!important;
}
html body.aym-navy #main :is(.action--gold,.aym-btn--primary):hover{
  filter:brightness(1.08);
}

/* Separate content through rhythm and fine rules, not alternating blocks. */
html body.aym-navy #main :is(
  .home-section,.partners-section,.aym-panel,.aym-about-story,
  .aym-belief,.aym-identity-grid article,.ins-article,.ins-side,.ins-cta,
  .ins-trust-panel,.insight-preview-card,.partner-card
){background:transparent!important;box-shadow:none!important;}
html body.aym-navy #main :is(.service-row,.principles article,.partners-proof,.ins-article,.ins-side){
  border-color:var(--aym-calm-line)!important;
}
html body.aym-navy #main .service-row:hover{
  background:transparent!important;
  border-color:var(--aym-calm-gold)!important;
}
html body.aym-navy #main .service-go.aym-ui-arrow{
  color:var(--aym-calm-gold)!important;
  background:transparent!important;
}

/* A static monochrome presentation keeps the original logo assets unchanged. */
html body.aym-navy #main .partners-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:1.5rem!important;
}
html body.aym-navy #main .partner-card{
  grid-column:auto!important;
  min-height:140px!important;
  padding:1rem .25rem!important;
  border:0!important;
  transform:none!important;
}
html body.aym-navy #main .partner-card img{
  filter:grayscale(1) invert(1)!important;
  opacity:1!important;
  mix-blend-mode:screen!important;
}
html body.aym-navy #main .partner-card:hover img{
  transform:scale(var(--partner-logo-scale,1))!important;
}
html body.aym-navy #main .partner-card::after{display:none!important;}
.partners-browse{display:none;}
.partners-controls[hidden]{display:none!important;}
.partners-marquee-viewport:focus-visible{
  outline:2px solid var(--aym-calm-gold);
  outline-offset:4px;
}
.partners-marquee-viewport:focus-within .partners-grid.is-marquee{animation-play-state:paused;}

/* An intentionally illustrative engineering model replaces the cropped portrait. */
html body.aym-navy.aym-about-page .aym-page-hero::before{
  background-image:linear-gradient(90deg,rgba(7,16,29,.52),rgba(7,16,29,.9) 78%),var(--aym-page-hero-image)!important;
  opacity:1!important;
  filter:none!important;
}
html body.aym-navy.aym-about-page #main .aym-page-title{
  max-width:22ch!important;
}
html[dir="ltr"] body.aym-navy.aym-about-page .aym-page-hero::before{
  background-image:linear-gradient(90deg,rgba(7,16,29,.88),rgba(7,16,29,.62)),var(--aym-page-hero-image)!important;
}
html body.aym-navy #main .aym-about-facts :is(dt,sup){
  color:var(--aym-calm-gold)!important;
}

/* Long-form reading retains a distinct, high-contrast text role. */
html body.aym-navy #main .ins-article :is(p,li){
  color:var(--aym-content-text)!important;
  line-height:1.9!important;
}
html body.aym-navy #main .ins-article a{
  color:var(--aym-calm-gold)!important;
  text-decoration:underline;
  text-underline-offset:.2em;
}
html body.aym-navy.aym-subpage-body--insights-article #main.ins-main .ins-side .ins-cta :is(h2,h3,strong){
  color:var(--aym-content-text)!important;
}
html body.aym-navy.aym-subpage-body--insights-article #main.ins-main .ins-side .ins-cta :is(p,span,small){
  color:var(--aym-content-muted)!important;
}
html body.aym-navy #main .ins-trust-panel :is(a,strong){
  color:var(--aym-content-text)!important;
}
html body.aym-navy #main.ins-main .ins-side .aym-btn--primary,
html body.aym-navy #main.ins-main .ins-side .aym-btn--primary :is(span,strong){
  color:var(--aym-calm-navy)!important;
}

@media(max-width:700px){
  html body.aym-navy .contact-page-section::before{height:400px!important;}
  html body.aym-navy #main .partners-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:1rem!important;
  }
  html body.aym-navy.aym-about-page .aym-page-hero::before{
    background-image:linear-gradient(0deg,rgba(7,16,29,.95),rgba(7,16,29,.68)),var(--aym-page-hero-image)!important;
    background-position:32% center!important;
  }
}

/* Homepage success partners: keep the unified navy canvas while avoiding a
   five-row logo wall when the complete profile partner set is displayed. */
@media(min-width:1051px){
  html body.aym-navy #main .partners-grid.is-marquee{
    display:flex!important;
    grid-template-columns:none!important;
    width:max-content!important;
    max-width:none!important;
    gap:1rem!important;
  }
}
@media(max-width:1050px){
  /* The mobile rail must not depend on the desktop-only is-marquee class. */
  html body.aym-navy #main .partners-grid{
    display:flex!important;
    flex-wrap:nowrap;
    grid-template-columns:none!important;
    width:max-content!important;
    max-width:none!important;
    gap:12px!important;
    animation:none!important;
    transform:none!important;
  }
  html body.aym-navy #main .partners-grid > .partner-card{
    flex:0 0 min(240px,70vw)!important;
    width:min(240px,70vw)!important;
    min-height:180px!important;
    padding:20px 16px 16px!important;
    gap:14px;
    /* Give screen-blended logos an opaque navy backdrop, not transparent black. */
    background:var(--aym-calm-navy)!important;
    isolation:isolate;
    scroll-snap-align:start;
  }
  html body.aym-navy #main .partner-card img{
    width:min(176px,100%);
    height:92px;
    object-fit:contain;
    flex-shrink:0;
    filter:grayscale(1) invert(1) brightness(1.65)!important;
  }
  html body.aym-navy #main .partner-card figcaption{
    font-size:13px;
    line-height:1.6;
    min-height:2.6em;
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:100%;
    color:var(--aym-content-text)!important;
  }
  html body.aym-navy #main .partners-marquee-viewport{
    overflow-x:auto;
    direction:inherit;
    mask-image:none;
    scroll-snap-type:x proximity;
    overscroll-behavior-inline:contain;
    padding-block:4px 10px;
  }
  html body.aym-navy #main .partners-marquee-viewport.has-auto-motion{
    scroll-snap-type:none;
    scroll-behavior:auto;
  }
  html body.aym-navy #main .partner-card--clone{display:none!important;}
  .partners-browse{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:12px;
    padding-top:14px;
    border-top:1px solid var(--aym-calm-line);
  }
  .partners-browse p{margin:0;font-size:13px;line-height:1.6;color:var(--aym-content-muted);}
  .partners-controls{display:flex;gap:8px;flex-shrink:0;}
  .partners-controls button{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--aym-calm-line-strong);
    background:transparent;
    color:var(--aym-calm-gold);
    font:24px/1 sans-serif;
    cursor:pointer;
  }
  .partners-controls button:disabled{opacity:.35;cursor:default;}
  .partners-controls button[hidden]{display:none!important;}
  .partners-controls svg{width:18px;height:18px;fill:currentColor;}
  .partners-controls .motion-play{display:none;}
  .partners-controls .is-paused .motion-play{display:block;}
  .partners-controls .is-paused .motion-pause{display:none;}
  .partners-controls button:focus-visible{outline:2px solid var(--aym-calm-gold);outline-offset:3px;}
  .partners-controls button:not(:disabled):hover{border-color:var(--aym-calm-gold);}
}
@media(min-width:1051px) and (prefers-reduced-motion:reduce){
  html body.aym-navy #main .partners-grid.is-marquee{
    display:grid!important;
    width:100%!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    transform:none!important;
  }
  html body.aym-navy #main .partners-grid.is-marquee .partner-card{width:auto;min-width:0;}
  html body.aym-navy #main .partner-card--clone{display:none!important;}
}
html body.aym-navy #main .partner-card img[src*="new-murabba.svg"],
html body.aym-navy #main .partner-card img[src*="four-seasons.svg"],
html body.aym-navy #main .partner-card img[src*="official-albalad-alameen"],
html body.aym-navy #main .partner-card img[src*="official-alrajhi-building"],
html body.aym-navy #main .partner-card img[src*="official-elsewedy-electric"],
html body.aym-navy #main .partner-card img[src*="official-the-marq-communities"]{
  filter:none!important;
  mix-blend-mode:screen!important;
}

/* Unified interior identity — one continuous navy canvas across every template. */
html body.aym-navy #main :is(
  .aym-objectives-grid,
  .aym-objectives-grid article,
  .services-discipline-grid,
  .profile-service__overview,
  .profile-service__evidence,
  .profile-service__evidence li,
  .profile-service__method,
  .profile-service__cta,
  .aym-founder-spotlight,
  .aym-council,
  .aym-council-image
){
  background:transparent!important;
  box-shadow:none!important;
}

html body.aym-navy #main :is(
  .aym-objectives-grid,
  .services-discipline-grid,
  .profile-service__evidence ul,
  .profile-service__method ol
){
  border-color:var(--aym-calm-line)!important;
  background:transparent!important;
}

html body.aym-navy #main :is(
  .aym-objectives-grid article,
  .services-discipline-grid article,
  .profile-service__evidence li,
  .profile-service__method li
){
  border-color:var(--aym-calm-line)!important;
}

html body.aym-navy #main :is(
  .aym-objectives-grid h3,
  .services-discipline-grid h3,
  .profile-service__evidence h2,
  .profile-service__evidence li strong,
  .profile-service__method h2,
  .profile-service__method h3,
  .profile-service__cta h2,
  .aym-founder-content h2,
  .aym-council h2,
  .aym-council h3
){
  color:var(--aym-content-text)!important;
}

html body.aym-navy #main :is(
  .aym-objectives-grid p,
  .services-discipline-grid p,
  .profile-service__evidence header>p:last-child,
  .profile-service__method p,
  .aym-founder-bio,
  .aym-council p
){
  color:var(--aym-content-muted)!important;
}

html body.aym-navy #main :is(
  .profile-service__eyebrow,
  .profile-service__evidence li span,
  .profile-service__method li>span,
  .profile-service__evidence-link,
  .aym-objectives-grid article>span
){
  color:var(--aym-calm-gold)!important;
}

html body.aym-navy #main .aym-objectives-grid{
  gap:0!important;
  border:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main .aym-objectives-grid article{
  min-height:185px;
  padding:28px;
}
html body.aym-navy #main .aym-objectives-grid article+article{
  border-inline-start:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main .aym-objectives-grid h3{
  margin:24px 0 10px;
  font-size:clamp(1.05rem,1.45vw,1.25rem);
  line-height:1.45;
}
html body.aym-navy #main .aym-objectives-grid p{
  font-size:.9rem;
  line-height:1.8;
}

html body.aym-navy #main .services-discipline-grid{
  background:transparent!important;
}
html body.aym-navy #main .services-discipline-grid article{
  min-height:230px;
  padding:26px 22px;
}
html body.aym-navy #main .services-discipline-grid h3{
  margin:28px 0 12px;
  font-size:1.12rem;
}
html body.aym-navy #main .services-discipline-grid p{
  font-size:.86rem;
  line-height:1.78;
}

html body.aym-navy #main.profile-service .profile-service__evidence,
html body.aym-navy #main.profile-service .profile-service__method,
html body.aym-navy #main.profile-service .profile-service__cta{
  border-top:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main.profile-service .profile-service__evidence,
html body.aym-navy #main.profile-service .profile-service__evidence h2,
html body.aym-navy #main.profile-service .profile-service__evidence li strong{
  color:var(--aym-content-text)!important;
}
html body.aym-navy #main.profile-service .profile-service__evidence header>p:last-child{
  color:var(--aym-content-muted)!important;
}
html body.aym-navy #main.profile-service .profile-service__evidence ul{
  gap:0;
  border:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main.profile-service .profile-service__evidence li{
  padding:26px;
}
html body.aym-navy #main.profile-service .profile-service__evidence-link{
  color:var(--aym-calm-gold)!important;
}
html body.aym-navy #main.profile-service .profile-service__method ol{
  border-top:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main.profile-service .profile-service__method li{
  border-bottom:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main.profile-service .profile-service__method li:nth-child(odd){
  border-inline-end:1px solid var(--aym-calm-line)!important;
}
html body.aym-navy #main.profile-service :is(
  .profile-service__overview h2,
  .profile-service__deliverables h2,
  .profile-service__evidence h2,
  .profile-service__method h2,
  .profile-service__cta h2
){
  font-size:clamp(1.9rem,3.2vw,2.625rem);
  line-height:1.28;
}
html body.aym-navy #main.profile-service .profile-service__hero h1{
  font-size:clamp(2.5rem,5vw,4rem);
  line-height:1.15;
}

html body.aym-navy.aym-leadership-page #main .aym-founder-content{
  align-self:center;
}
html body.aym-navy.aym-leadership-page #main .aym-founder-content .aym-expertise-list{
  margin-top:24px;
}

@media(max-width:820px){
  html body.aym-navy #main .aym-objectives-grid article+article{
    border-inline-start:0!important;
    border-top:1px solid var(--aym-calm-line)!important;
  }
  html body.aym-navy #main.profile-service .profile-service__method li:nth-child(odd){
    border-inline-end:0!important;
  }
}

@media(max-width:700px){
  html body.aym-navy #main .aym-objectives-grid article{
    min-height:0;
    padding:24px 20px;
  }
  html body.aym-navy #main .services-discipline-grid article{
    min-height:0;
    padding:24px 20px;
  }
  html body.aym-navy #main.profile-service :is(
    .profile-service__overview h2,
    .profile-service__deliverables h2,
    .profile-service__evidence h2,
    .profile-service__method h2,
    .profile-service__cta h2
  ){
    font-size:clamp(1.85rem,8.5vw,2.35rem);
  }
  html body.aym-navy #main.profile-service .profile-service__hero h1{
    font-size:clamp(2.2rem,10vw,2.85rem);
  }
}

/* Cross-template rhythm: extend the existing type scale to every active template.
   Small metadata headings keep their compact role; article headings use a reading scale. */
html body.aym-navy {
  --aym-type-page:clamp(2.125rem,4vw,3.5rem);
  --aym-type-section:clamp(1.75rem,3vw,2.625rem);
  --aym-type-card:clamp(1.125rem,1.6vw,1.25rem);
  --aym-section-space:clamp(2.5rem,5vw,4.5rem);
  --aym-section-inset:clamp(1.25rem,4vw,3.5rem);
  --aym-content-muted:#B8C1CC;
}
html[dir="rtl"] body.aym-navy :is(main,.site-footer,button,input,select,textarea) {
  font-family:"Tajawal",system-ui,sans-serif;
}
html[dir="ltr"] body.aym-navy :is(main,.site-footer,button,input,select,textarea) {
  font-family:"Manrope",system-ui,sans-serif;
}
html body.aym-navy #main :is(h1,h2,h3,h4,summary) {
  font-weight:700!important;
  overflow-wrap:break-word;
}
html[dir="rtl"] body.aym-navy #main :is(h1,h2,h3,h4,summary) {
  letter-spacing:0!important;
}
html body.aym-navy #main :is(.aym-page-title,.profile-service__hero h1,.services-hero h1,.contact-page-heading h1,h1.ins-title) {
  font-size:var(--aym-type-page)!important;
  line-height:1.25!important;
  text-wrap:balance;
}
html body.aym-navy #main :is(
  .profile-service__shell section h2,.aym-founder-message__copy h2,
  .aym-about-story__copy h2,.aym-belief h2,.aym-council-head h2,
  .aym-responsibility h2,.aym-strip h2,.ins-article-closing h2
) {
  font-size:var(--aym-type-section)!important;
  line-height:1.35!important;
  text-wrap:balance;
}
html body.aym-navy #main :is(.profile-service__cards h3,.profile-service__method h3,.services-card-statement) {
  font-size:var(--aym-type-card)!important;
  line-height:1.55!important;
}

/* Service profiles inherit the same canvas, borders and spacing as the catalogue. */
html body.aym-navy #main.profile-service .profile-service__shell {
  width:min(1240px,calc(100% - 48px));
}
html body.aym-navy #main.profile-service .profile-service__hero {
  min-height:560px;
  border-radius:0;
  background:var(--aym-calm-navy);
}
html body.aym-navy #main.profile-service .profile-service__hero-copy {
  width:min(820px,100%);
  padding:var(--aym-section-space) var(--aym-section-inset);
}
html body.aym-navy #main.profile-service .profile-service__hero .aym-breadcrumb {
  margin-bottom:36px;
}
html body.aym-navy #main.profile-service .profile-service__shell > section:not(.profile-service__hero) {
  padding:var(--aym-section-space) var(--aym-section-inset);
  background:transparent!important;
  border-top:1px solid var(--aym-calm-line);
}
html body.aym-navy #main.profile-service .profile-service__jump {
  padding:12px var(--aym-section-inset);
  gap:4px 24px;
}
html body.aym-navy #main.profile-service .profile-service__overview {
  gap:32px;
}
html body.aym-navy #main.profile-service .profile-service__overview aside {
  border-color:var(--aym-calm-line);
}
html body.aym-navy #main.profile-service .profile-service__overview aside span {
  color:var(--aym-calm-gold);
  font-weight:700;
}
html body.aym-navy #main.profile-service .profile-service__scope-note {
  font-size:1rem;
  line-height:1.85;
  border-color:var(--aym-calm-line);
}
html body.aym-navy #main.profile-service :is(.profile-service__deliverables,.profile-service__evidence,.profile-service__method,.profile-service__faq) > header {
  margin-bottom:28px;
}
html body.aym-navy #main.profile-service .profile-service__cards {
  gap:0;
  background:transparent;
  border-block:1px solid var(--aym-calm-line);
}
html body.aym-navy #main.profile-service .profile-service__cards article {
  background:transparent;
  padding:28px 24px;
  min-height:0;
}
html body.aym-navy #main.profile-service .profile-service__cards article + article {
  border-inline-start:1px solid var(--aym-calm-line);
}
html body.aym-navy #main.profile-service .profile-service__cards h3 {
  margin:0;
}
html body.aym-navy #main.profile-service .profile-service__outcomes {
  gap:12px 20px;
  margin-top:24px;
}
html body.aym-navy #main.profile-service .profile-service__outcomes span {
  border:0;
  border-inline-start:2px solid var(--aym-calm-gold);
  border-radius:0;
  padding:4px 12px;
  color:var(--aym-content-muted);
}
html body.aym-navy #main.profile-service .profile-service__method li {
  grid-template-columns:36px minmax(0,1fr);
  padding:28px 20px;
  gap:16px;
}
html body.aym-navy #main.profile-service .profile-service__preparation ul {
  margin-bottom:0;
}
html body.aym-navy #main.profile-service .profile-service__faq summary {
  font-size:1.125rem;
  line-height:1.7;
}
html body.aym-navy #main.profile-service .profile-service__cta {
  align-items:center;
  flex-wrap:wrap;
}
html body.aym-navy #main.profile-service .profile-service__cta h2 {
  max-width:24ch;
}

/* Long-form copy has a distinct, predictable reading hierarchy. */
html body.aym-navy #main .ins-article :is(p,li) {
  font-size:1.0625rem!important;
  line-height:1.9!important;
}
html[dir="rtl"] body.aym-navy #main .ins-article :is(p,li) {
  font-size:1.125rem!important;
}
html body.aym-navy #main .ins-article h2 {
  font-size:clamp(1.5rem,2.4vw,2rem)!important;
  line-height:1.5!important;
  margin-block:2rem 1rem;
}
html body.aym-navy #main .ins-article h3 {
  font-size:1.25rem!important;
  line-height:1.6!important;
}
html body.aym-navy #main .ins-side a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  line-height:1.7;
}
@media(max-width:800px) {
  html body.aym-navy #main.profile-service .profile-service__shell {
    width:100%;
  }
  html body.aym-navy #main.profile-service .profile-service__hero {
    min-height:520px;
  }
  html body.aym-navy #main.profile-service .profile-service__cards {
    grid-template-columns:1fr;
  }
  html body.aym-navy #main.profile-service .profile-service__cards article + article {
    border-inline-start:0;
    border-top:1px solid var(--aym-calm-line);
  }
  html body.aym-navy #main.profile-service .profile-service__cards article {
    padding:22px 0;
  }
  html body.aym-navy #main.profile-service .profile-service__method li {
    padding-inline:0;
  }
  html body.aym-navy #main.profile-service .profile-service__overview aside {
    padding-inline-start:0;
    border-inline-start:0;
  }
  html body.aym-navy #main.profile-service .profile-service__cta .aym-hero-actions {
    flex:1 1 100%;
  }
}
/* Responsive picture wrappers must have area for scroll-reveal observation. */
html body.aym-home-new .conviction-visual > picture {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:1!important;
  transform:none!important;
}
