@font-face { font-family: Inter; src: url("../fonts/inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/inter-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/inter-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/inter-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --green: #279b32;
  --green-dark: #187523;
  --green-soft: #eaf5eb;
  --ink: #151817;
  --muted: #626966;
  --line: #dfe7e0;
  --soft: #f5f8f5;
  --white: #fff;
  --container: 1280px;
  --shadow: 0 20px 60px rgba(20, 48, 23, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body:has(.image-dialog[open]) { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.section-pad { padding: 108px 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 12px 16px; color: #fff; background: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 100; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; padding: 0 48px; border-radius: 0 0 14px 14px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 8px 24px rgba(16, 29, 18, 0.07); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; width: max-content; min-width: 320px; }
.brand img { width: 188px; height: auto; }
.brand-separator { width: 1px; height: 30px; margin: 0 17px; background: var(--line); }
.ordo-wordmark { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; white-space: nowrap; }
.ordo-wordmark sup { color: var(--green); font-size: 8px; }
.desktop-nav { display: flex; align-items: center; gap: 38px; font-size: 14px; font-weight: 700; }
.desktop-nav a { position: relative; padding: 33px 0; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 22px; left: 0; height: 2px; content: ""; background: var(--green); transform: scaleX(0); transition: transform 180ms ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.languages { display: flex; align-items: center; gap: 12px; }
.languages a { display: grid; opacity: 0.75; transition: opacity 180ms ease, transform 180ms ease; }
.languages a:hover, .languages a[aria-current="page"] { opacity: 1; transform: translateY(-1px); }
.languages img { width: 28px; height: 18px; object-fit: cover; }
.menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; min-height: 700px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff 0 54%, #f8fbf8 54%); }
.hero-inner { position: relative; min-height: 700px; }
.hero-copy { position: absolute; z-index: 3; top: 50%; left: 0; width: min(640px, 52%); transform: translateY(-50%); }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(48px, 4.1vw, 67px); line-height: 1.04; letter-spacing: -3px; }
.hero h1 span { color: var(--green); }
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 0 25px; border: 1px solid var(--green); border-radius: 8px; font-size: 14px; font-weight: 800; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 12px 26px rgba(39, 155, 50, 0.18); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: rgba(255, 255, 255, 0.9); }
.hero-art { position: absolute; inset: 0 0 0 54%; overflow: hidden; }
.hero-triangle { position: absolute; display: block; background: rgba(39, 155, 50, 0.08); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-triangle-one { top: -90px; right: -70px; width: 450px; height: 430px; transform: rotate(180deg); }
.hero-triangle-two { right: 3%; bottom: -80px; width: 390px; height: 420px; transform: rotate(-4deg); }
.hero-triangle-three { bottom: -150px; left: -40px; width: 430px; height: 440px; transform: rotate(7deg); }
.hero-dots, .panel-dots { position: absolute; width: 100px; height: 120px; opacity: 0.35; background-image: radial-gradient(circle, var(--green) 1.2px, transparent 1.3px); background-size: 12px 12px; }
.hero-dots { top: 90px; left: 13%; }
.hero-logo { position: absolute; z-index: 3; top: 50%; left: 52%; width: min(49vw, 380px); height: auto; transform: translate(-50%, -47%); mix-blend-mode: multiply; }
.orbit { position: absolute; z-index: 2; top: 50%; left: 52%; border: 1px solid rgba(39, 155, 50, 0.18); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit::after { position: absolute; top: 13%; right: 4%; width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--green); box-shadow: 0 0 0 7px rgba(39, 155, 50, 0.09); }
.orbit-one { width: 460px; height: 460px; }
.orbit-two { width: 530px; height: 530px; transform: translate(-50%, -50%) rotate(38deg); opacity: 0.55; }
.scroll-indicator { position: absolute; z-index: 5; bottom: 24px; left: 50%; display: grid; width: 36px; height: 32px; place-items: center; }
.scroll-indicator span { width: 13px; height: 13px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }

.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .product-copy h2, .mission-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; letter-spacing: -2px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.system-card { position: relative; display: flex; min-height: 500px; overflow: hidden; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20, 45, 23, 0.04); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.system-card:hover { border-color: #bcdabc; box-shadow: var(--shadow); transform: translateY(-7px); }
.system-logo { display: grid; height: 245px; margin: -6px -6px 26px; overflow: hidden; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #f4f8f4, #e6f2e6); }
.system-logo img { width: 205px; height: 205px; object-fit: contain; mix-blend-mode: multiply; transition: transform 300ms ease; }
.system-card:hover .system-logo img { transform: scale(1.04) rotate(2deg); }
.card-number { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; }
.system-card h3 { margin: 0; font-size: 24px; }
.system-card h3 sup, .product-copy h2 sup { color: var(--green); font-size: 12px; vertical-align: super; }
.system-card > p:not(.card-number) { color: var(--muted); font-size: 14px; line-height: 1.65; }
.system-card > a { display: flex; justify-content: space-between; margin-top: auto; color: var(--green-dark); font-size: 14px; font-weight: 800; }

.product { overflow: hidden; }
.product-instrumentum { background: var(--soft); }
.product-simplex { background: #fff; }
.product-complex { color: #fff; background: #142016; }
.product-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 100px; }
.product-intro.reverse .product-logo-panel { order: 2; }
.product-logo-panel { position: relative; display: grid; min-height: 510px; overflow: hidden; place-items: center; border-radius: 26px; background: linear-gradient(145deg, #e7f2e7, #f9fbf9); }
.product-logo-panel::before, .product-logo-panel::after { position: absolute; content: ""; background: rgba(39, 155, 50, 0.07); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.product-logo-panel::before { top: -80px; left: -70px; width: 390px; height: 390px; transform: rotate(12deg); }
.product-logo-panel::after { right: -90px; bottom: -100px; width: 440px; height: 420px; transform: rotate(-17deg); }
.product-logo-panel > img { position: relative; z-index: 2; width: min(64%, 340px); height: auto; mix-blend-mode: multiply; }
.product-logo-panel .panel-dots { top: 30px; right: 40px; }
.simplex-panel { background: linear-gradient(145deg, #f6f6f6, #fff); }
.complex-panel { background: linear-gradient(145deg, #e8f2e9, #b9d4bc); }
.complex-panel::before, .complex-panel::after { background: rgba(39, 155, 50, 0.11); }
.complex-panel > img { mix-blend-mode: normal; filter: contrast(0.62) brightness(1.24) saturate(0.78) drop-shadow(0 18px 28px rgba(20, 49, 24, 0.16)); }
.product-copy .lead { margin: 25px 0 14px; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.55; }
.product-copy > p:not(.eyebrow, .lead) { color: var(--muted); line-height: 1.75; }
.product-complex .product-copy .lead { color: #fff; }
.product-complex .product-copy > p:not(.eyebrow, .lead) { color: #b8c3ba; }
.feature-list { display: grid; gap: 8px; padding: 0; margin: 32px 0 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 42px 140px 1fr; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list li > span { color: var(--green); font-size: 12px; font-weight: 800; }
.feature-list strong { font-size: 14px; }
.feature-list small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.simplex-callout { display: flex; gap: 18px; align-items: center; margin-top: 32px; padding: 20px; border: 1px solid #cae1cb; border-radius: 14px; background: #f4f9f4; }
.simplex-callout > span { display: grid; flex: 0 0 50px; height: 50px; border-radius: 50%; place-items: center; color: #fff; background: var(--green); font-weight: 800; }
.simplex-callout p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.complex-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.complex-features article { padding: 17px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.complex-features strong, .complex-features span { display: block; }
.complex-features strong { color: #8edf95; font-size: 14px; }
.complex-features span { margin-top: 7px; color: #b8c3ba; font-size: 12px; line-height: 1.5; }

.gallery-block { margin-top: 98px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.gallery-heading h3 { margin: 0; font-size: 30px; letter-spacing: -1px; }
.gallery-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dark-gallery .gallery-heading > p { color: #aab5ac; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-button { position: relative; grid-column: span 4; height: 285px; overflow: hidden; padding: 0; border: 0; border-radius: 15px; background: #dfe8df; box-shadow: 0 8px 22px rgba(13, 28, 15, 0.08); cursor: zoom-in; }
.gallery-button.gallery-wide { grid-column: span 8; }
.gallery-button img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 300ms ease, filter 300ms ease; }
.gallery-button::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 56%, rgba(8, 17, 9, 0.78)); pointer-events: none; }
.gallery-button > span { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; color: #fff; font-size: 14px; font-weight: 700; text-align: left; }
.gallery-button:hover img, .gallery-button:focus-visible img { filter: saturate(1.03); transform: scale(1.025); }

.mission { background: #f4f8f4; }
.mission-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 100px; }
.mission-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.mission-copy .button { margin-top: 20px; }
.mission-cards { display: grid; gap: 12px; }
.mission-cards article { display: grid; grid-template-columns: 48px 150px 1fr; align-items: center; gap: 16px; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mission-cards span { color: var(--green); font-size: 12px; font-weight: 800; }
.mission-cards h3, .mission-cards p { margin: 0; }
.mission-cards h3 { font-size: 16px; }
.mission-cards p { color: var(--muted); font-size: 13px; line-height: 1.55; }

.contact { color: #fff; background: var(--green-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.contact .eyebrow { color: #a7e6ab; }
.contact-copy > p:not(.eyebrow) { color: #cee6d0; line-height: 1.7; }
.contact-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 18px; background: rgba(255, 255, 255, 0.07); }
.contact-card a, .contact-card > div { position: relative; display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 24px 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.contact-card > :last-child { border-bottom: 0; }
.contact-card span { color: #b7daba; font-size: 12px; text-transform: uppercase; }
.contact-card strong { font-size: 16px; line-height: 1.5; }
.contact-card b { font-size: 18px; }

.site-footer { padding: 64px 0 26px; color: #d7ded8; background: #101611; }
.footer-main { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 80px; padding-bottom: 45px; }
.footer-brand img { width: 185px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 380px; color: #9ea9a0; font-size: 13px; line-height: 1.6; }
.footer-main nav, .footer-company { display: grid; align-content: start; gap: 13px; font-size: 13px; }
.footer-main nav a:hover, .footer-company a { color: #7fdb87; }
.footer-company span { color: #9ea9a0; }
.footer-meta { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #849087; font-size: 11px; }

.image-dialog { width: min(1280px, calc(100% - 40px)); max-width: none; max-height: calc(100vh - 32px); overflow: visible; padding: 0; border: 0; border-radius: 20px; color: #fff; background: transparent; box-shadow: 0 35px 110px rgba(0, 0, 0, 0.52); }
.image-dialog::backdrop { background: rgba(7, 13, 8, 0.84); backdrop-filter: blur(7px); }
.dialog-shell { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; background: #101a12; }
.dialog-stage { position: relative; display: grid; min-height: min(72vh, 760px); padding: 24px 74px; place-items: center; background: linear-gradient(145deg, #f7faf7, #e8f1e9); }
.image-dialog img { display: block; width: 100%; height: 100%; max-height: calc(100vh - 145px); object-fit: contain; }
.dialog-meta { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 28px; padding: 15px 24px; }
.dialog-meta p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.dialog-meta > span { flex: 0 0 auto; color: #93a596; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.dialog-close, .dialog-nav { display: grid; padding: 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; place-items: center; color: #fff; background: rgba(16, 26, 18, 0.88); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); cursor: pointer; transition: background 180ms ease, transform 180ms ease, border-color 180ms ease; }
.dialog-close:hover, .dialog-nav:hover { border-color: rgba(255, 255, 255, 0.38); background: var(--green-dark); }
.dialog-close:focus-visible, .dialog-nav:focus-visible { outline-color: rgba(255, 255, 255, 0.8); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 4; display: inline-flex; width: auto; height: 42px; align-items: center; justify-content: center; gap: 9px; padding-inline: 15px 17px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.dialog-close-icon { position: relative; width: 15px; height: 15px; }
.dialog-close-icon::before, .dialog-close-icon::after { position: absolute; top: 6px; left: 0; width: 15px; height: 2px; border-radius: 2px; content: ""; background: currentColor; }
.dialog-close-icon::before { transform: rotate(45deg); }
.dialog-close-icon::after { transform: rotate(-45deg); }
.dialog-nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; transform: translateY(-50%); }
.dialog-nav:hover { transform: translateY(-50%) scale(1.04); }
.dialog-prev { left: 14px; }
.dialog-next { right: 14px; }
.dialog-nav span { width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.dialog-prev span { margin-left: 4px; transform: rotate(-135deg); }
.dialog-next span { margin-right: 4px; transform: rotate(45deg); }
.dialog-nav[hidden] { display: none; }

.reveal-ready .system-card,
.reveal-ready .product-intro,
.reveal-ready .gallery-button,
.reveal-ready .mission-cards article { opacity: 0; transform: translateY(18px); }
.reveal-ready .is-revealed { opacity: 1; transform: none; transition: opacity 520ms ease, transform 520ms ease; }

@media (max-width: 1200px) {
  :root { --container: 1080px; }
  .site-header { padding-inline: 30px; }
  .brand { min-width: 280px; }
  .brand img { width: 165px; }
  .desktop-nav { gap: 25px; }
  .hero h1 { font-size: 52px; }
  .product-intro, .mission-grid, .contact-grid { gap: 65px; }
}

@media (max-width: 1020px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(calc(100% - 48px), var(--container)); }
  .site-header { grid-template-columns: 1fr auto; height: 76px; }
  .desktop-nav { display: none; }
  .brand img { width: 160px; }
  .brand { min-width: 0; }
  .brand-separator { height: 25px; margin-inline: 12px; }
  .ordo-wordmark { font-size: 15px; }
  .menu-toggle { display: grid; width: 38px; height: 38px; padding: 8px; border: 0; place-content: center; gap: 5px; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 76px 0 auto; display: flex; max-height: 0; overflow: hidden; flex-direction: column; padding: 0 28px; background: #fff; box-shadow: 0 18px 30px rgba(22, 37, 24, 0.1); opacity: 0; pointer-events: none; transition: max-height 250ms ease, padding 250ms ease, opacity 180ms ease; }
  .mobile-nav.is-open { max-height: 480px; padding-top: 16px; padding-bottom: 24px; opacity: 1; pointer-events: auto; }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
  .hero { min-height: 850px; background: #fff; }
  .hero-inner { min-height: 850px; }
  .hero-copy { top: 80px; width: 100%; transform: none; }
  .hero h1 { max-width: 700px; font-size: 53px; }
  .hero-art { inset: 400px 0 0 34%; background: #f7faf7; }
  .hero-logo { width: 330px; }
  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 450px; height: 450px; }
  .scroll-indicator { display: none; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { display: grid; grid-template-columns: 270px 1fr; grid-template-rows: auto auto 1fr auto; min-height: 310px; column-gap: 28px; }
  .system-logo { grid-row: 1 / 5; height: 250px; margin: 0; }
  .system-card > a { align-self: end; }
  .product-intro, .product-intro.reverse, .mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-intro.reverse .product-logo-panel { order: 0; }
  .product-logo-panel { min-height: 430px; }
  .gallery-button, .gallery-button.gallery-wide { grid-column: span 6; }
  .mission-cards { margin-top: 15px; }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section-pad { padding: 76px 0; }
  .site-header { padding-inline: 18px; }
  .brand img { width: 142px; }
  .brand-separator { display: none; }
  .ordo-wordmark { display: none; }
  .languages { gap: 7px; }
  .languages img { width: 24px; height: 16px; }
  .header-actions { gap: 8px; }
  .hero { min-height: 810px; }
  .hero-inner { min-height: 810px; }
  .hero-copy { top: 62px; }
  .eyebrow { font-size: 11px; }
  .hero h1 { font-size: clamp(38px, 11.3vw, 48px); letter-spacing: -2px; }
  .hero-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 16px; line-height: 1.6; }
  .hero-actions { flex-direction: column; margin-top: 26px; }
  .button { width: 100%; }
  .hero-art { inset: 485px -80px 0 5%; }
  .hero-logo { left: 50%; width: 245px; }
  .orbit-one { width: 290px; height: 290px; }
  .orbit-two { width: 340px; height: 340px; }
  .section-heading h2, .product-copy h2, .mission-copy h2, .contact-copy h2 { font-size: 35px; letter-spacing: -1.4px; }
  .system-card { display: flex; min-height: 485px; }
  .system-logo { width: 100%; height: 235px; margin: 0 0 22px; }
  .system-logo img { width: 190px; height: 190px; }
  .product-logo-panel { min-height: 310px; }
  .product-logo-panel > img { width: min(68%, 230px); }
  .feature-list li { grid-template-columns: 34px 1fr; }
  .feature-list small { grid-column: 2; }
  .complex-features { grid-template-columns: 1fr; }
  .gallery-block { margin-top: 70px; }
  .gallery-heading { display: block; }
  .gallery-heading h3 { font-size: 25px; }
  .gallery-heading > p { margin-top: 10px; }
  .gallery-button, .gallery-button.gallery-wide { grid-column: 1 / -1; height: 240px; }
  .mission-cards article { grid-template-columns: 36px 1fr; }
  .mission-cards p { grid-column: 2; }
  .contact-card a, .contact-card > div { grid-template-columns: 78px 1fr auto; padding: 20px 18px; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .image-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .dialog-stage { min-height: 62vh; padding: 58px 12px 18px; }
  .dialog-nav { top: 29px; width: 38px; height: 38px; transform: none; }
  .dialog-nav:hover { transform: scale(1.04); }
  .dialog-prev { left: 14px; }
  .dialog-next { right: 104px; }
  .dialog-close { top: 10px; right: 10px; height: 38px; padding-inline: 12px 14px; }
  .dialog-meta { min-height: 70px; align-items: flex-start; padding: 14px 16px; }
  .dialog-meta p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* ORDO Documentator integration ------------------------------------------------ */
.documentator-content { overflow: hidden; }
.documentator-content .ordo-doc-actionbuttons { position: relative; z-index: 20; }
.documentator-content .Heading-title-box { display: none; }
.documentator-content .Heading-title,
.documentator-content .bg-white { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.documentator-content .Heading-title { margin-bottom: 42px; }
.documentator-content .Heading-title h1,
.documentator-content .Heading-title .h1 { margin: 0; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; letter-spacing: -2px; }
.documentator-content .Heading-title h1::before,
.documentator-content .Heading-title .h1::before { display: block; margin-bottom: 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; content: "AW ORDO"; }
.documentator-content .bg-white { background: transparent; }

.documentator-content .ordo-system-title { text-align: center; }
.documentator-content .Heading-title:has(#HomePage) { padding-top: 104px; text-align: center; }
.documentator-content .Heading-title:has(#HomePage) + .bg-white { padding-bottom: 108px; }
.ordo-system-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ordo-system-card { position: relative; display: flex; min-height: 500px; overflow: hidden; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,45,23,.04); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.ordo-system-card:hover { border-color: #bcdabc; box-shadow: var(--shadow); transform: translateY(-7px); }
.ordo-system-card-image { width: calc(100% + 12px); height: 245px; margin: -6px -6px 26px; padding: 20px; object-fit: contain; border-radius: 14px; background: linear-gradient(145deg,#f4f8f4,#e6f2e6); mix-blend-mode: multiply; }
.ordo-system-card-title { margin: 0; font-size: 24px; }
.ordo-system-card-title sup { color: var(--green); font-size: 12px; }
.ordo-system-card-text { color: var(--muted); font-size: 14px; line-height: 1.65; }
.ordo-system-card-link { display: flex; justify-content: space-between; margin-top: auto; color: var(--green-dark); font-size: 14px; font-weight: 800; }
.ordo-system-card-link::after { content: "→"; }

.documentator-content .Heading-title:has(#OrdoInstrumentum),
.documentator-content .Heading-title:has(#OrdoSimplex),
.documentator-content .Heading-title:has(#OrdoComplex),
.documentator-content .Heading-title:has(#OurGoal) { width: 100%; padding: 104px max(32px, calc((100% - var(--container))/2)); margin: 0; }
.documentator-content .Heading-title:has(#OrdoInstrumentum) { background: var(--soft); }
.documentator-content .Heading-title:has(#OrdoSimplex) { background: #fff; }
.documentator-content .Heading-title:has(#OrdoComplex) { color: #fff; background: #142016; }
.documentator-content .Heading-title:has(#OurGoal) { background: var(--soft); }
.documentator-content .Heading-title:has(#OrdoInstrumentum) + .bg-white,
.documentator-content .Heading-title:has(#OrdoSimplex) + .bg-white,
.documentator-content .Heading-title:has(#OrdoComplex) + .bg-white,
.documentator-content .Heading-title:has(#OurGoal) + .bg-white { width: 100%; padding: 0 max(32px, calc((100% - var(--container))/2)) 108px; }
.documentator-content .Heading-title:has(#OrdoInstrumentum) + .bg-white { background: var(--soft); }
.documentator-content .Heading-title:has(#OrdoComplex) + .bg-white { color: #fff; background: #142016; }
.documentator-content .Heading-title:has(#OurGoal) + .bg-white { background: var(--soft); }

.ordo-system-page-container { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 82px; }
.Heading-image { position: relative; display: grid; min-height: 500px; overflow: hidden; place-items: center; border-radius: 26px; background: linear-gradient(145deg,#e7f2e7,#f9fbf9); }
.Heading-image::before, .Heading-image::after { position: absolute; content: ""; background: rgba(39,155,50,.07); clip-path: polygon(50% 0,100% 100%,0 100%); }
.Heading-image::before { top: -80px; left: -70px; width: 390px; height: 390px; transform: rotate(12deg); }
.Heading-image::after { right: -90px; bottom: -100px; width: 440px; height: 420px; transform: rotate(-17deg); }
.intro-image { position: relative; z-index: 2; width: min(64%,340px); height: auto; object-fit: contain; mix-blend-mode: multiply; }
.heading-text h2, .ordo-system-page-container > div:not(.Heading-image) > h2 { margin: 0 0 20px; font-size: clamp(30px,3vw,44px); letter-spacing: -1.4px; }
.heading-text p, .ordo-system-page-container > p, .ordo-system-page-container > div > p { color: var(--muted); line-height: 1.75; }
.ordo-complex-container p { color: #b8c3ba; }
.gallery-container { grid-column: 1 / -1; margin-top: 20px; }
.gallery-container > h2 { font-size: 32px; }
.gallery-container > p { max-width: 800px; color: var(--muted); line-height: 1.7; }
.ordo-complex-container .gallery-container > p { color: #b8c3ba; }
.galleries { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 30px; }
.galleries a { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(20,45,23,.06); }
.galleries img { width: 100%; height: 180px; object-fit: cover; transition: transform 250ms ease; }
.galleries a:hover img { transform: scale(1.035); }
.ordo-simplex-contact { margin-top: 30px; padding: 20px; border: 1px solid #cae1cb; border-radius: 14px; background: #f4f9f4; }
.ordo-simplex-contact a { color: var(--green-dark); font-weight: 800; }
.ourgoal-container { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ourgoal-container > * { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; line-height: 1.7; }

.site-ordoinstrumentum .site-footer { margin-top: 0; }

@media (max-width: 1020px) {
  .ordo-system-container { grid-template-columns: 1fr; }
  .ordo-system-card { min-height: 390px; }
  .ordo-system-page-container { grid-template-columns: 1fr; gap: 42px; }
  .Heading-image { min-height: 430px; }
  .galleries { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 700px) {
  .documentator-content .Heading-title,
  .documentator-content .bg-white { width: min(calc(100% - 36px),var(--container)); }
  .documentator-content .Heading-title:has(#HomePage) { padding-top: 76px; }
  .documentator-content .Heading-title:has(#OrdoInstrumentum),
  .documentator-content .Heading-title:has(#OrdoSimplex),
  .documentator-content .Heading-title:has(#OrdoComplex),
  .documentator-content .Heading-title:has(#OurGoal) { padding: 76px 18px 40px; }
  .documentator-content .Heading-title:has(#OrdoInstrumentum) + .bg-white,
  .documentator-content .Heading-title:has(#OrdoSimplex) + .bg-white,
  .documentator-content .Heading-title:has(#OrdoComplex) + .bg-white,
  .documentator-content .Heading-title:has(#OurGoal) + .bg-white { padding: 0 18px 76px; }
  .ordo-system-card { min-height: 360px; }
  .Heading-image { min-height: 340px; }
  .galleries { grid-template-columns: repeat(2,1fr); }
  .galleries img { height: 135px; }
  .ourgoal-container { grid-template-columns: 1fr; }
}

/* Documentator normalizes h1/h2/h3 to div.h1/div.h2/div.h3. */
.documentator-content .h1,
.documentator-content .h2,
.documentator-content .h3 { display: block; font-weight: 700; }

.documentator-content .hero .h1 { margin: 0; font-size: clamp(48px, 4.1vw, 67px); line-height: 1.04; letter-spacing: -3px; }
.documentator-content .hero .h1 span { color: var(--green); }
.documentator-content .section-heading .h2,
.documentator-content .product-copy .h2,
.documentator-content .mission-copy .h2,
.documentator-content .contact-copy .h2 { margin: 0; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; letter-spacing: -2px; }
.documentator-content .system-card .h3 { margin: 0; font-size: 24px; }
.documentator-content .system-card .h3 sup,
.documentator-content .product-copy .h2 sup { color: var(--green); font-size: 12px; vertical-align: super; }
.documentator-content .gallery-heading .h3 { margin: 0; font-size: 30px; letter-spacing: -1px; }
.documentator-content .mission-cards .h3 { margin: 0; font-size: 16px; }

.icon-arrow-right::before { content: "\2192"; }
.icon-arrow-left::before { content: "\2190"; }
.icon-arrow-external::before { content: "\2197"; }

@media (max-width: 1200px) {
  .documentator-content .hero .h1 { font-size: 52px; }
}
@media (max-width: 1020px) {
  .documentator-content .hero .h1 { max-width: 700px; font-size: 53px; }
}
@media (max-width: 650px) {
  .documentator-content .hero .h1 { font-size: clamp(38px, 11.3vw, 48px); letter-spacing: -2px; }
  .documentator-content .section-heading .h2,
  .documentator-content .product-copy .h2,
  .documentator-content .mission-copy .h2,
  .documentator-content .contact-copy .h2 { font-size: 35px; letter-spacing: -1.4px; }
  .documentator-content .gallery-heading .h3 { font-size: 25px; }
}
