/* Atkinson Film-Arts — Classical Institutional Refinement, 2026-09-20
   Restores the original AFA visual DNA: ivory, deep verde/navy, antique gold,
   Georgia-led editorial typography, cinematic imagery and restrained classical detail.
   Reference sites inform hierarchy and page behavior, not trade dress. */

:root{
  --afa-ivory:#fbf7ee;
  --afa-cream:#fffaf1;
  --afa-parchment:#f3ebdd;
  --afa-travertine:#ece2d2;
  --afa-ink:#17242a;
  --afa-verde:#0a4335;
  --afa-navy:#081d34;
  --afa-gold:#b88731;
  --afa-gold-soft:#d4b66c;
  --afa-gold-pale:#ead8a8;
  --afa-bronze:#8b5c2d;
  --afa-rule:rgba(91,65,28,.22);
  --afa-display-max:4.65rem;
  --afa-section-max:3.15rem;
  --afa-content-max:1460px;
}

body[data-design="classical-refinement-2026"]{
  --ivory:var(--afa-ivory);
  --parchment:var(--afa-parchment);
  --ink:var(--afa-ink);
  --verde:var(--afa-verde);
  --navy:var(--afa-navy);
  --gold:var(--afa-gold);
  --gold-pale:var(--afa-gold-pale);
  --serif:Georgia,"Times New Roman",serif;
  --sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --container:var(--afa-content-max);
  --section-pad:clamp(3.25rem,4.7vw,5.25rem);
  background:
    radial-gradient(circle at 10% 5%,rgba(255,255,255,.94),transparent 28rem),
    linear-gradient(180deg,var(--afa-ivory),#f8f1e5 52%,var(--afa-ivory));
}
body[data-design="classical-refinement-2026"]::before{
  opacity:.18;
  background-image:
    linear-gradient(90deg,transparent 0 49.94%,rgba(184,135,49,.055) 50%,transparent 50.06%),
    radial-gradient(circle at 50% -10%,rgba(184,135,49,.08),transparent 34rem);
}

/* Typography — original family, calmer scale */
body[data-design="classical-refinement-2026"] h1,
body[data-design="classical-refinement-2026"] h2,
body[data-design="classical-refinement-2026"] h3,
body[data-design="classical-refinement-2026"] h4{
  font-family:var(--serif)!important;
  font-weight:400!important;
  letter-spacing:-.032em!important;
}
body[data-design="classical-refinement-2026"] h1{
  font-size:clamp(2.6rem,4.25vw,var(--afa-display-max))!important;
  line-height:.98!important;
}
body[data-design="classical-refinement-2026"] h2{
  font-size:clamp(1.9rem,2.8vw,var(--afa-section-max))!important;
  line-height:1.06!important;
}
body[data-design="classical-refinement-2026"] h3{
  font-size:clamp(1.28rem,1.75vw,1.88rem)!important;
  line-height:1.16!important;
}
body[data-design="classical-refinement-2026"] .section-header h2,
body[data-design="classical-refinement-2026"] .block-head h2{
  max-width:21ch;
  text-wrap:balance;
}
body[data-design="classical-refinement-2026"] .lede{
  font-size:clamp(1rem,1.05vw,1.16rem)!important;
  line-height:1.62;
}
body[data-design="classical-refinement-2026"] :is(.eyebrow,.kicker,.panel-kicker,.complex-kicker){
  color:var(--accent,var(--afa-gold));
  font-size:.68rem;
  letter-spacing:.17em;
}

/* Header — retains original identity; clearer public IA */
body[data-design="classical-refinement-2026"] .site-header{
  background:color-mix(in srgb,var(--header-bg,var(--afa-ivory)) 96%,transparent);
  border-bottom:1px solid rgba(113,79,30,.24);
  box-shadow:0 8px 28px rgba(44,31,12,.035);
}
body[data-design="classical-refinement-2026"] .site-header::after{
  height:3px;
  bottom:-3px;
  opacity:.72;
  background:linear-gradient(90deg,transparent 4%,var(--afa-gold) 28%,var(--afa-gold-pale) 50%,var(--afa-gold) 72%,transparent 96%);
}
body[data-design="classical-refinement-2026"] .site-header-main{
  height:86px;
  grid-template-columns:minmax(270px,1fr) auto auto auto;
  gap:1rem;
}
body[data-design="classical-refinement-2026"] .site-brand img{width:58px;height:58px}
body[data-design="classical-refinement-2026"] .site-brand strong{
  font-family:var(--serif)!important;
  font-size:1.24rem;
  letter-spacing:.035em!important;
}
body[data-design="classical-refinement-2026"] .site-nav{gap:clamp(.72rem,1.15vw,1.12rem)}
body[data-design="classical-refinement-2026"] .site-nav a,
body[data-design="classical-refinement-2026"] .explore-toggle{
  font-size:.69rem;
  letter-spacing:.085em;
  font-weight:760;
}
body[data-design="classical-refinement-2026"] .site-cta{
  min-height:45px;
  padding:.72rem .95rem;
  font-size:.67rem;
}
body[data-design="classical-refinement-2026"] .language-switch-mobile.afa-language-desktop{
  display:inline-flex;
  min-width:39px;
  height:39px;
  border-color:rgba(184,135,49,.5);
  color:var(--header-ink,var(--afa-navy));
  background:rgba(255,255,255,.22);
  font-size:.68rem;
  text-transform:uppercase;
}

/* Hero — balanced text and image, never billboard-sized */
body[data-design="classical-refinement-2026"] .page-hero:not(.film-hero){
  height:clamp(440px,52vh,575px)!important;
  min-height:440px!important;
  max-height:600px!important;
  grid-template-columns:minmax(0,46%) minmax(0,54%);
  background:var(--hero-bg,var(--afa-cream));
}
body[data-design="classical-refinement-2026"] .page-hero-copy{
  padding:clamp(2rem,3.6vw,4.25rem) max(1.5rem,calc((100vw - var(--container))/2));
  padding-right:clamp(2rem,4vw,4.5rem);
  overflow:visible;
}
body[data-design="classical-refinement-2026"] .page-hero h1{
  max-width:14.5ch!important;
  color:var(--hero-title,var(--heading,var(--afa-verde)));
  text-wrap:balance;
}
body[data-design="classical-refinement-2026"] .page-hero.hero-long h1,
body[data-design="classical-refinement-2026"] .page-hero.hero-xlong h1{
  font-size:clamp(2.35rem,3.55vw,4.05rem)!important;
  max-width:17ch!important;
}
body[data-design="classical-refinement-2026"] .page-hero .lede{max-width:58ch;margin-top:1rem}
body[data-design="classical-refinement-2026"] .page-hero-media{
  border-left:1px solid rgba(184,135,49,.3);
  background:#1a160f;
}
body[data-design="classical-refinement-2026"] .page-hero-media::before{
  content:"";
  position:absolute;
  z-index:4;
  inset:14px;
  border:1px solid rgba(234,216,168,.68);
  box-shadow:inset 0 0 0 1px rgba(52,34,10,.12);
  pointer-events:none;
}
body[data-design="classical-refinement-2026"] .page-hero-media::after{
  background:linear-gradient(90deg,rgba(14,19,18,.12),transparent 30%),linear-gradient(180deg,transparent 70%,rgba(0,0,0,.1));
}
body[data-design="classical-refinement-2026"] .page-hero::before{opacity:.78}
body[data-design="classical-refinement-2026"] .hero-proofline span{font-size:.67rem}

/* Section rhythm — classical editorial, readable */
body[data-design="classical-refinement-2026"] :is(.block,.section,.media-story,.visual-archive){
  padding-block:var(--section-pad);
}
body[data-design="classical-refinement-2026"] :is(.block,.section,.media-story,.visual-archive)::before{
  width:min(132px,18vw);
  height:2px;
}
body[data-design="classical-refinement-2026"] :is(.block-head,.section-header){
  grid-template-columns:minmax(0,.86fr) minmax(290px,.42fr);
  gap:clamp(1.75rem,4vw,4.75rem);
  margin-bottom:2.2rem;
  padding-bottom:1.15rem;
}
body[data-design="classical-refinement-2026"] :is(.block-head,.section-header)::after{
  width:min(620px,72%);
  background:linear-gradient(90deg,var(--accent,var(--afa-gold)) 0 95px,var(--hairline) 95px 100%);
}
body[data-design="classical-refinement-2026"] :is(.block-head,.section-header) p{
  line-height:1.62;
}
body[data-design="classical-refinement-2026"] .italian-medallion{
  color:var(--accent,var(--afa-gold));
  opacity:.9;
}

/* Images — more deliberate editorial composition */
body[data-design="classical-refinement-2026"] .split{
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  gap:clamp(2.25rem,4.8vw,5.5rem);
}
body[data-design="classical-refinement-2026"] .media-frame,
body[data-design="classical-refinement-2026"] .hero-art{
  background:var(--afa-parchment);
  border:1px solid rgba(184,135,49,.32);
  box-shadow:0 18px 55px rgba(56,39,13,.09);
}
body[data-design="classical-refinement-2026"] .media-frame::after,
body[data-design="classical-refinement-2026"] .hero-art::after{
  inset:9px;
  border-color:rgba(234,216,168,.74);
}
body[data-design="classical-refinement-2026"] .media-frame{aspect-ratio:5/4}
body[data-design="classical-refinement-2026"] .visual-section .media-frame,
body[data-design="classical-refinement-2026"] .media-story .media-frame{aspect-ratio:16/10}
body[data-design="classical-refinement-2026"] .editorial-gallery,
body[data-design="classical-refinement-2026"] .visual-archive-grid{
  gap:clamp(.9rem,1.7vw,1.4rem);
}
body[data-design="classical-refinement-2026"] .gallery-item,
body[data-design="classical-refinement-2026"] .gallery-image{
  border-color:rgba(184,135,49,.26);
}

/* Cards — keep the original classical geometry, reduce visual heaviness */
body[data-design="classical-refinement-2026"] .grid{background:rgba(91,65,28,.16);border-color:rgba(91,65,28,.16)}
body[data-design="classical-refinement-2026"] .card{
  padding:1.45rem 1.4rem 1.55rem;
  border-top-width:3px;
  box-shadow:inset 0 0 0 1px rgba(184,135,49,.055);
  background:linear-gradient(180deg,rgba(255,255,255,.54),rgba(255,255,255,.12)),var(--ivory);
}
body[data-design="classical-refinement-2026"] .card::after{opacity:.6}
body[data-design="classical-refinement-2026"] .card h3{margin-bottom:.45rem}
body[data-design="classical-refinement-2026"] .pathway-step{
  padding:1.3rem 1.25rem;
}
body[data-design="classical-refinement-2026"] .pathway-step h3{font-size:1.45rem!important}

/* Buttons — gold is precious; verde/navy do the work */
body[data-design="classical-refinement-2026"] .button,
body[data-design="classical-refinement-2026"] .site-cta,
body[data-design="classical-refinement-2026"] .panel-cta{
  border-color:var(--accent-dark,var(--afa-verde));
  background:var(--accent-dark,var(--afa-verde));
}
body[data-design="classical-refinement-2026"] .button:hover,
body[data-design="classical-refinement-2026"] .site-cta:hover,
body[data-design="classical-refinement-2026"] .panel-cta:hover{
  background:var(--afa-gold);
  border-color:var(--afa-gold);
}

/* Homepage — six arms as a compact institutional constellation, not a giant menu */
.afa-constellation{
  padding:clamp(3.2rem,4.8vw,5.4rem) 0;
  background:linear-gradient(180deg,#f2eadc,#f8f2e8);
  border-bottom:1px solid var(--afa-rule);
  position:relative;
}
.afa-constellation::before{
  content:"";
  position:absolute;
  top:0;left:50%;transform:translateX(-50%);
  width:130px;height:2px;
  background:linear-gradient(90deg,transparent,var(--afa-gold),transparent);
}
.afa-constellation-head{
  display:grid;
  grid-template-columns:minmax(0,.78fr) minmax(280px,.42fr);
  gap:clamp(1.6rem,4vw,4.3rem);
  align-items:end;
  margin-bottom:2rem;
}
.afa-constellation-head h2{max-width:20ch!important}
.afa-constellation-head p:last-child{color:var(--muted);max-width:58ch}
.afa-constellation-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid rgba(91,65,28,.2);
  border-left:1px solid rgba(91,65,28,.2);
}
.afa-constellation-card{
  min-height:175px;
  padding:1.25rem 1.25rem 1.35rem;
  border-right:1px solid rgba(91,65,28,.2);
  border-bottom:1px solid rgba(91,65,28,.2);
  text-decoration:none;
  background:rgba(255,255,255,.35);
  position:relative;
  transition:background .2s ease,transform .2s ease;
}
.afa-constellation-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--room-accent,var(--afa-gold));
}
.afa-constellation-card:hover{background:rgba(255,255,255,.72);transform:translateY(-2px)}
.afa-constellation-card .afa-verb{display:block;color:var(--room-accent,var(--afa-gold));font-size:.64rem;font-weight:820;letter-spacing:.17em;text-transform:uppercase;margin-bottom:.8rem}
.afa-constellation-card strong{display:block;font:400 clamp(1.28rem,1.65vw,1.72rem)/1.12 var(--serif);color:var(--afa-verde);margin-bottom:.45rem}
.afa-constellation-card small{display:block;color:var(--muted);font-size:.86rem;line-height:1.5;max-width:34ch}
.afa-constellation-card[data-room="academy"]{--room-accent:#315c92}
.afa-constellation-card[data-room="solutions"]{--room-accent:#9a6538}
.afa-constellation-card[data-room="infrastructure"]{--room-accent:#52788d}
.afa-constellation-card[data-room="marbles"]{--room-accent:#514a86}
.afa-constellation-card[data-room="robotics"]{--room-accent:#aa6c2d}
.afa-constellation-card[data-room="studio"]{--room-accent:#6f3d6f}

/* Family treatments — one institution, one font system, one palette spine */
body[data-afa-family="academy"]{
  --accent:#b88731;--accent-dark:#244d7a;--heading:#153c68;--page-ink:#243847;--page-wash:#eef2f6;--hero-bg:#fbf7ee;--hero-title:#153c68;--footer-bg:#0d3155;--footer-accent:#d8bd82;
}
body[data-afa-family="academy"] .page-hero-media::before{border-color:rgba(216,189,130,.8)}
body[data-afa-family="academy"] .program-facts{background:#f2ede3}
body[data-afa-family="academy"] .course-card,
body[data-afa-family="academy"] .program-card{border-top-color:#315c92}

body[data-afa-family="solutions"]{
  --accent:#a96d3c;--accent-dark:#0c2846;--heading:#0c2846;--page-ink:#223747;--page-wash:#f0e9df;--hero-bg:#f8f2e8;--hero-title:#0c2846;--footer-bg:#081f38;--footer-accent:#d6b66e;
}
body[data-afa-family="solutions"] .section.tinted,
body[data-afa-family="solutions"] .block--wash{background:#f0e9df}

body[data-afa-family="infrastructure"]{
  --accent:#9b7938;--accent-dark:#2c5369;--heading:#24485d;--page-ink:#2d414c;--page-wash:#e9eef0;--hero-bg:#f4f1e9;--hero-title:#24485d;--footer-bg:#1d3d50;--footer-accent:#d3b674;
}
body[data-afa-family="infrastructure"] .card{border-top-color:#52788d}
body[data-afa-family="infrastructure"] .ppc-deliverables article{background:#f8f4eb}

body[data-afa-family="robotics"]{
  --accent:#ac7637;--accent-dark:#252f35;--heading:#243039;--page-ink:#34434a;--page-wash:#ececea;--hero-bg:#f4f1e8;--hero-title:#243039;--footer-bg:#202a30;--footer-accent:#d5b474;
}
body[data-afa-family="robotics"] .card{border-top-color:#aa6c2d}
body[data-afa-family="robotics"] .page-hero-media::after{background:linear-gradient(90deg,rgba(26,29,30,.14),transparent 28%),linear-gradient(180deg,transparent 70%,rgba(0,0,0,.12))}

body[data-afa-family="research"]{
  --accent:#6e8fa8;--accent-dark:#203f5f;--heading:#203f5f;--page-ink:#30475b;--page-wash:#edf1f4;--hero-bg:#f7f5ef;--hero-title:#203f5f;--footer-bg:#183550;--footer-accent:#d6bf88;
}
body[data-afa-family="research"] .card{border-top-color:#6e8fa8}

body[data-afa-family="institution"]{
  --accent:#b88731;--accent-dark:#0a4335;--heading:#0a4335;--page-ink:#243a35;--page-wash:#f1eadf;--hero-bg:#fbf7ee;--hero-title:#0a4335;--footer-bg:#07382e;--footer-accent:#d6b66e;
}

body[data-afa-family="sectors"] .page-hero{grid-template-columns:minmax(0,45%) minmax(0,55%)}

/* Marbles stays darker but remains classical/editorial rather than SaaS-like */
body[data-afa-family="marbles"]{
  --accent:#d1ae60;--accent-dark:#071a31;--heading:#e1ebf7;--page-ink:#e7eef7;--page-wash:#0b213a;--hero-bg:#08182c;--hero-title:#e6eef8;--hero-copy:#d7e2ee;--hairline:rgba(210,226,245,.18);--header-bg:#08182c;--header-ink:#f0f5fb;--footer-bg:#051322;--footer-accent:#d1ae60;
  background:#08192d;color:#e7eef7;
}
body[data-afa-family="marbles"] .page-hero-copy{background:linear-gradient(140deg,#0a2039,#08182c)!important}
body[data-afa-family="marbles"] .page-hero h1{font-family:var(--serif)!important;color:#e7eef7!important}
body[data-afa-family="marbles"] :is(.block,.section){--section-bg:#08192d;color:#e7eef7}
body[data-afa-family="marbles"] :is(.block--wash,.section.tinted){--section-bg:#0b213a}
body[data-afa-family="marbles"] .card{background:#0d2744;color:#e7eef7;border-top-color:#d1ae60}
body[data-afa-family="marbles"] .card p,
body[data-afa-family="marbles"] .section-header p{color:#c8d4df}
body[data-afa-family="marbles"] .explore-panel{color:#17242a}

/* Studio is the cinematic exception, but headline scale remains disciplined */
body[data-afa-family="studio"]{
  --accent:#d2a64b;--accent-dark:#2b1239;--page-ink:#f7ecdf;--heading:#f2d38c;--page-wash:#21102c;--hero-bg:#14091d;--hero-title:#f3d690;--hero-copy:#f7eee4;--hairline:rgba(221,184,105,.28);--header-bg:#150b1d;--header-ink:#f6ead9;--footer-bg:#120819;--footer-accent:#d5ab57;
}
body[data-afa-family="studio"] .page-hero:not(.film-hero){height:clamp(500px,60vh,650px)!important;max-height:680px!important;grid-template-columns:minmax(0,44%) minmax(0,56%)}
body[data-afa-family="studio"] .page-hero h1{font-size:clamp(2.7rem,4.1vw,4.6rem)!important;color:#f4d78e!important}
body[data-afa-family="studio"] .section-header h2,
body[data-afa-family="studio"] .block-head h2{color:#f4d78e}
body[data-afa-family="studio"] .card{background:#21102c}

/* Trust / evidence pages read like formal documents */
body[data-afa-family="institution"] .prose,
body[data-route*="trust-centre"] .prose,
body[data-route*="centre-de-confiance"] .prose{max-width:820px}
body[data-route*="trust-centre"] .notice,
body[data-route*="centre-de-confiance"] .notice{background:#f0e7d8;border-left-color:var(--afa-gold)}

/* Footer — classical close */
body[data-design="classical-refinement-2026"] .footer-cta h2{font-size:clamp(1.95rem,2.8vw,3rem)!important;max-width:19ch}
body[data-design="classical-refinement-2026"] .footer-main{gap:clamp(1.5rem,2.8vw,3rem)}
body[data-design="classical-refinement-2026"] .footer-brand-mark{max-height:140px}

/* Responsive */
@media(max-width:1320px) and (min-width:1181px){
  body[data-design="classical-refinement-2026"] .site-nav{gap:.7rem}
  body[data-design="classical-refinement-2026"] .site-nav a,
  body[data-design="classical-refinement-2026"] .explore-toggle{font-size:.64rem}
  body[data-design="classical-refinement-2026"] .site-cta{padding-inline:.72rem;font-size:.62rem}
}
@media(max-width:1180px){
  body[data-design="classical-refinement-2026"] .site-header-main{grid-template-columns:1fr auto auto}
  body[data-design="classical-refinement-2026"] .language-switch-mobile.afa-language-desktop{display:inline-flex}
}
@media(max-width:860px){
  body[data-design="classical-refinement-2026"] .site-header-main{height:74px;grid-template-columns:1fr auto auto}
  body[data-design="classical-refinement-2026"] .language-switch-mobile.afa-language-desktop{display:inline-flex}
  body[data-design="classical-refinement-2026"] .page-hero:not(.film-hero),
  body[data-afa-family="studio"] .page-hero:not(.film-hero){
    height:auto!important;max-height:none!important;min-height:0!important;
    grid-template-columns:1fr;grid-template-rows:auto minmax(270px,38svh);
  }
  body[data-design="classical-refinement-2026"] .page-hero-copy{padding:2rem 1.15rem!important}
  body[data-design="classical-refinement-2026"] .page-hero h1,
  body[data-design="classical-refinement-2026"] .page-hero.hero-long h1,
  body[data-design="classical-refinement-2026"] .page-hero.hero-xlong h1,
  body[data-afa-family="studio"] .page-hero h1{font-size:clamp(2.1rem,8vw,3.25rem)!important;max-width:18ch!important}
  body[data-design="classical-refinement-2026"] :is(.block-head,.section-header),
  .afa-constellation-head{grid-template-columns:1fr;gap:1rem}
  body[data-design="classical-refinement-2026"] .split{grid-template-columns:1fr}
  .afa-constellation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  body[data-design="classical-refinement-2026"] h2{font-size:clamp(1.75rem,7.8vw,2.35rem)!important}
  .afa-constellation-grid{grid-template-columns:1fr}
  .afa-constellation-card{min-height:150px}
  body[data-design="classical-refinement-2026"] .page-hero-media::before{inset:9px}
}
@media(prefers-reduced-motion:reduce){
  .afa-constellation-card{transition:none}
}

/* Page-family modules: borrow behavior, never the reference site's visual identity */
body[data-afa-family="academy"] .learning-format-grid,
body[data-afa-family="academy"] .academy-program-preview,
body[data-afa-family="academy"] .academy-offer-grid{
  gap:1px;
  background:rgba(49,92,146,.2);
  border-color:rgba(49,92,146,.2);
}
body[data-afa-family="academy"] .learning-format-card,
body[data-afa-family="academy"] .academy-program-preview .program-card,
body[data-afa-family="academy"] .academy-offer-card{
  border-radius:0;
  border:0;
  border-top:3px solid #315c92;
  background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.28)),var(--afa-ivory);
  padding:1.2rem;
}
body[data-afa-family="academy"] .learning-format-card h3,
body[data-afa-family="academy"] .academy-program-preview h3{color:#153c68}
body[data-afa-family="academy"] .course-grid{gap:1rem;background:transparent;border:0}
body[data-afa-family="academy"] .course-card{border:1px solid rgba(49,92,146,.17);border-top:4px solid #315c92;box-shadow:0 10px 30px rgba(21,60,104,.045)}

body[data-afa-family="studio"] .studio-proof-grid{grid-template-columns:1.28fr 1fr 1fr;gap:1.15rem}
body[data-afa-family="studio"] .studio-proof-card{border:1px solid rgba(226,190,104,.32);background:#1d0d27;box-shadow:0 18px 48px rgba(0,0,0,.16)}
body[data-afa-family="studio"] .studio-proof-card img{aspect-ratio:16/10}
body[data-afa-family="studio"] .studio-proof-card:nth-child(3) img{object-position:center 32%}
body[data-afa-family="studio"] .studio-proof-card span{padding:1.1rem 1.15rem 1.2rem}
body[data-afa-family="studio"] .studio-proof-card strong{color:#f5dfaa;font-size:1.22rem}
body[data-afa-family="studio"] .studio-proof-card small{color:#d7b767}
body[data-afa-family="studio"] .studio-door-grid{gap:1rem;background:transparent;border:0}

body[data-afa-family="robotics"] .editorial-gallery,
body[data-afa-family="research"] .editorial-gallery,
body[data-afa-family="sectors"] .editorial-gallery,
body[data-afa-family="sectors"] .visual-archive-grid{
  grid-template-columns:1.12fr .88fr;
  gap:1.1rem;
  background:transparent;
  border:0;
}
body[data-afa-family="robotics"] .editorial-gallery figure,
body[data-afa-family="research"] .editorial-gallery figure,
body[data-afa-family="sectors"] .editorial-gallery figure,
body[data-afa-family="sectors"] .visual-archive-grid figure{
  min-height:390px;
  border:1px solid rgba(184,135,49,.25);
  box-shadow:0 18px 50px rgba(35,31,24,.07);
}
body[data-afa-family="robotics"] .pathway,
body[data-afa-family="infrastructure"] .principle-steps{
  border-top:1px solid rgba(91,65,28,.22);
}
body[data-afa-family="robotics"] .pathway-step{border-bottom:1px solid rgba(91,65,28,.18)}

body[data-afa-family="infrastructure"] .hardware-matrix{
  gap:1px;
  background:rgba(82,120,141,.2);
  border:1px solid rgba(82,120,141,.2);
}
body[data-afa-family="infrastructure"] .hardware-card{
  border:0;
  border-radius:0;
  border-top:3px solid #52788d;
  background:linear-gradient(180deg,#fffdf8,#f5f0e7);
  padding:1.25rem;
}
body[data-afa-family="infrastructure"] .hardware-card h3{font-size:1.28rem!important;color:#24485d}
body[data-afa-family="infrastructure"] .hardware-band{background:linear-gradient(135deg,#e8edef,#f7f0e5)}
body[data-afa-family="infrastructure"] .workload-visual{border:1px solid rgba(82,120,141,.22);box-shadow:0 20px 55px rgba(36,72,93,.08)}

body[data-afa-family="marbles"] .callout{border-left-color:#d1ae60;background:#0d2744}
body[data-afa-family="marbles"] .band{background:linear-gradient(135deg,#0b213a,#07182c);border-color:rgba(209,174,96,.32)}

body[data-afa-family="research"] .visual-archive-head{gap:3rem}
body[data-afa-family="research"] .visual-archive-grid figcaption,
body[data-afa-family="sectors"] .visual-archive-grid figcaption{padding:3.4rem 1.1rem 1rem}

body[data-afa-family="solutions"] .pathway{gap:1px;background:rgba(169,109,60,.17);border-color:rgba(169,109,60,.17)}
body[data-afa-family="solutions"] .pathway-step{background:#fbf7ee}
body[data-afa-family="solutions"] .pathway-step h3{color:#0c2846}

/* Long process headings stay editorial rather than poster-sized. */
body[data-route*="full-stack-ai"] .section-header h2,
body[data-route*="ia-complete"] .section-header h2,
body[data-route*="full-stack-ai"] .block-head h2,
body[data-route*="ia-complete"] .block-head h2{
  font-size:clamp(1.75rem,2.3vw,2.65rem)!important;
  line-height:1.12!important;
  max-width:25ch!important;
}

@media(max-width:980px){
  body[data-afa-family="studio"] .studio-proof-grid{grid-template-columns:1fr 1fr}
  body[data-afa-family="studio"] .studio-proof-card:first-child{grid-column:1/-1}
  body[data-afa-family="robotics"] .editorial-gallery,
  body[data-afa-family="research"] .editorial-gallery,
  body[data-afa-family="sectors"] .editorial-gallery,
  body[data-afa-family="sectors"] .visual-archive-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  body[data-afa-family="studio"] .studio-proof-grid,
  body[data-afa-family="robotics"] .editorial-gallery,
  body[data-afa-family="research"] .editorial-gallery,
  body[data-afa-family="sectors"] .editorial-gallery,
  body[data-afa-family="sectors"] .visual-archive-grid{grid-template-columns:1fr}
  body[data-afa-family="studio"] .studio-proof-card:first-child{grid-column:auto}
}
