/* FOCaF R6 — a quiet, dimensional reading environment. */
@media screen {
  body[data-fc-visual="r6"] {
    --fc-wide-gutter: clamp(20px, 3.1vw, 96px);
    --fc-wide-body: clamp(16px, calc(14px + .22vw), 23px);
    --fc-wide-small: clamp(13px, calc(11px + .2vw), 18px);
    --fc-wide-control: clamp(14px, calc(12px + .2vw), 20px);
    --fc-ink: #153b43;
    --fc-muted: #4d666b;
    --fc-paper: #f4f7f3;
    --fc-teal: #245f66;
    --fc-gold: #d5be88;
    --fa-paper: #f4f7f3;
    color: var(--fc-ink);
    background: #f4f7f3;
  }
  [data-fc-visual] .header {
    background: #f8faf7f2;
    border-bottom-color: #d6e1dc;
    box-shadow: 0 4px 24px #173f4305;
    backdrop-filter: blur(18px);
  }
  [data-fc-visual] .nav { min-height: 82px; }
  [data-fc-visual] .menu a { border-radius: 10px; }
  [data-fc-visual] .menu a:hover { background: #e4ede6; }
  [data-fc-visual] .safety-strip { background: #e9eee4; border-bottom-color: #d6dfd2; }
  [data-fc-visual] .safety-strip .wrap { padding-block: 11px; }
  [data-fc-visual] .safety-strip span { font-size: max(13px, .8em); line-height: 1.6; }
  [data-fc-visual] .safety-strip strong { color: #344c41; }
  [data-fc-visual] .safety-strip .btn { background: #f6f8f0; }
  [data-fc-visual] .card {
    background: #fcfdf9;
    border-color: #d3dfd8;
    box-shadow: 0 16px 36px -24px #244d4d38, inset 0 1px 0 #fff;
    border-radius: 22px;
  }
  [data-fc-visual] .btn { border-radius: 12px; transition-duration: .45s; }
  [data-fc-visual] .btn.primary { background: #265f65; border-color: #265f65; }
  [data-fc-visual] .btn.primary:hover { background: #18474e; }
  [data-fc-visual] .btn.ghost { background: #fbfcf8; border-color: #b9cdc3; }
  [data-fc-visual] .kicker, [data-fc-visual] .eyebrow { letter-spacing: .13em; }
  [data-fc-visual] .section.alt, [data-fc-visual] .fa-soft { background: #eaf1eb; }
  [data-fc-visual] .footer { background: #102f38; border-top-color: #31515a; }
  [data-fc-visual] .footer .h3 { color: #e2e8da; }
  [data-fc-visual] .footer .links a { color: #d5e2db; }
  [data-fc-visual] .section > .wrap > .h2 { max-width: 36ch; }

  /* The compositions occupy their own space. Reading and working areas stay still. */
  .fc6-home-hero {
    position: relative;
    isolation: isolate;
    background: #edf3ed;
    padding-block: clamp(42px, 5vw, 120px) clamp(26px, 3vw, 68px);
    border-bottom: 1px solid #d0dfd5;
  }
  .fc6-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 86% 26%, #d9e7df 0, transparent 48%), radial-gradient(ellipse at 8% 2%, #fffdf1a6 0, transparent 52%);
    pointer-events: none;
  }
  .fc6-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(28px, 4.5vw, 130px);
  }
  .fc6-hero-copy { padding-block: 12px; min-width: 0; }
  .fc6-home-hero .fc6-kicker { margin: 0 0 25px; color: #406760; }
  .fc6-kicker { font-size: clamp(12px, .85vw, 16px); letter-spacing: .14em; font-weight: 650; line-height: 1.6; }
  .fc6-home-hero h1 {
    color: #153c43;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 4.65vw, 112px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.045em;
    text-wrap: balance;
    margin: 0 0 28px;
  }
  .fc6-home-hero h1 span { display: block; }
  .fc6-home-hero h1 em { display: block; color: #43796f; font-weight: 400; }
  .fc6-hero-copy > p:not(.fc6-kicker) { max-width: 47ch; line-height: 1.8; font-size: clamp(17px, 1.35vw, 27px); color: #49666a; }
  .fc6-hero-copy > p.fc6-hero-lead { font-family: Georgia, serif; color: #345d62; font-size: clamp(21px, 1.8vw, 36px); line-height: 1.5; margin: 0 0 14px; }
  .fc6-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
  .fc6-text-links { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 22px; }
  .fc6-text-links a { color: #315f62; font-size: .9em; font-weight: 600; text-underline-offset: .25em; }
  .fc6-hero-notes { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; margin-top: clamp(28px, 3.5vw, 78px); padding-top: 24px; border-top: 1px solid #c8d9cf; }
  .fc6-hero-notes p { margin: 0; color: #577168; font-size: .86em; }
  .fc6-hero-notes strong { color: #36594e; font-weight: 600; }
  .fc6-hero-notes a { color: #2c5c60; text-underline-offset: .25em; }

  .fc6-window {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid #45666a;
    background: #0e303b;
    box-shadow: 0 30px 64px -29px #21464155, 0 1px 0 #fff9;
    isolation: isolate;
  }
  .fc6-window-head, .fc6-window-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 2;
  }
  .fc6-window-head { padding: 12px 20px; min-height: 58px; border-bottom: 1px solid #5f8a8426; background: #163d45; }
  .fc6-window-head > span { color: #d1ddce; font-size: clamp(11px, .8vw, 16px); font-weight: 500; letter-spacing: .13em; }
  .fc6-window-foot { border-top: 1px solid #71968a32; padding: 17px 22px; background: #173c43; font-size: .85em; line-height: 1.5; color: #c4dbd0; }
  .fc6-window-foot strong { font-family: Georgia, serif; color: #eadcb9; font-weight: 400; font-size: 1.18em; }
  .fc6-window-foot span { color: #afc9c1; font-size: .9em; }
  .fc6-motion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 7px;
    color: #dbe8df;
    border: 1px solid #8baca366;
    background: #0c2a3333;
    border-radius: 100px;
    padding: 7px 12px;
    min-height: 36px;
    font: 500 12px/1.5 system-ui, sans-serif;
    cursor: pointer;
    transition: background-color .4s, border-color .4s;
  }
  .fc6-motion:hover { background: #315a6066; border-color: #b0c9bf; }
  .fc6-motion:disabled { opacity: .75; cursor: default; }
  .fc6-pause-icon { width: 8px; height: 10px; flex: 0 0 8px; background: linear-gradient(to right, currentColor 0 2px, transparent 2px 6px, currentColor 6px 8px); }
  .fc6-motion[aria-label="Play motion"] .fc6-pause-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .fc6-motion:disabled .fc6-pause-icon { opacity: .5; }
  [data-fc-visual] .fc6-motion[hidden] { display: none !important; }
  .fc6-window .fc6-scene { width: 100%; display: block; }
  .fc6-window .fc6-scene > svg { width: 100%; height: auto; display: block; }
  .fc6-flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .76; }

  .fc6-chapter-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
  .fc6-chapter-heading .eyebrow { margin: 0 0 10px; }
  [data-fc-visual] .fc6-chapter-heading h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(30px, 2.8vw, 58px); margin: 0; line-height: 1.2; }
  .fc6-chapter-heading > p { max-width: 40ch; color: #577169; font-size: .9em; margin: 0; }
  .fc6-feature-stack { display: grid; gap: clamp(22px, 2.8vw, 68px); }
  .fc6-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #c9d8cf;
    border-radius: 26px;
    background: #fbfcf7;
    box-shadow: 0 24px 44px -32px #315b513b;
  }
  .fc6-feature-copy { padding: clamp(28px, 3.5vw, 82px); display: flex; align-items: flex-start; flex-direction: column; justify-content: center; min-width: 0; }
  .fc6-feature-copy .eyebrow { margin: 0 0 20px; }
  [data-fc-visual] .fc6-feature-copy h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(29px, 3vw, 63px); line-height: 1.17; letter-spacing: -.025em; margin: 0 0 22px; max-width: 21ch; }
  [data-fc-visual] .fc6-feature-copy > p { max-width: 48ch; margin: 0 0 18px; }
  .fc6-feature-copy .fc6-actions { margin-top: 14px; }
  .fc6-feature-art { position: relative; align-self: stretch; background: #10333d; min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .fc6-feature-art > .fc6-window-head { position: absolute; top: 0; left: 0; right: 0; background: #153c4399; }
  .fc6-feature-art > .fc6-window-foot { background: #15383f; margin-top: auto; }
  .fc6-feature-art .fc6-scene { display: block; width: 100%; padding-top: 36px; margin-block: auto; }
  .fc6-feature-art .fc6-scene > svg { display: block; width: 100%; height: auto; }
  .fc6-feature--reverse .fc6-feature-art { order: -1; }
  .fc6-feature--sage { background: #e4ede5; }
  .fc6-feature--sage .fc6-feature-copy { border-color: #bfd3c4; }
  .fc6-feature .fc6-feature-note { color: #5f766d; font-size: .84em; margin-top: 22px; max-width: 47ch; }
  .fc6-feature--compact { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .fc6-feature--compact .fc6-feature-copy { padding-block: 34px; }

  .fc6-first-steps .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-fc-visual] .fc6-first-steps .choice { min-height: auto; background: #fdfdf8; }
  [data-fc-visual] .fc6-first-steps .choice .h2 { font-size: clamp(24px, 2vw, 42px); }
  .fc6-first-steps .choice .eyebrow { color: #62806e; margin-bottom: 11px; }
  [data-fc-visual] .fc6-first-steps .choice.urgent { background: #edf1e3; border-color: #bdcbaa; }
  .fc6-first-steps .choice a + a { margin-left: 0; }

  /* A large scene remains part of the action-page hero, above its readable statement. */
  [data-fc-visual] .fa-hero { background: #143b44; }
  [data-fc-visual] .fa-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 4.3vw, 112px); padding-block: clamp(38px, 4vw, 94px); }
  [data-fc-visual] .fa-hero .h1 { font-size: clamp(42px, 5vw, 110px); line-height: 1.06; margin-bottom: 25px; }
  [data-fc-visual] .fa-hero .lede { font-size: clamp(22px, 2vw, 36px); color: #d2e2d6; }
  [data-fc-visual] .fa-hero-copy { color: #bfd5cc; }
  [data-fc-visual] .fa-principle.fc6-principle { padding: 0; border-radius: 24px; border-color: #688b80; background: #173d43; overflow: hidden; box-shadow: 0 28px 70px -35px #001c27a6; }
  .fc6-principle-art { background: #10313d; position: relative; border-bottom: 1px solid #809b7d42; }
  .fc6-principle-art .fc6-scene { aspect-ratio: 1.75; overflow: hidden; }
  .fc6-principle-art svg { width: 100%; height: 100%; display: block; }
  .fc6-principle-copy { padding: clamp(24px, 2.1vw, 44px); }
  [data-fc-visual] .fc6-principle-copy .eyebrow { margin-top: 0; }
  [data-fc-visual] .fc6-principle-copy h2 { font-size: clamp(26px, 2.2vw, 44px); margin-top: 10px; margin-bottom: 14px; }
  .fc6-principle-copy p { margin-block: 0 12px; }
  [data-fc-visual] .fc6-principle-copy > span { margin-top: 15px; font-size: .82em; color: #c5ba92; }
  [data-fc-visual] .fa-jump { background: #e3ece4; border-color: #c4d8c9; gap: 10px 30px; }
  [data-fc-visual] .fa-project { padding: 0; overflow: hidden; border-color: #c6d8cc; border-radius: 24px; box-shadow: 0 20px 45px -31px #2c5b4b55; background: #fcfdf7; }
  .fc6-project-media { background: #123642; overflow: hidden; border-bottom: 1px solid #b6cec5; }
  .fc6-project-media .fc6-scene { width: 100%; aspect-ratio: 1.9; overflow: hidden; }
  .fc6-project-media svg { display: block; width: 100%; height: 100%; }
  .fc6-project-body { padding: clamp(26px, 2.5vw, 54px); flex: 1; display: flex; flex-direction: column; }
  .fc6-project-body .eyebrow { margin-top: 0; }
  .fc6-project-body .fa-project-links { margin-top: auto; }
  [data-fc-visual] .fa-project-ask { background: #eaf2e7; border-color: #678f73; border-radius: 0 12px 12px 0; }
  [data-fc-visual] .fa-contact-card, [data-fc-visual] .fa-route-panel { background: #fcfdf7; border-color: #c8d9cd; box-shadow: 0 16px 34px -28px #28534e40; }
  [data-fc-visual] .fa-contact-note { background: #e6efe5; }
  [data-fc-visual] .fa-external-note { background: #edf0df; border-color: #a29967; }
  [data-fc-visual] .fa-request { border-top-color: #b2c9bb; }
  [data-fc-visual] .fa-draft { border-color: #bfd2c8; }

  /* Gateway pages get a generous scene beside the existing content. */
  [data-fc-visual] .fc6-gateway-hero { background: #123943; }
  .fc6-gateway-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 4vw, 112px); align-items: center; padding-block: clamp(34px, 3.5vw, 80px); }
  [data-fc-visual] .fc6-gateway-grid > .hero-inner { min-height: 0; padding: 0; }
  [data-fc-visual] .fc6-gateway-grid .h1 { font-size: clamp(36px, 3.8vw, 85px); line-height: 1.13; max-width: 23ch; }
  .fc6-gateway-grid .fc6-window .fc6-scene { aspect-ratio: 1.7; overflow: hidden; }
  .fc6-gateway-grid .fc6-window .fc6-scene > svg { height: 100%; }
  [data-fc-visual] .fc6-gateway-hero .band { background: #0e3039; }

  @media (min-width: 1900px) {
    .fc6-feature-copy { padding-inline: 5vw; }
    .fc6-motion { font-size: 16px; padding: 9px 15px; min-height: 42px; }
    .fc6-window-head { padding-block: 18px; }
  }
  @media (max-width: 1139px) {
    [data-fc-visual] .menu { display: none; }
    [data-fc-visual] .burger { display: inline-flex; }
    [data-fc-visual] .menu.open { display: flex; position: absolute; top: calc(100% - 1px); right: var(--fc-wide-gutter); flex-direction: column; align-items: stretch; width: min(330px, calc(100vw - 40px)); padding: 12px; background: #f8faf6; border: 1px solid #c5d8cb; box-shadow: 0 16px 30px #19473e20; border-radius: 0 0 16px 16px; }
    [data-fc-visual] .menu.open a { width: 100%; }
    .fc6-hero-grid { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .fc6-window-head { padding-inline: 14px; }
    .fc6-window-head > span { letter-spacing: .07em; }
    .fc6-window-foot { align-items: flex-start; flex-direction: column; gap: 3px; padding: 14px 18px; }
    [data-fc-visual] .fa-hero-grid { gap: 28px; }
  }
  @media (max-width: 800px) {
    .fc6-hero-grid, .fc6-feature, .fc6-feature--compact, .fc6-gateway-grid, [data-fc-visual] .fa-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .fc6-hero-copy { padding-block: 0; }
    .fc6-home-hero h1 { font-size: clamp(46px, 8.5vw, 75px); max-width: 18ch; }
    .fc6-hero-copy > p:not(.fc6-kicker) { max-width: 60ch; }
    .fc6-feature--reverse .fc6-feature-art { order: initial; }
    .fc6-feature-art { border-top: 1px solid #b5cabe; }
    .fc6-feature-art .fc6-scene { padding-top: 36px; max-height: 450px; aspect-ratio: 1.45; }
    .fc6-feature-art .fc6-scene > svg { height: 100%; }
    .fc6-feature-copy { padding: clamp(26px, 6vw, 46px); }
    [data-fc-visual] .fc6-feature-copy h2 { max-width: 24ch; font-size: clamp(30px, 5.5vw, 44px); }
    .fc6-window-foot { flex-direction: row; align-items: center; }
    .fc6-chapter-heading { flex-direction: column; align-items: flex-start; }
    .fc6-chapter-heading > p { max-width: 55ch; }
    [data-fc-visual] .fa-hero .h1 { max-width: 16ch; }
    .fc6-principle-art .fc6-scene { aspect-ratio: 1.7; }
    .fc6-gateway-grid .fc6-window .fc6-scene { aspect-ratio: 1.7; }
    .fc6-first-steps .choice-grid { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 480px) {
    [data-fc-visual] .nav { min-height: 76px; }
    [data-fc-visual] .brand-logo { width: 67px; }
    [data-fc-visual] .brand { font-size: 13px; gap: 10px; }
    [data-fc-visual] .brand span { max-width: 10em; }
    .fc6-home-hero { padding-top: 32px; }
    .fc6-home-hero h1 { font-size: clamp(39px, 10.8vw, 52px); }
    .fc6-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .fc6-actions .btn { text-align: center; justify-content: center; }
    .fc6-window, .fc6-feature, [data-fc-visual] .fa-project { border-radius: 20px; }
    .fc6-window-head { min-height: 58px; padding-inline: 12px; }
    .fc6-window-head > span { max-width: 17ch; font-size: 10px; }
    .fc6-motion { padding-inline: 10px; min-height: 40px; }
    .fc6-window-foot { gap: 6px; flex-direction: column; align-items: flex-start; }
    .fc6-hero-notes { flex-direction: column; gap: 10px; }
    .fc6-project-media .fc6-scene { aspect-ratio: 1.6; }
    .fc6-feature-art .fc6-scene { aspect-ratio: 1.28; }
    .fc6-feature-copy .fc6-actions { gap: 10px; }
    .fc6-principle-art .fc6-scene { aspect-ratio: 1.5; }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-fc-visual] *, [data-fc-visual] *::before, [data-fc-visual] *::after { scroll-behavior: auto !important; }
    [data-fc-visual] .btn, [data-fc-visual] .fc6-motion { transition: none; }
  }
}

@media print {
  .fc6-window, .fc6-feature-art, .fc6-principle-art, .fc6-project-media, .fc6-motion { display: none !important; }
  .fc6-home-hero, .fc6-feature, .fc6-feature-copy, .fc6-principle-copy, .fc6-project-body, .fc6-gateway-grid { display: block !important; background: white !important; color: black !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .fc6-home-hero h1, .fc6-home-hero h1 em, .fc6-home-hero p, .fc6-feature-copy h2, .fc6-feature-copy p { color: black !important; }
  .fc6-home-hero h1 { font-size: 30pt; }
  .fc6-hero-notes, .fc6-actions, .fc6-text-links { display: none !important; }
  .fc6-feature { margin-bottom: 20pt; }
  .fc6-chapter-heading { display: block; }
  .fc6-principle-copy { padding: 12pt !important; }
  .fc6-project-body { padding: 10pt !important; }
}
