:root {
    --ink: #1d1726;
    --muted: #62576c;
    --paper: #f7f5f0;
    --white: #ffffff;
    --cobalt: #6530a8;
    --coral: #e67d5f;
    --coral-text: #963b25;
    --lime: #dce8aa;
    --line: #ded8e3;
    --shadow: 0 22px 55px rgba(39, 24, 52, .13);
    --radius: 18px;
    --page: 1180px;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { color: var(--ink); background: var(--white); }
body.modal-open { overflow: hidden; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ink);
}
.skip-link { z-index: 200; color: var(--white); background: var(--cobalt); border-radius: 0 0 8px 8px; font: 750 .9rem/1.2 Arial, sans-serif; }
.page-shell { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }
.eyebrow { color: var(--cobalt); font-family: Arial, sans-serif; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-type:empty { display: none; }

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(101, 48, 168, .14);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}
.nav-shell {
    width: min(var(--page), calc(100% - 48px));
    min-height: 78px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { display: block; width: 188px; height: auto; }
.nav-links, .language-switcher { display: flex; align-items: center; gap: 7px; }
.nav-links a, .language-switcher a, .menu-toggle, .mobile-menu a {
    font-family: Arial, sans-serif;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); padding: 10px 11px; border-radius: 999px; }
.nav-links a:hover { color: var(--cobalt); background: #f2edf8; }
.nav-links .nav-cta { color: var(--white); background: var(--cobalt); padding-inline: 18px; }
.nav-links .nav-cta:hover { color: var(--white); background: #512488; }
.language-switcher { padding-left: 15px; border-left: 1px solid var(--line); }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; color: var(--muted); padding: 8px; border-radius: 8px; }
.language-switcher img { width: 19px; height: 13px; object-fit: cover; }
.language-switcher a.active { color: var(--ink); background: var(--lime); }
.menu-toggle {
    display: none;
    color: var(--white);
    border: 0;
    border-radius: 999px;
    background: var(--cobalt);
    padding: 10px 16px;
    min-height: 44px;
    cursor: pointer;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu { width: min(var(--page), calc(100% - 32px)); margin: 0 auto 14px; display: grid; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.mobile-menu a { color: var(--ink); padding: 14px 17px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--cobalt); background: #f7f3fb; }

/* Hero and about */
.hero .button-primary, .contact-band .button-light { box-shadow: 0 10px 25px rgba(35, 20, 45, .14); }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--cobalt);
    border: 0;
    border-bottom: 2px solid currentColor;
    background: transparent;
    min-height: 44px;
    padding: 10px 0;
    font: 750 .95rem/1.2 Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.text-link:hover { color: #4c217f; }
.about-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 88px); align-items: start; }
.about-copy h2 { max-width: 16ch; }
.owner-profile {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.owner-profile img { width: 126px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 8px 25px rgba(29, 23, 38, .14); }
.owner-profile h3 { margin: 4px 0 3px; }
.owner-profile p { margin: 0; color: var(--muted); }
.owner-profile .owner-role { margin-bottom: 12px; color: var(--cobalt); font: 750 .82rem/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }

/* Reusable managed-content sections */
.news-band, .showcases-band, .updates { padding-block: clamp(72px, 9vw, 116px); }
.news-band { background: var(--paper); }
.news-band > .section-heading, .news-band > .news-grid, .news-band > .section-pagination {
    width: min(var(--page), calc(100% - 48px));
    margin-inline: auto;
}
.section-heading { margin-bottom: 34px; }
.section-heading .eyebrow { display: inline-block; margin: 0; color: var(--white); border-radius: 999px; background: var(--cobalt); padding: 10px 16px; }
.section-heading > h2.eyebrow { color: var(--white); font: 800 .78rem/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.card-label, .project-type { color: var(--coral-text); }
.news-grid, .showcase-grid, .partner-grid, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card, .showcase-card, .partner-card, .review-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(42, 30, 51, .07);
    overflow: hidden;
}
.news-card, .showcase-card, .partner-card { display: flex; flex-direction: column; padding: 24px; }
.news-card .text-link, .showcase-card .text-link, .partner-card .text-link { margin-top: auto; }
.news-thumbnail, .showcase-thumbnail {
    width: calc(100% + 48px);
    height: 190px;
    margin: -24px -24px 22px;
    object-fit: cover;
    background: #ede8f1;
}
.news-card h3, .showcase-card h3, .partner-card h3 { margin: 6px 0 10px; }
.news-card > p:not(.project-type):not(.news-date), .showcase-card > p, .partner-card > p { color: var(--muted); }
.news-date { margin: 0 0 12px; color: var(--cobalt); font: 750 .78rem/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.showcases-band { background: var(--white); }
.showcase-card { background: var(--paper); }
.partner-card { padding: 0; }
.partner-modal-trigger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; width: 100%; min-height: 132px; color: var(--ink); border: 0; background: transparent; padding: 22px; font: 700 1.12rem/1.25 Georgia, serif; cursor: pointer; }
.partner-modal-trigger:hover { background: var(--paper); }
.partner-card img { width: 100%; height: 72px; margin: 0; object-fit: contain; object-position: center; }
.partner-modal-content > img { display: block; width: min(240px, 70%); max-height: 110px; margin: 0 0 24px; object-fit: contain; object-position: left center; }
.partner-company-link { margin-top: 16px; }
.reviews-section { padding-top: 24px; }
.review-card { position: relative; padding: 30px; background: var(--cobalt); color: var(--white); }
.review-card::before { content: '\201C'; position: absolute; top: 5px; right: 21px; color: rgba(255, 255, 255, .18); font: 700 5rem/1 Georgia, serif; }
.review-card h3 { position: relative; margin-top: 0; }
.review-card p { position: relative; color: #f2ebfa; }
.review-card .text-link { position: relative; color: var(--white); }

.section-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.section-pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; color: var(--cobalt); border: 1px solid var(--cobalt); border-radius: 50%; font: 750 .9rem/1 Arial, sans-serif; text-decoration: none; }
.section-pagination a:hover, .section-pagination a.active { color: var(--white); background: var(--cobalt); }

/* Modals */
.news-modal[hidden], .showcase-modal[hidden], .partner-modal[hidden], .review-modal[hidden] { display: none; }
.news-modal, .showcase-modal, .partner-modal, .review-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(21, 14, 28, .78);
    backdrop-filter: blur(5px);
}
.news-modal-content, .showcase-modal-content, .partner-modal-content, .review-modal-content {
    position: relative;
    width: min(760px, 100%);
    max-height: min(84vh, 860px);
    overflow: auto;
    border-radius: var(--radius);
    background: var(--white);
    padding: clamp(28px, 5vw, 52px);
    box-shadow: var(--shadow);
}
.showcase-modal-content { width: min(920px, 100%); }
.news-modal-close, .showcase-modal-close, .partner-modal-close, .review-modal-close {
    position: absolute;
    top: 13px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    color: var(--ink);
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    font-size: 1.8rem;
    cursor: pointer;
}
.news-modal-image { width: 100%; max-height: 390px; margin: 12px 0 24px; object-fit: cover; border-radius: 12px; }
.news-modal-body, .showcase-modal-body, .review-modal-body { color: var(--muted); line-height: 1.75; }
.news-modal-close-action, .showcase-modal-close-action {
    margin-top: 24px;
    color: var(--cobalt);
    border: 1px solid var(--cobalt);
    border-radius: 999px;
    background: transparent;
    padding: 11px 18px;
    font-weight: 750;
    cursor: pointer;
}
.showcase-gallery { position: relative; margin: 10px 0 28px; overflow: hidden; border-radius: 14px; background: var(--paper); }
.showcase-gallery img { display: none; width: 100%; max-height: 490px; object-fit: contain; }
.showcase-gallery img.active { display: block; }
.showcase-gallery-prev, .showcase-gallery-next { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; color: var(--white); border: 0; border-radius: 50%; background: rgba(29, 23, 38, .78); cursor: pointer; }
.showcase-gallery-prev { left: 12px; }
.showcase-gallery-next { right: 12px; }

/* Accessibility toolbar and viewing modes */
.fs-tgkh-toolbar-left { position: fixed; z-index: 110; left: 0; top: 130px; font-family: Arial, sans-serif; }
.fs-tgkh-toolbar-toggle-link { display: grid; place-items: center; width: 48px; height: 48px; color: var(--white); border: 0; border-radius: 0 10px 10px 0; background: var(--cobalt); cursor: pointer; }
.fs-tgkh-toolbar-overlay { width: min(290px, calc(100vw - 30px)); margin-top: 5px; border: 1px solid var(--line); border-radius: 0 14px 14px 0; background: var(--white); box-shadow: var(--shadow); }
.fs-tgkh-toolbar-overlay[hidden] { display: none; }
.fs-tgkh-toolbar-inner { padding: 16px; }
.fs-tgkh-toolbar-title { margin: 0 0 10px; font-weight: 800; }
.fs-tgkh-toolbar-items { margin: 0; padding: 0; list-style: none; }
.fs-tgkh-toolbar-link { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--ink); border: 0; background: transparent; padding: 9px; text-align: left; cursor: pointer; }
.fs-tgkh-toolbar-icon { width: 24px; color: var(--cobalt); font-weight: 800; text-align: center; }
html.fs-tgkh-grayscale { filter: grayscale(1); }
html.fs-tgkh-light-background body,
html.fs-tgkh-light-background section,
html.fs-tgkh-light-background .site-header,
html.fs-tgkh-light-background .mobile-menu,
html.fs-tgkh-light-background .hero-visual,
html.fs-tgkh-light-background .hero-card,
html.fs-tgkh-light-background .owner-profile,
html.fs-tgkh-light-background .news-card,
html.fs-tgkh-light-background .showcase-card,
html.fs-tgkh-light-background .partner-card,
html.fs-tgkh-light-background .review-card,
html.fs-tgkh-light-background .site-footer,
html.fs-tgkh-light-background .news-modal-content,
html.fs-tgkh-light-background .showcase-modal-content,
html.fs-tgkh-light-background .partner-modal-content,
html.fs-tgkh-light-background .review-modal-content,
html.fs-tgkh-light-background .section-heading .eyebrow,
html.fs-tgkh-light-background .nav-cta,
html.fs-tgkh-light-background .button,
html.fs-tgkh-light-background button {
    background-color: var(--white) !important;
}
html.fs-tgkh-light-background body,
html.fs-tgkh-light-background body * {
    color: #000 !important;
}
html.fs-tgkh-light-background .hero-visual,
html.fs-tgkh-light-background .review-card,
html.fs-tgkh-light-background .site-footer,
html.fs-tgkh-light-background .section-heading .eyebrow,
html.fs-tgkh-light-background .nav-cta,
html.fs-tgkh-light-background .button,
html.fs-tgkh-light-background button {
    border-color: #000 !important;
}
html.fs-tgkh-light-background .hero-visual::before {
    background: linear-gradient(135deg, transparent 49%, rgba(0, 0, 0, .15) 50%, transparent 51%), linear-gradient(45deg, transparent 49%, rgba(0, 0, 0, .1) 50%, transparent 51%);
}
html.fs-tgkh-light-background .orbit { border-color: rgba(0, 0, 0, .35); }
html.fs-tgkh-light-background .review-card::before { color: rgba(0, 0, 0, .18); }
html.fs-tgkh-links-underline a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .18em; }

.contact-band { background: var(--coral); color: var(--ink); }
.contact-band .eyebrow { color: var(--ink); }
.contact-band .button-light { color: var(--white); background: var(--cobalt); }
.site-footer { background: var(--ink); color: var(--white); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: 30px; align-items: start; }
.footer-company { display: grid; gap: 4px; margin: 0; color: #d7cedf; font-style: normal; line-height: 1.5; }
.footer-company strong { color: var(--white); font-size: 1rem; }
.footer-company a { width: fit-content; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.footer-legal-links { display: grid; align-content: start; }
.footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: center; gap: .55rem; width: 100%; margin: 8px 0 0; color: #adb8c1; text-align: center; }
.legal-page { min-height: 70vh; padding-block: 90px; }
.legal-page h1 { max-width: 16ch; }
.legal-section { max-width: 780px; padding-block: 22px; border-top: 1px solid var(--line); }
.accessibility-page h1 { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.accessibility-page .lead { margin-bottom: 38px; }
.accessibility-status {
    max-width: 780px;
    margin: 0 0 48px;
    padding: 24px 26px;
    border-left: 5px solid var(--cobalt);
    background: var(--paper);
}
.accessibility-status h2 { margin: 0 0 8px; font-size: 1.45rem; }
.accessibility-status p { margin: 0; color: var(--muted); }
.accessibility-list { max-width: 740px; margin: 12px 0 0; padding-left: 26px; }
.accessibility-list li { margin-block: 8px; color: var(--muted); }
.legal-back-link { margin-top: 36px; }

@media (max-width: 900px) {
    .nav-shell { gap: 16px; }
    .nav-links { display: none; }
    .menu-toggle { display: inline-flex; }
    .brand-logo { width: 160px; }
    .news-grid, .showcase-grid, .partner-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #fs-tgkh-toolbar.fs-tgkh-toolbar-left { position: fixed !important; top: auto !important; bottom: 20px !important; left: 0 !important; }
}

@media (max-width: 640px) {
    html { scroll-padding-top: 76px; }
    .page-shell, .nav-shell, .news-band > .section-heading, .news-band > .news-grid, .news-band > .section-pagination { width: min(100% - 28px, var(--page)); }
    .nav-shell { min-height: 70px; gap: 9px; }
    .brand-logo { width: 128px; }
    .language-switcher { gap: 2px; padding-left: 0; border-left: 0; }
    .language-switcher a { padding: 6px; font-size: .78rem; }
    .language-switcher img { display: none; }
    .menu-toggle { padding: 9px 13px; font-size: .82rem; }
    .mobile-menu { width: calc(100% - 28px); }
    .news-grid, .showcase-grid, .partner-grid, .review-grid { grid-template-columns: 1fr; }
    .owner-profile { grid-template-columns: 84px 1fr; gap: 17px; padding: 20px; }
    .owner-profile img { width: 84px; }
    .news-thumbnail, .showcase-thumbnail { height: 205px; }
    .news-modal, .showcase-modal, .partner-modal, .review-modal { align-items: end; padding: 0; }
    .news-modal-content, .showcase-modal-content, .partner-modal-content, .review-modal-content { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 40px 22px 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-meta { flex-wrap: wrap; gap: .35rem .5rem; }
}

@media (max-width: 360px) {
    .brand-logo { width: 108px; }
    .hero h1 { font-size: 2.8rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
