/* Fixed FL1GHT5 composition. Materials stay soft; colour planes carry hierarchy.
   Logo colours are exact fills. Text uses the contrast-safe local ink tokens. */
:root[data-cc-brand="fl1ght5"] { accent-color:var(--f5-orange); --f5-radius-action:16px 0 16px 0; }
:root[data-cc-brand="fl1ght5"] body { background:var(--f5-white); color:var(--cc-ink); }
:root[data-cc-brand="fl1ght5"] ::selection { color:var(--f5-black); background:var(--f5-yellow); }
:root[data-cc-brand="fl1ght5"] .pm-page-progress { background:var(--f5-orange); }
:root[data-cc-brand="fl1ght5"] :is(.cc-site-tools,.motion-toggle) { color:var(--cc-ink); }

/* One logo-shaped silhouette for actions, including controls added by apps.
   Override legacy pill/circle radii without changing their material or motion. */
:root[data-cc-brand="fl1ght5"] :is(
  button:not(.chapter-card,.photo-card), input[type="button"], input[type="submit"], input[type="reset"],
  [role="button"], [role="tab"], summary,
  a:is(.button,.btn,.cc-button,.project-button,.mc-btn,.hos-vote-btn,.nav-contact,.text-link,.dl-btn,.ig),
  .site-navigation a, .project-header nav a, .product-nav a, .desktop-nav a,
  .archive-nav a, .archive-club-links a, .archive-links li a, .archive-content .buttons a,
  .footer-main nav a, .footer-bottom nav a
) { border-radius:var(--f5-radius-action) !important; }

body[data-cc-site="modern"] {
  .site-header { background:rgb(255 255 255 / .94); border-bottom-color:#dedede; }
  .site-header .wordmark { padding:8px 12px; border-radius:var(--f5-radius-action); }
  .wordmark img { width:44px; height:44px; padding:0; background:transparent; border-radius:0; }
  .wordmark small { color:#545454; }
  .site-navigation a:is([aria-current="page"],[aria-current="location"]) {
    color:var(--f5-black); background:var(--f5-yellow);
    box-shadow:inset 2px 2px 5px rgb(97 60 0 / .17),inset -2px -2px 5px rgb(255 255 255 / .55);
  }
  .motion-toggle { box-shadow:var(--cc-control-raised); }
  .motion-toggle:active { box-shadow:var(--cc-control-inset); }
  :is(.button-dark,.btn.primary,.nav-contact):is(:hover,:active) {
    color:var(--cc-on-pop); background:var(--cc-pop-fill);
  }
  .home-hero {
    margin-top:28px; margin-bottom:32px; padding:48px; gap:42px;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    border:1px solid var(--cc-glass-edge); border-radius:34px; box-shadow:var(--cc-shadow);
  }
  .home-hero h1 { font-size:clamp(2.6rem,4.1vw,4.3rem); }
  .home-hero h1 em { color:var(--f5-yellow); }
  .home-hero .hero-motto { display:block; margin-top:18px; font-size:clamp(1.65rem,2.6vw,2.5rem); line-height:1.25; letter-spacing:-.035em; }
  .home-hero .eyebrow { color:var(--f5-yellow); }
  .home-hero .intro-copy { font-size:1.025rem; }
  .home-hero .hero-credit { display:flex; align-items:center; gap:10px; padding-top:20px; border-top:1px solid var(--cc-border); }
  .home-hero .hero-credit img { flex:none; width:24px; height:24px; object-fit:contain; }
  .hero-brand {
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    min-width:0; min-height:500px; gap:34px; margin:0;
  }
  /* The original transparent logo has generous square padding. Frame only its
     visible wings in the layout without altering or stretching the brand asset. */
  .hero-brand-art { position:relative; width:100%; aspect-ratio:820 / 466; overflow:hidden; }
  .hero-brand-art img {
    position:absolute; width:121.95122%; max-width:none; height:auto;
    left:-10.97561%; top:50%; transform:translateY(-50%);
  }
  .hero-brand figcaption {
    color:var(--f5-white); font:650 clamp(2.4rem,4.6vw,4.5rem)/1.1 var(--cc-font);
    letter-spacing:-.055em; text-align:center; white-space:nowrap;
  }
  .hero-brand figcaption span { color:var(--f5-orange); }
  .connected-practice { border:1px solid #e2e2e2; background:var(--cc-surface); }
  .practice-heading .eyebrow { color:#654595; }
  .practice-options { background:#f0f0ef; }
  .practice-options button[aria-selected="true"] { background:var(--f5-charcoal); color:var(--f5-white); }
  .practice-panel { border-radius:0 0 16px 16px; }
  .section-head .eyebrow { color:#64458e; }
  .solution-card { background:#f7f7f5; box-shadow:7px 7px 20px #11111114,-5px -5px 16px #fff; border:1px solid #e8e8e5; }
  .solution-card-art { border:1px solid var(--cc-glass-edge); }
  .solution-card-link { color:#8e3700; }
  .solution-card-link::after { content:'\2197'; float:right; color:var(--f5-purple); }
  .work-stage { background:#EEE7FA; color:#583588; }
  .project-highlights .project-record { background:var(--f5-white); border:1px solid #dedede; }
  .about-band { border-block-color:var(--cc-border); }
  .about-band .eyebrow { color:var(--f5-yellow); }
  .about-graphic { padding:16px; border-radius:26px; box-shadow:var(--cc-inset); }
  .service-rows > a { background:#f7f7f5; border:1px solid #e6e6e3; }
  .lab-feature { background:#f7f7f5; border:1px solid #e6e6e3; }
  .contact-band { border-color:var(--cc-glass-edge); }
  .contact-band .eyebrow { color:#624000; }
  .contact-band :is(.button-dark,.button-dark:hover,.button-dark:active) {
    background:var(--f5-black); color:var(--f5-white);
  }
  .contact-band-graphic { border:1px solid var(--cc-glass-edge); }
  .site-footer { margin-top:60px; }
  .footer-wordmark { display:inline-flex; align-items:center; gap:14px; color:var(--f5-white); }
  .footer-wordmark img { flex:none; width:52px; height:52px; object-fit:contain; }
  .footer-wordmark span { color:var(--f5-white); font-weight:700; }
  .footer-intro .footer-motto { color:var(--f5-yellow); font:italic 400 clamp(1.25rem,1.8vw,1.65rem)/1.4 var(--cc-display-font); }
  .footer-location { display:flex; align-items:center; gap:10px; }
  .footer-location img { flex:none; width:24px; height:24px; object-fit:contain; }
  .footer-main nav strong { color:var(--f5-yellow); }
  .footer-bottom { border-top-color:var(--cc-border); }
  .footer-main nav a:active { box-shadow:var(--cc-control-inset); }
  .page-intro-art { border:1px solid var(--cc-glass-edge); }
  .process-grid article { border:1px solid #dedede; }
  .process-grid article>span { display:inline-flex; padding:5px 10px; border-radius:8px; background:var(--f5-yellow); color:var(--f5-black); }
  .solution-detail { border:1px solid #e0e0de; }
  .solution-jump-nav { background:#f1f1ee; }
  .solution-jump-nav a:hover { background:var(--f5-yellow); color:var(--f5-black); box-shadow:var(--cc-control-raised); }
  .person-card { border:1px solid #dedede; }
  .skill-tags span { color:#583588; background:#EEE7FA; }
  .search-controls { background:#f2f2ef; }
  .guide-card { border:1px solid #dedede; }
  .guide-card-meta span:last-child { color:#583588; }
  .guide-card-meta span:last-child::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--f5-purple); margin-right:6px; vertical-align:middle; }
  .guide-read { color:#8e3700; }
  .article__header { border:1px solid #e0e0de; }
  .article__toc { background:#f8f4eb; border:1px solid #e1d6c5; }
  .article__toc .toc-title { color:#583588; }
  .article-related { background:#EEE7FA; color:#282230; }
  .article-related :is(h2,h3,p,li) { color:inherit; }
  .article-related a { color:#583588; }
  .analogy-box { background:#fff0d9; color:#302719; }
  .analogy-box :is(h2,h3,p,li) { color:inherit; }
  .analogy-box a { color:#8e3700; }
  .cmd-brdr,.op-brdr { border:1px solid var(--cc-border); }
  .cmd-box,.op-box { background:var(--cc-surface); }
  .cmd-brdr :is(.prmpt,.cmd-head),.op-brdr .op-head { color:var(--f5-yellow); }
  .enquiry-form { background:#f7f7f5; border:1px solid #dedede; }
  input:focus-visible,textarea:focus-visible,select:focus-visible { box-shadow:var(--cc-inset),0 0 0 3px rgb(255 117 31 / .2); }
  .motion-graphic { --graphic-accent:var(--cc-accent); --graphic-paper:var(--cc-surface-raised); --graphic-tint:var(--cc-accent-soft); }
  .mg-plane-solid { fill:var(--f5-orange); stroke:var(--cc-ink); stroke-width:.6; }
  .mg-white-line { stroke:var(--f5-black); }
}

@media (max-width:1100px) {
  body[data-cc-site="modern"] .home-hero { padding:32px; gap:28px; }
  body[data-cc-site="modern"] .hero-brand { min-height:420px; gap:26px; }
}
@media (max-width:900px) {
  body[data-cc-site="modern"] .home-hero { grid-template-columns:1fr; }
  body[data-cc-site="modern"] .home-hero h1 { max-width:700px; }
  body[data-cc-site="modern"] .hero-brand { min-height:0; width:min(100%,650px); justify-self:center; padding-block:20px 10px; }
  body[data-cc-site="modern"] .hero-brand figcaption { font-size:clamp(2.6rem,7vw,4rem); }
}
@media (max-width:600px) {
  body[data-cc-site="modern"] .home-hero { padding:25px 22px; margin-top:18px; border-radius:26px; }
  body[data-cc-site="modern"] .home-hero h1 { font-size:clamp(2.45rem,10.5vw,3.5rem); }
  body[data-cc-site="modern"] .hero-brand { padding-block:8px; gap:20px; }
  body[data-cc-site="modern"] .hero-brand figcaption { font-size:clamp(2rem,8.2vw,3rem); }
}
@media (forced-colors:active) {
  :root[data-cc-brand="fl1ght5"] body :is(.home-hero,.site-footer,.about-band,.contact-band,.page-intro-art,.solution-card,.solution-card-art,.practice-options button,.article-related,.analogy-box) { color:CanvasText; background:Canvas; border:1px solid CanvasText; }
  :root[data-cc-brand="fl1ght5"] .hero-brand figcaption { color:CanvasText; }
  :root[data-cc-brand="fl1ght5"] body :is(.home-hero,.site-footer,.about-band,.contact-band) :is(h1,h2,p,a,span,em,strong) { color:CanvasText; }
}
@media print {
  :root[data-cc-brand="fl1ght5"] body :is(.home-hero,.about-band,.article__header,.contact-band,.cmd-brdr,.op-brdr) { background:white; color:black; box-shadow:none; }
  :root[data-cc-brand="fl1ght5"] body :is(.home-hero,.about-band,.article__header,.contact-band,.cmd-brdr,.op-brdr) :is(h1,h2,h3,p,a,em,pre,code,span) { color:black; }
  :root[data-cc-brand="fl1ght5"] .hero-brand figcaption { color:black; }
}
