/*
 * Shared visual system for internal pages.
 * Loaded after the legacy page styles so every public template uses the same
 * header, spacing, typography, cards and calls to action as the homepage.
 */

.kitek-refresh-page {
    background: var(--k-white);
    color: var(--k-ink);
}

.k-skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--k-white);
    color: var(--k-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.k-skip-link:focus {
    transform: translateY(0);
}

.kitek-refresh-page :focus-visible {
    outline: 3px solid var(--k-mint) !important;
    outline-offset: 4px !important;
}

#main-content {
    scroll-margin-top: 96px;
}

.kitek-refresh-page .k-home,
.kitek-refresh-page .k-home p {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

.kitek-refresh-page .header {
    position: absolute !important;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: auto !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 !important;
    background: rgba(7, 19, 33, 0.88) !important;
    backdrop-filter: blur(18px);
}

.kitek-refresh-page .header__inner {
    width: min(1180px, calc(100% - 48px)) !important;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 !important;
}

.kitek-refresh-page .header__wrapper-logo {
    width: 154px;
}

.kitek-refresh-page .header__navigation-wrapper,
.kitek-refresh-page .header .navigation__list {
    background: transparent !important;
}

.kitek-refresh-page .header .navigation__list {
    gap: 30px;
    box-shadow: none;
}

.kitek-refresh-page .header .navigation__item,
.kitek-refresh-page .header .navigation__list > li:not(:first-child) {
    margin: 0;
}

/*
 * The legacy navigation spacing rule targets every descendant list item.
 * Reset submenu lists explicitly so only top-level navigation items are spaced.
 */
.kitek-refresh-page .header .dropdown-content {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kitek-refresh-page .header .dropdown-content > li,
.kitek-refresh-page .header .dropdown-content > li:not(:first-child) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kitek-refresh-page .header .navigation__link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
}

.kitek-refresh-page .header .navigation__link:hover {
    color: var(--k-white);
}

.kitek-refresh-page .header__button {
    min-width: auto;
    min-height: 46px;
    margin-left: 34px;
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    background: var(--k-blue);
    color: var(--k-white);
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 10px 26px rgba(77, 111, 255, 0.28);
}

.kitek-refresh-page .swish {
    display: none;
}

.kitek-refresh-page .footer {
    background: var(--k-navy) !important;
}

/*
 * The social marks are inline SVGs so they cannot disappear when an icon font
 * is delayed, blocked or removed by asset optimisation.
 */
.kitek-refresh-page .footer-social-icon {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 14px;
}

.kitek-refresh-page .footer-social-icon .footer-social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin: 0;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: transform 160ms ease, filter 160ms ease;
}

.kitek-refresh-page .footer-social-icon .footer-social-link:hover,
.kitek-refresh-page .footer-social-icon .footer-social-link:focus-visible {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.kitek-refresh-page .footer-social-icon .footer-social-link--facebook {
    background: #3b5998;
}

.kitek-refresh-page .footer-social-icon .footer-social-link--x {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kitek-refresh-page .footer-social-icon .footer-social-link--linkedin {
    background: #0a66c2;
}

.kitek-refresh-page .footer-social-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
    fill: currentColor;
}

.kitek-refresh-page .footer-widget ul::after {
    display: table;
    clear: both;
    content: "";
}

.kitek-refresh-page .copyright-area .row {
    display: block !important;
}

.kitek-refresh-page .copyright-area [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.kitek-refresh-page .copyright-text,
.kitek-refresh-page .copyright-text p {
    width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

.k-interior-page,
.k-interior-page * {
    box-sizing: border-box;
}

.k-interior-page h1,
.k-interior-page h2,
.k-interior-page h3,
.k-interior-page p,
.k-interior-page ul,
.k-interior-page ol {
    margin-top: 0;
}

.k-page-hero {
    --k-blue-text: var(--k-sky);
    position: relative;
    overflow: hidden;
    padding: 185px 0 110px;
    background:
        radial-gradient(circle at 86% 18%, rgba(77, 111, 255, 0.25), transparent 30%),
        var(--k-navy);
    color: var(--k-white);
}

.k-page-hero::after {
    position: absolute;
    right: -180px;
    bottom: -320px;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(99, 216, 177, 0.14);
    border-radius: 50%;
    content: "";
}

.k-page-hero__inner,
.k-page-hero > .k-shell {
    position: relative;
    z-index: 1;
}

.k-page-hero h1 {
    max-width: 1000px;
    margin: 0 0 28px;
    color: var(--k-white);
    font-size: clamp(48px, 6.3vw, 82px);
    font-weight: 650;
    letter-spacing: -0.052em;
    line-height: 1.02;
}

.k-page-hero__lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 19px;
    line-height: 1.75;
}

.k-page-hero__meta {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.k-back-link {
    display: inline-block;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.k-back-link:hover {
    color: var(--k-mint);
}

.k-story-section,
.k-careers-story,
.k-case-study-result {
    background: var(--k-white);
}

.k-story-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.k-story-grid h2,
.k-contact-grid h2,
.k-case-study-summary h2 {
    margin-bottom: 0;
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.k-rich-copy {
    color: var(--k-muted);
    font-size: 16px;
    line-height: 1.8;
}

.k-rich-copy p {
    margin-bottom: 22px;
}

.k-rich-copy p:last-child {
    margin-bottom: 0;
}

.k-rich-copy a {
    color: var(--k-blue-text);
}

/* Long-form policy content */
.k-content-section {
    background: var(--k-paper);
}

.k-policy-content {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--k-line);
    border-radius: 28px;
    padding: clamp(30px, 6vw, 72px);
    background: var(--k-white);
    color: var(--k-muted);
    font-size: 16px;
    line-height: 1.8;
    box-shadow: var(--k-shadow);
}

.k-policy-content h2 {
    margin: 48px 0 16px;
    color: var(--k-ink);
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.k-policy-content h2:first-of-type {
    margin-top: 34px;
}

.k-policy-content p,
.k-policy-content ul {
    margin-bottom: 20px;
}

.k-policy-content li {
    margin-bottom: 8px;
}

.k-policy-content a,
.k-triage-form__privacy a {
    color: var(--k-blue-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.k-policy-updated {
    color: var(--k-ink);
    font-size: 13px;
}

.kitek-refresh-page .cta-text h3 {
    color: var(--k-white);
    font-size: 16px;
}

/* About and capability icons */
.k-about-capabilities {
    background: var(--k-paper);
}

.k-about-capabilities__grid {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
}

.k-about-capability {
    min-width: 0;
}

.k-about-capability__link {
    position: relative;
    display: grid;
    min-height: 330px;
    grid-template-columns: 118px 1fr;
    gap: 30px;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: 34px;
    background: var(--k-white);
    color: var(--k-ink);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.k-about-capability__link:hover {
    border-color: rgba(77, 111, 255, 0.42);
    box-shadow: 0 22px 55px rgba(25, 40, 65, 0.09);
    transform: translateY(-4px);
}

.k-about-capability__number {
    position: absolute;
    top: 28px;
    right: 30px;
    color: var(--k-blue-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.k-about-capability__icon {
    display: grid;
    width: 104px;
    height: 104px;
    margin-top: 32px;
    place-items: center;
    border-radius: 28px;
    background: rgba(77, 111, 255, 0.1);
    color: var(--k-blue-text);
}

.k-about-capability__icon svg {
    width: 62px;
    height: 62px;
}

.k-about-capability__icon svg,
.k-about-capability__icon svg * {
    fill: none !important;
    stroke: currentColor !important;
}

.k-about-capability__content {
    align-self: center;
}

.k-about-capability__content h3 {
    margin-bottom: 14px;
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.k-about-capability__content p {
    margin-bottom: 28px;
    color: var(--k-muted);
    font-size: 14px;
    line-height: 1.7;
}

.k-about-capability__more {
    color: var(--k-blue-text);
    font-size: 13px;
    font-weight: 650;
}

.k-values-section {
    --k-blue-text: var(--k-sky);
    background: var(--k-navy);
    color: var(--k-white);
}

.k-values-section h2 {
    color: var(--k-white);
}

.k-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.k-values-grid article {
    min-height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.045);
}

.k-values-grid span {
    color: var(--k-mint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.k-values-grid h3 {
    margin: 42px 0 12px;
    color: var(--k-white);
    font-size: 22px;
}

.k-values-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.65;
}

/* Process */
.k-process-list {
    background: var(--k-paper);
}

.k-process-list > .k-shell > ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-process-card {
    display: grid;
    grid-template-columns: 90px 1.25fr 0.75fr;
    gap: 42px;
    margin-bottom: 18px;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: 40px;
    background: var(--k-white);
}

.k-process-card__number {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 22px;
    background: rgba(77, 111, 255, 0.1);
    color: var(--k-blue-text);
    font-size: 17px;
    font-weight: 700;
}

.k-process-card__body h2 {
    margin-bottom: 18px;
    font-size: 31px;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.k-process-card > ul {
    margin: 0;
    padding: 0;
    align-self: center;
    list-style: none;
}

.k-process-card > ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--k-line);
    color: var(--k-ink);
    font-size: 13px;
    font-weight: 550;
}

.k-process-card > ul li::before {
    margin-right: 9px;
    color: var(--k-blue-text);
    content: "✓";
}

/* Case-study directory */
.k-case-directory {
    background: var(--k-paper);
}

.k-case-directory__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.k-case-card {
    overflow: hidden;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: var(--k-white);
}

.k-case-card__image {
    display: block;
    overflow: hidden;
    height: 330px;
    background: var(--k-navy-soft);
}

.k-case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.k-case-card__image--contain {
    display: grid;
    padding: 54px;
    place-items: center;
    background: linear-gradient(145deg, #edf2f9, #ffffff);
}

.k-case-card__image--contain img {
    object-fit: contain;
}

.k-case-card__placeholder,
.k-case-study-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        var(--k-navy);
    background-size: 42px 42px;
    color: var(--k-white);
    text-align: center;
}

.k-case-card__placeholder strong,
.k-case-study-placeholder strong {
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.k-case-card__placeholder small,
.k-case-study-placeholder small {
    margin-top: 10px;
    color: var(--k-mint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.k-case-card:hover .k-case-card__image img {
    transform: scale(1.025);
}

.k-case-card__content {
    padding: 34px;
}

.k-case-card__content h2 {
    margin-bottom: 14px;
    font-size: 31px;
    line-height: 1.2;
}

.k-case-card__content h2 a {
    color: inherit;
    text-decoration: none;
}

.k-case-card__content > p:not(.k-kicker) {
    min-height: 76px;
    margin-bottom: 24px;
    color: var(--k-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Careers */
.k-careers-list {
    background: var(--k-paper);
}

.k-careers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.k-careers-grid article {
    position: relative;
    min-height: 420px;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: 36px;
    background: var(--k-white);
}

.k-careers-grid img {
    width: 82px;
    height: 82px;
    margin: 18px 0 42px;
    object-fit: contain;
}

.k-careers-card__number {
    position: absolute;
    top: 30px;
    right: 32px;
    color: var(--k-blue-text);
    font-size: 12px;
    font-weight: 700;
}

.k-careers-grid h2 {
    margin-bottom: 13px;
    font-size: 28px;
}

.k-careers-grid p {
    min-height: 105px;
    margin-bottom: 26px;
    color: var(--k-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Contact */
.k-contact-section {
    background: var(--k-paper);
}

.k-contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 80px;
    align-items: start;
}

.k-contact-grid > div:first-child > p:not(.k-kicker) {
    margin: 25px 0;
    color: var(--k-muted);
    font-size: 16px;
    line-height: 1.75;
}

.k-contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--k-line);
}

.k-contact-details a,
.k-contact-details span {
    color: var(--k-ink);
    font-size: 14px;
    text-decoration: none;
}

.k-contact-card {
    border: 1px solid var(--k-line);
    border-radius: 28px;
    padding: 38px;
    background: var(--k-white);
    box-shadow: var(--k-shadow);
}

.k-contact-card #overlayWrapper,
.k-contact-card .t-popup__close {
    display: none !important;
}

.k-contact-card #popup-form.k-triage-form {
    --k-blue-text: #304fd4;
    position: static !important;
    inset: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.k-contact-card .k-triage-form__eyebrow,
.k-contact-card .k-triage-form__intro,
.k-contact-card .title {
    display: none;
}

.k-contact-card .k-triage-form__fields > p {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.k-contact-card .k-triage-form__fields label {
    display: block;
    color: var(--k-ink);
    font-size: 13px;
    font-weight: 650;
}

.k-contact-card .k-triage-form__fields label:last-of-type {
    grid-column: 1 / -1;
}

.k-contact-card .k-triage-form__fields small {
    display: block;
    margin: 5px 0 8px;
    color: var(--k-muted);
    font-size: 11px;
    font-weight: 400;
}

.k-contact-card input:not([type="submit"]),
.k-contact-card textarea {
    width: 100%;
    border: 1px solid var(--k-line);
    border-radius: 12px;
    padding: 13px 14px;
    background: var(--k-paper);
    color: var(--k-ink);
    font: inherit;
}

.k-contact-card textarea {
    min-height: 150px;
    resize: vertical;
}

.k-contact-card input:focus,
.k-contact-card textarea:focus {
    border-color: var(--k-blue);
    outline: 3px solid rgba(77, 111, 255, 0.1);
}

.k-contact-card .k-triage-form__submit {
    margin: 22px 0 0;
}

.k-contact-card input[type="submit"] {
    border: 0;
    border-radius: 999px;
    padding: 14px 25px;
    background: var(--k-blue);
    color: var(--k-white);
    font-weight: 650;
    cursor: pointer;
}

.k-contact-card .k-triage-form__privacy {
    margin: 14px 0 0;
    color: var(--k-muted);
    font-size: 11px;
}

.home .k-contact-card #popup-form .k-triage-form__fields label {
    color: var(--k-ink);
    font-size: 13px;
    font-weight: 650;
}

.home .k-contact-card #popup-form .k-triage-form__fields small {
    color: var(--k-muted);
}

.home .k-contact-card #popup-form input:not([type="submit"]),
.home .k-contact-card #popup-form textarea {
    border-color: var(--k-line);
    padding: 13px 14px;
    background: var(--k-paper);
    color: var(--k-ink);
}

.home .k-contact-card #popup-form input:not([type="submit"])::placeholder,
.home .k-contact-card #popup-form textarea::placeholder {
    color: var(--k-muted);
}

.home .k-contact-card #popup-form textarea {
    min-height: 150px;
}

.home .k-contact-card #popup-form .k-triage-form__privacy {
    color: var(--k-muted);
}

/* Blog */
.k-blog-list {
    background: var(--k-paper);
}

.k-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.k-blog-grid article {
    min-height: 330px;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: 36px;
    background: var(--k-white);
}

.k-blog-grid time {
    color: var(--k-blue-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.k-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--k-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.k-blog-card__meta time {
    color: var(--k-blue-text);
}

.k-blog-grid h2 {
    margin: 48px 0 15px;
    font-size: 28px;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.k-blog-grid h2 a {
    color: inherit;
    text-decoration: none;
}

.k-blog-grid p {
    min-height: 78px;
    margin-bottom: 22px;
    color: var(--k-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Individual case studies */
.k-case-study-overview {
    background: var(--k-paper);
}

.k-case-study-overview__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

.k-case-study-visual {
    overflow: hidden;
    min-height: 500px;
    border-radius: 30px;
    background: var(--k-navy-soft);
    box-shadow: var(--k-shadow);
}

.k-case-study-visual img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.k-case-study-visual--contain {
    display: grid;
    padding: 65px;
    place-items: center;
    background: linear-gradient(145deg, #eaf0f8, #ffffff);
}

.k-case-study-visual--contain img {
    height: auto;
    min-height: 0;
    max-height: 370px;
    object-fit: contain;
}

.k-case-study-logo-wrap {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 40px;
    align-items: center;
}

.k-case-study-logo-wrap--dark {
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: var(--k-navy);
    box-shadow: 0 14px 36px rgba(7, 18, 34, 0.14);
}

.k-case-study-logo {
    width: auto;
    max-width: min(100%, 280px);
    max-height: 90px;
    object-fit: contain;
}

.k-case-study-summary h2 {
    margin: 16px 0 28px;
}

.k-case-study-summary .k-rich-copy ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-case-study-summary .k-rich-copy li {
    padding: 12px 0;
    border-bottom: 1px solid var(--k-line);
}

.k-case-study-summary .k-rich-copy li::before {
    margin-right: 9px;
    color: var(--k-blue-text);
    content: "✓";
}

.k-case-study-live-link {
    margin-top: 32px;
}

.k-case-study-result {
    background: var(--k-white);
}

.k-case-gallery {
    background: var(--k-paper);
}

.k-case-gallery__intro {
    max-width: 650px;
}

.k-case-gallery__intro h2 {
    margin: 16px 0 0;
    font-size: clamp(40px, 4.6vw, 66px);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.k-case-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 54px;
}

.k-case-gallery__grid--single {
    grid-template-columns: 1fr;
}

.k-case-gallery__item {
    display: grid;
    min-height: 520px;
    margin: 0;
    padding: 56px;
    place-items: center;
    border: 1px solid rgba(75, 111, 255, 0.12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 74% 23%, rgba(75, 111, 255, 0.18), transparent 29%),
        linear-gradient(145deg, #e7edf7, #ffffff 76%);
    box-shadow: var(--k-shadow);
}

.k-case-gallery__item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    border-radius: 18px;
    object-fit: contain;
}

.k-case-gallery__item--portrait img {
    width: min(100%, 290px);
}

.k-case-gallery__item figcaption {
    margin-top: 24px;
    color: var(--k-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

/* Articles */
.k-article-hero h1 {
    max-width: 1080px;
    font-size: clamp(44px, 5.2vw, 70px);
}

.k-article-body {
    background: var(--k-white);
}

.k-article-body__inner {
    max-width: 820px;
    color: var(--k-ink);
    font-size: 17px;
    line-height: 1.85;
}

.k-article-body__inner h2,
.k-article-body__inner h3 {
    margin: 50px 0 18px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.k-article-body__inner p,
.k-article-body__inner ul,
.k-article-body__inner ol {
    margin-bottom: 24px;
}

.k-article-body__inner img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.k-first-hand-note {
    margin: 38px 0;
    padding: 28px 30px;
    border-left: 4px solid var(--k-mint);
    border-radius: 0 18px 18px 0;
    background: var(--k-paper);
}

.k-first-hand-note .k-kicker {
    margin-bottom: 10px;
}

.k-first-hand-note p:last-child {
    margin-bottom: 0;
    color: var(--k-ink);
    font-weight: 600;
}

.k-author-card {
    margin-top: 64px;
    padding: 32px;
    border: 1px solid var(--k-line);
    border-radius: 22px;
    background: var(--k-paper);
}

.k-author-card h2 {
    margin: 8px 0 4px;
    font-size: 27px;
}

.k-author-card .k-author-card__role {
    margin-bottom: 15px;
    color: var(--k-blue-text);
    font-size: 14px;
    font-weight: 700;
}

.k-author-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .kitek-refresh-page .header .navigation__list {
        gap: 18px;
    }

    .k-story-grid,
    .k-contact-grid,
    .k-case-study-overview__grid {
        gap: 50px;
    }
}

@media (max-width: 960px) {
    .kitek-refresh-page .header__inner {
        min-height: 76px;
    }

    .kitek-refresh-page .header__navigation.navigation--opened {
        position: fixed;
        z-index: 5;
        inset: 0;
        display: flex;
        width: 100%;
        height: 100vh;
        margin: 0;
        flex-direction: column;
        padding: 105px 20px 30px;
        background: var(--k-navy) !important;
    }

    .kitek-refresh-page .header__navigation.navigation--opened .header__navigation-wrapper {
        display: block;
        width: 100%;
    }

    .kitek-refresh-page .header .navigation__list {
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0 !important;
        align-items: stretch;
    }

    .kitek-refresh-page .header .navigation__item,
    .kitek-refresh-page .header .navigation__list > li:not(:first-child) {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .kitek-refresh-page .header .navigation__link {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 19px;
    }

    .kitek-refresh-page .header .dropdown-content {
        position: static;
        display: block;
        padding: 0 0 10px 18px;
        background: transparent;
        box-shadow: none;
    }

    .kitek-refresh-page .header .dropdown-content li,
    .kitek-refresh-page .header .navigation__list .dropdown-content li:not(:first-child) {
        border: 0;
    }

    .kitek-refresh-page .header .dropdown-content a {
        padding: 7px 0;
        color: rgba(255, 255, 255, 0.72);
        font-size: 14px;
    }

    .kitek-refresh-page .header__button {
        display: inline-flex;
        width: 100%;
        margin: 24px 0 0;
    }

    .k-page-hero {
        padding: 140px 0 90px;
    }

    .k-story-grid,
    .k-contact-grid,
    .k-case-study-overview__grid {
        grid-template-columns: 1fr;
    }

    .k-about-capabilities__grid,
    .k-case-directory__grid,
    .k-careers-grid,
    .k-blog-grid {
        grid-template-columns: 1fr;
    }

    .k-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .k-process-card {
        grid-template-columns: 72px 1fr;
        gap: 28px;
    }

    .k-process-card > ul {
        grid-column: 2;
    }

    .k-case-study-visual,
    .k-case-study-visual img {
        min-height: 380px;
    }
}

@media (max-width: 680px) {
    .kitek-refresh-page .header__inner {
        width: calc(100% - 30px) !important;
    }

    .kitek-refresh-page .header__wrapper-logo {
        width: 128px;
    }

    .kitek-refresh-page .footer-content .row {
        display: block !important;
    }

    .kitek-refresh-page .footer-content [class*="col-"] {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        clear: both;
    }

    .kitek-refresh-page .footer-content [class*="col-"] + [class*="col-"] {
        margin-top: 46px !important;
    }

    .kitek-refresh-page .footer-widget ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 28px;
        margin: 0;
        padding: 0;
    }

    .kitek-refresh-page .footer-widget ul li,
    .kitek-refresh-page .footer-widget ul li:not(:first-child) {
        display: block;
        width: auto;
        margin: 0;
        float: none;
    }

    .kitek-refresh-page .footer-social-icon {
        margin-top: 2px;
    }

    .k-page-hero {
        padding: 120px 0 72px;
    }

    .k-page-hero h1 {
        font-size: 43px;
    }

    .k-page-hero__lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .k-story-grid h2,
    .k-contact-grid h2,
    .k-case-study-summary h2 {
        font-size: 39px;
    }

    .k-about-capability__link {
        min-height: 0;
        grid-template-columns: 82px 1fr;
        gap: 20px;
        padding: 26px;
    }

    .k-about-capability__icon {
        width: 78px;
        height: 78px;
        margin-top: 34px;
        border-radius: 22px;
    }

    .k-about-capability__icon svg {
        width: 46px;
        height: 46px;
    }

    .k-about-capability__content h3 {
        font-size: 22px;
    }

    .k-values-grid {
        grid-template-columns: 1fr;
    }

    .k-process-card {
        grid-template-columns: 1fr;
        padding: 27px;
    }

    .k-process-card > ul {
        grid-column: auto;
    }

    .k-case-card__image {
        height: 230px;
    }

    .k-case-card__content,
    .k-careers-grid article,
    .k-blog-grid article,
    .k-contact-card {
        padding: 27px;
    }

    .k-contact-card .k-triage-form__fields > p {
        grid-template-columns: 1fr;
    }

    .k-contact-card .k-triage-form__fields label:last-of-type {
        grid-column: auto;
    }

    .k-case-study-visual,
    .k-case-study-visual img {
        min-height: 260px;
    }

    .k-case-gallery__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 34px;
    }

    .k-case-gallery__item {
        min-height: 0;
        padding: 30px 22px;
        border-radius: 22px;
    }

    .k-case-gallery__item img {
        max-height: 500px;
    }

    .k-case-gallery__item--portrait img {
        width: min(100%, 230px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kitek-refresh-page,
    .kitek-refresh-page *,
    .kitek-refresh-page *::before,
    .kitek-refresh-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
