/* Editorial refinement: retain the palette, give each page a distinct job. */
.edition-v9 .v4-hero { gap: 42px; }
.edition-v9 .v4-hero .hero-copy h1 { font-size: clamp(42px, 4.5vw, 63px); max-width: 610px; }
.edition-v9 .hero-product { height: auto; padding: 27px; display: grid; gap: 18px; background: #dce5d0; }
.edition-v9 .hero-product::before, .edition-v9 .hero-product::after { display: none; }
.edition-v9 .hero-product .scene-label, .edition-v9 .hero-product .scene-note { position: static; max-width: none; }
.edition-v9 .hero-product .hero-public, .edition-v9 .hero-product .hero-ops { position: relative; inset: auto; width: 100%; }
.edition-v9 .hero-product .hero-public { margin-inline-end: 28px; width: calc(100% - 28px); }
.edition-v9 .hero-product .hero-ops { margin-inline-start: 28px; width: calc(100% - 28px); }
.edition-v9 .hero-public .frame-window, .edition-v9 .hero-ops .frame-window { height: 155px; }
.edition-v9 .hero-product .product-frame .slot-surface { padding: 18px; gap: 9px; }
.edition-v9 .hero-product .product-frame .slot-surface strong { font-size: 23px; }
.edition-v9 .hero-product .slot-kind { display: none; }
.edition-v9 .hero-product .hero-public figcaption, .edition-v9 .hero-product .hero-ops figcaption { display: none; }
.edition-v9 .connected-panels article { padding-block: 30px; }
.edition-v9 .connected-panels .connection-mark { top: 50%; transform: translate(-50%, -50%); }
.edition-v9 .connected-panels p { min-height: 0; }
.edition-v9 .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; gap: 0 35px; }
.edition-v9 .capability-grid article { padding: 28px 0; border: 0; border-top: 1px solid #b5c5a8; }
.edition-v9 .capability-grid p { min-height: 0; }
.edition-v9 .capability-grid h3 { max-width: 290px; }
.edition-v9 .home-workflow .step-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; margin-bottom: 28px; }
.edition-v9 .home-workflow .step-flow strong { font-size: 21px; }
.edition-v9 .home-workflow .step-flow span { font-size: 16px; line-height: 1.8; }
.edition-v9 .platform-sides .frame-window { height: 285px; }
.edition-v9 .platform-sides article { background: #dce5d0; }
.edition-v9 .platform-sides article:last-child { background: #e5decd; }
.edition-v9 .workflow-diagram { background: #e5eadc; padding: 30px; }
.edition-v9 .workflow-diagram .story-screen { max-width: none; border: 1px solid #aebd9e; border-radius: 7px; background: #f9f9f4; overflow: hidden; }
.edition-v9 .workflow-diagram h3 { padding: 22px 25px 0; font-size: 23px; }
.edition-v9 .workflow-diagram .frame-top { background: #193e33; color: #f9f9f4; }
.record-flow { list-style: none; margin: 22px 0 0; padding: 0 25px 25px; display: grid; gap: 0; }
.record-flow li { padding: 18px 16px; border-inline-start: 2px solid #b7c5a8; border-bottom: 1px solid #d7dfd5; }
.record-flow strong, .record-flow span { display: block; font-size: 16px; line-height: 1.7; }
.record-flow span { color: #506459; font-size: 14px; margin-top: 4px; }
.story-screen[data-active=publish] .record-flow li:first-child,
.story-screen[data-active=join] .record-flow li:nth-child(2),
.story-screen[data-active=organise] .record-flow li:last-child,
.story-screen[data-active=follow] .record-flow li:last-child { background: #e3ebd8; border-inline-start-color: #1f5544; }
.edition-v9 .purpose-without-photo { grid-template-columns: 1fr; padding-block: 65px 0; }
.edition-v9 .purpose-without-photo > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; align-items: start; }
.purpose-without-photo .eyebrow, .purpose-without-photo h2, .purpose-without-photo > div > p:not(.eyebrow), .purpose-without-photo .text-link { grid-column: 1; }
.purpose-without-photo .purpose-rail { grid-column: 2; grid-row: 2 / span 3; margin-top: 0; }
.edition-v9 .purpose-without-photo .text-link { justify-self: start; margin-top: 20px; }
.edition-v9 .gallery-panel { grid-template-columns: 1fr 1.1fr; background: #ede9dd; }
.edition-v9 .gallery-panel-copy h3 { margin-top: 0; }
.edition-v9 .gallery-panel-media > .media-slot { max-width: 500px; margin-inline: auto; }
.edition-v9 .gallery-panel-media .slot-surface { aspect-ratio: 4 / 3; min-height: 250px; }
.role-comparison { margin: 23px 0 0; }
.role-comparison > div { padding-block: 15px; border-top: 1px solid #b9c5ac; }
.role-comparison dt { font-size: 14px; font-weight: 700; line-height: 1.8; color: #1f5544; }
.role-comparison dd { font-size: 16px; line-height: 1.8; margin: 7px 0 0; color: #506459; }
.edition-v9 .gallery-controls button { flex: 1 1 160px; }
.edition-v9 .local-tools-layout { grid-template-columns: .9fr 1.2fr; }
.edition-v9 .service-grid article { padding-top: 17px; }
.change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.change-grid article { border-top: 1px solid #c0cbb7; padding-block: 27px; }
.change-grid h3 { font-size: 23px; }
.change-pair { display: grid; grid-template-columns: 1fr 25px 1fr; gap: 12px; align-items: start; margin-top: 18px; font-size: 15px; line-height: 1.8; }
.change-pair > span:first-child { color: #506459; }
.change-pair strong { color: #193e33; font-weight: 600; }
.change-arrow { color: #527044; }
html[dir=rtl] .change-arrow { transform: rotate(180deg); }
.edition-v9 .use-case-screen { max-width: 420px; width: 100%; }
.edition-v9 .use-case-screen .frame-window { height: 325px; }
.edition-v9 .use-case-content { padding-inline: 34px 0; }
.project-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.project-three article { padding-top: 25px; border-top: 1px solid #c0cbb7; }
.project-three h3 { font-size: 28px; margin-top: 20px; }
.project-three p { font-size: 16px; margin-top: 14px; }
.project-three .text-link { display: inline-block; margin-top: 20px; }
.edition-v9 .journey-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.edition-v9 .pilot-simple > figure { background: none; padding: 0; }
.principle-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 55px; }
.principle-list article { border-top: 1px solid #c0cbb7; padding-block: 22px; }
.principle-list p { margin-top: 10px; font-size: 16px; max-width: 500px; }
.edition-v9 .contact-section .contact-layout { grid-template-columns: 1.05fr .95fr; }
.intent-list strong, .intent-list span { display: block; }
.intent-list span { margin-top: 7px; color: #506459; font-size: 15px; line-height: 1.8; }
.draft-helper { background: #edf1e9; border: 1px solid #d7dfd5; border-radius: 7px; overflow: hidden; }
.draft-helper > summary { cursor: pointer; font-weight: 650; font-size: 16px; padding: 24px; min-height: 72px; line-height: 1.8; }
.draft-helper > summary::marker { color: #1f5544; }
.edition-v9 .contact-section .draft-helper form { padding: 10px 24px 26px; background: none; border: 0; }
.edition-v9 .contact-section .contact-note { margin-top: 25px; padding: 20px 0; border-top: 1px solid #c0cbb7; }
.edition-v9 .contact-section .contact-note strong { font-size: 17px; }
.edition-v9 .engage-grid a { background: #f1f3eb; min-height: 170px; }
.edition-v9 .footer-main { gap: 35px; }
.edition-v9 .footer-main > div > a:not(.wordmark) { font-size: 14px; }
.edition-v9 .footer-main > div > span { font-size: 14px; letter-spacing: .025em; }
.edition-v9 .button, .edition-v9 .gallery-controls button, .edition-v9 .story-buttons button, .edition-v9 .menu-toggle, .edition-v9 .language-switch a {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.edition-v9 .button { gap: 10px; border-radius: 6px; min-height: 48px; }
.edition-v9 a.button.primary::after { content: '→'; display: inline-block; transition: transform 180ms ease; }
html[dir=rtl] .edition-v9 a.button.primary::after { content: '←'; }
.edition-v9 .button:active, .edition-v9 .gallery-controls button:active, .edition-v9 .story-buttons button:active { transform: translateY(1px); box-shadow: none; }
@media (hover: hover) {
  .edition-v9 .button:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgb(25 62 51 / 8%); }
  .edition-v9 a.button.primary:hover::after { transform: translateX(3px); }
  html[dir=rtl] .edition-v9 a.button.primary:hover::after { transform: translateX(-3px); }
  .edition-v9 .gallery-controls button:hover, .edition-v9 .story-buttons button:hover { border-color: #1f5544; }
}
.edition-v9 :is(a, button, summary):focus-visible { outline: 3px solid #8d6e28; outline-offset: 4px; }
.edition-v9 :is(.cta, .local-tools, .pilot-snapshot) :is(a, button):focus-visible { outline-color: #dce9ae; }
html[lang=ar] .edition-v9 .v4-hero .hero-copy h1 { font-size: clamp(41px, 4.3vw, 60px); line-height: 1.5; }
html[lang=ar] .edition-v9 .hero-product { height: auto; }
html[lang=ar] .edition-v9 .hero-product .hero-public, html[lang=ar] .edition-v9 .hero-product .hero-ops { inset: auto; }
html[lang=ar] .edition-v9 .hero-product .product-frame .slot-surface strong { font-size: 23px; }
html[lang=ar] .edition-v9 .hero-product .hero-ops .frame-window { height: 155px; }
html[lang=ar] .edition-v9 .capability-grid p { min-height: 0; }
html[lang=ar] .edition-v9 .project-three p, html[lang=ar] .edition-v9 .role-comparison dd, html[lang=ar] .edition-v9 .principle-list p { font-size: 17px; line-height: 1.9; }
html[lang=ar] .edition-v9 .record-flow strong { font-size: 17px; }
html[lang=ar] .edition-v9 .record-flow span, html[lang=ar] .edition-v9 .change-pair, html[lang=ar] .edition-v9 .intent-list span { font-size: 16px; line-height: 1.85; }
@media (max-width: 1000px) {
  .edition-v9 .v4-hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .edition-v9 .hero-product { padding: 20px; }
  .edition-v9 .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-three { gap: 25px; }
  .edition-v9 .purpose-without-photo > div { column-gap: 35px; }
}
@media (max-width: 850px) {
  .edition-v9 .v4-hero { grid-template-columns: 1fr; }
  .edition-v9 .v4-hero .hero-copy > p { max-width: 650px; }
  .edition-v9 .hero-product { max-width: 650px; width: 100%; margin-inline: auto; }
  .edition-v9 .hero-product .hero-public, .edition-v9 .hero-product .hero-ops { width: 100%; margin-inline: 0; }
  .edition-v9 .gallery-panel { grid-template-columns: 1fr; }
  .edition-v9 .local-tools-layout, .edition-v9 .contact-section .contact-layout { grid-template-columns: 1fr; }
  .project-three { grid-template-columns: 1fr; gap: 32px; }
  .project-three p { max-width: 620px; }
  .edition-v9 .use-case-layout { grid-template-columns: 1fr; }
  .edition-v9 .use-case-screen { justify-self: start; max-width: 650px; }
  .edition-v9 .use-case-screen .frame-window { height: 260px; }
}
@media (max-width: 650px) {
  .edition-v9 .home-workflow .step-flow { grid-template-columns: 1fr 1fr; }
  .edition-v9 .v4-hero .hero-copy h1 { font-size: clamp(38px, 9.2vw, 52px); }
  html[lang=ar] .edition-v9 .v4-hero .hero-copy h1 { font-size: clamp(36px, 9vw, 46px); }
  .edition-v9 .hero-public .frame-window, .edition-v9 .hero-ops .frame-window { height: 145px; }
  html[lang=ar] .edition-v9 .hero-product .hero-ops .frame-window { height: 145px; }
  .edition-v9 .hero-product .scene-label, .edition-v9 .hero-product .scene-note { max-width: none; font-size: 13px; }
  .edition-v9 .connected-panels article { padding: 25px; }
  .edition-v9 .capability-grid { grid-template-columns: 1fr; }
  .edition-v9 .capability-grid article { padding-block: 24px; }
  .edition-v9 .workflow-diagram { padding: 18px; }
  .edition-v9 .workflow-diagram h3 { padding-inline: 18px; font-size: 22px; }
  .edition-v9 .record-flow { padding-inline: 18px; }
  .edition-v9 .purpose-without-photo { padding-block: 45px 0; }
  .edition-v9 .purpose-without-photo > div { display: block; }
  .edition-v9 .purpose-rail { margin-top: 25px; }
  .edition-v9 .change-grid, .edition-v9 .principle-list { grid-template-columns: 1fr; }
  .edition-v9 .journey-rail { grid-template-columns: 1fr; gap: 27px; }
  .edition-v9 .gallery-panel { padding: 24px; gap: 25px; }
  .edition-v9 .gallery-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .edition-v9 .gallery-controls button { padding: 12px; font-size: 14px; }
  .edition-v9 .use-case-content { padding-inline: 0; }
  .edition-v9 .pilot-simple .step-flow { grid-template-columns: 1fr; }
  .edition-v9 .draft-helper > summary { padding: 20px; }
  .edition-v9 .button:hover { transform: none; box-shadow: none; }
}
@media (max-width: 370px) {
  .edition-v9 .gallery-controls, html[lang=ar] .edition-v9 .gallery-controls { grid-template-columns: 1fr; }
  .edition-v9 .change-pair { grid-template-columns: 1fr; gap: 7px; }
  .edition-v9 .change-arrow { display: none; }
  .edition-v9 .hero-product { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-v9 *, .edition-v9 *::before, .edition-v9 *::after { transition: none !important; animation: none !important; }
  .edition-v9 a.button.primary:hover::after { transform: none !important; }
  .edition-v9 .button:hover, .edition-v9 .button:active, .edition-v9 .gallery-controls button:active, .edition-v9 .story-buttons button:active { transform: none !important; }
}
.edition-v9 .button:active, .edition-v9 .gallery-controls button:active, .edition-v9 .story-buttons button:active { transform: translateY(1px); box-shadow: none; }
