:root {
    --bg: #f7f4ec;
    --surface: #fcfaf4;
    --surface-alt: #efe8d9;
    --text: #111111;
    --muted: rgba(0, 0, 0, 0.68);
    --line: #000000;
    --cyan: #566a86;
    --cyan-rgb: 86, 106, 134;
    --yellow: #dba844;
    --yellow-rgb: 219, 168, 68;
    --depth: #2470db;
    --depth-rgb: 36, 112, 219;
    --contact-dock-reserve: 240px;
    --body-font: "Work Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --display-font: "Roboto Flex", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --content-width: 1220px;
    --header-width: 1540px;
    --text-width: 760px;
    --border: 3px solid var(--line);
    --gutter: max(18px, calc((100vw - var(--content-width)) / 2));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.74;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 244, 236, 0.96);
    backdrop-filter: blur(10px);
    overflow: visible;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09), 0 3px 0 rgba(0, 0, 0, 0.08);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--line);
    z-index: 1;
}

.site-header__inner,
.site-header__language-row {
    width: 100%;
    margin: 0 auto;
}

.site-footer__inner {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    gap: 16px;
    padding: 30px var(--gutter) 30px;
}

.site-header__subrow {
    min-width: 0;
    margin-top: 16px;
}

.site-header__controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
}

.site-header__language-row {
    display: flex;
    justify-content: flex-end;
    position: relative;
    height: 0;
    margin-top: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 0;
    z-index: 21;
}

.site-brand {
    display: block;
    width: 100%;
}

.site-brand__name,
.site-footer__title,
.hero-copy h1,
.section-heading h2,
.cta-card h2,
.info-card h3,
.offer-card h3,
.prose-content h2,
.prose-content h3 {
    font-family: var(--display-font);
    color: var(--text);
}

.site-brand__name {
    display: block;
    width: 100%;
    max-width: none;
    font-size: clamp(3.2rem, 6vw, 5.9rem);
    font-weight: 900;
    line-height: 0.84;
    letter-spacing: 0.022em;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-label,
.eyebrow,
.card-tag,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: var(--border);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-brand__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--depth);
    box-shadow: none;
    margin: 0;
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.section-label,
.eyebrow,
.panel-kicker {
    background: var(--surface);
}

.section-label--plain,
.eyebrow--plain {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    margin: 0 0 14px;
}

.section-label--light {
    color: #fff;
}

.section-heading > .section-label,
.hero-copy > .eyebrow,
.cta-card > .section-label {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    margin: 0 0 14px;
}

.home-template .hero-home .eyebrow {
    font-size: clamp(1.08rem, 1.7vw, 1.42rem);
    letter-spacing: 0.11em;
}

.card-tag {
    background: var(--yellow);
}

.site-nav,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.site-nav {
    justify-content: flex-end;
    min-height: 56px;
    align-items: flex-end;
    gap: 16px;
    margin-left: auto;
    flex: 0 0 auto;
}

.site-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transform: translateY(-2px);
    min-height: 58px;
    padding: 0 14px;
    border: var(--border);
    border-top-width: 1px;
    background: var(--surface);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.09), 0 2px 0 rgba(0, 0, 0, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-language {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(var(--depth-rgb), 0.5);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.site-language:hover,
.site-language:focus-visible {
    color: var(--depth);
    outline: none;
}

.site-language.is-active,
.site-language[disabled] {
    cursor: default;
}

.site-language.is-active {
    color: var(--text);
}

.site-language-divider {
    color: var(--text);
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 0 4px;
    border-bottom: 4px solid var(--depth);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
    transform: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
    min-height: 56px;
    padding-left: 10px;
    padding-right: 10px;
    border: var(--border);
    border-bottom: 4px solid var(--depth);
    background: rgba(var(--yellow-rgb), 0.6);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--line);
}

.site-main {
    padding: 0 0 96px;
}

.hero,
.section {
    width: 100%;
    margin: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    border-top: var(--border);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.68fr);
    gap: 0;
    padding-top: 92px;
    padding-bottom: 88px;
    background: var(--surface);
}

.hero-page,
.hero-generic {
    grid-template-columns: 1fr;
}

.hero-about-arthur {
    position: relative;
    min-height: clamp(620px, 74vh, 860px);
    overflow: hidden;
}

.hero-about-arthur__portrait {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(40vw, 600px);
    background:
        linear-gradient(90deg, rgba(247, 244, 236, 1) 0%, rgba(247, 244, 236, 0.985) 28%, rgba(247, 244, 236, 0.88) 48%, rgba(247, 244, 236, 0.5) 68%, rgba(247, 244, 236, 0.14) 86%, rgba(247, 244, 236, 0) 100%),
        url("../images/arthur.png") right top / contain no-repeat;
    pointer-events: none;
}

.hero-about-arthur .hero-copy {
    position: relative;
    z-index: 1;
    max-width: min(60rem, calc(100% - min(28vw, 320px)));
    padding-right: clamp(90px, 13vw, 240px);
}

.hero-about-arthur .lead,
.hero-about-arthur .body-copy {
    max-width: 40rem;
}

.hero-copy h1,
.section-heading h2,
.cta-card h2 {
    margin: 0 0 24px;
    font-weight: 850;
    line-height: 0.9;
    letter-spacing: 0.018em;
}

.hero-copy h1 {
    max-width: none;
    font-size: clamp(3.8rem, 8vw, 7.1rem);
    word-spacing: 0.05em;
    text-transform: none;
}

.lead {
    max-width: 42rem;
    margin: 0 0 28px;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 550;
    line-height: 1.45;
}

.body-copy,
.section p,
.info-card p,
.offer-card p,
.prose-content {
    max-width: var(--text-width);
    color: var(--text);
    font-size: 1.03rem;
}

.body-copy + .body-copy {
    margin-top: 18px;
}

.offerings-story-intro {
    margin-bottom: 42px;
}

.page-illustration {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(220px, 320px);
    gap: 18px;
    align-items: end;
    margin: 0 0 34px;
}

.page-illustration__art {
    position: relative;
    min-height: 152px;
    border: var(--border);
    background: #fffdf8;
    overflow: hidden;
}

.page-illustration__art::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 2px dashed rgba(0, 0, 0, 0.28);
}

.page-illustration__shape {
    position: absolute;
    display: block;
}

.page-illustration__shape--block {
    left: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border: var(--border);
    background: rgba(var(--yellow-rgb), 0.72);
}

.page-illustration__shape--ring {
    top: 18px;
    right: 18px;
    width: 72px;
    height: 72px;
    border: var(--border);
    border-radius: 999px;
    background: rgba(var(--depth-rgb), 0.12);
}

.page-illustration__shape--bar {
    top: 52px;
    left: 72px;
    width: 104px;
    height: 22px;
    border: var(--border);
    background: rgba(var(--cyan-rgb), 0.82);
}

.page-illustration__caption {
    display: grid;
    gap: 10px;
}

.page-illustration__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: var(--border);
    background: var(--surface);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-illustration__caption p {
    max-width: 26rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.page-illustration--quest .page-illustration__art {
    background: linear-gradient(135deg, rgba(var(--yellow-rgb), 0.26), rgba(var(--depth-rgb), 0.14));
}

.page-illustration--framework .page-illustration__shape--ring,
.page-illustration--method .page-illustration__shape--ring {
    background: rgba(var(--cyan-rgb), 0.18);
}

.page-illustration--contact .page-illustration__shape--bar {
    background: rgba(var(--depth-rgb), 0.9);
}

.hero-panel,
.info-card,
.offer-card,
.cta-card {
    border: var(--border);
    background: #fffdf8;
    padding: 34px 30px;
}

.hero-image-frame,
.hero-panel {
    display: grid;
    border: var(--border);
    background: #fffdf8;
}

.hero-side-stack {
    display: grid;
    gap: 24px;
    align-self: start;
    margin-left: 44px;
}

.hero-image-frame-top {
    margin: 22px 0 30px;
    width: 100%;
    max-width: none;
    justify-self: start;
}

.hero-image-frame {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.02);
}

.hero-panel {
    gap: 18px;
    align-self: start;
    align-content: end;
    padding: 28px 24px;
    box-shadow: 10px 10px 0 var(--line);
}

.hero-panel-hitm {
    background: var(--cyan);
    color: #fff;
}

.hero-panel-jba {
    padding: 22px 20px;
    background: rgba(var(--yellow-rgb), 0.26);
    color: #000;
    box-shadow: 6px 6px 0 var(--line);
}

.hero-panel-jba h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    line-height: 0.98;
}

.hero-panel-jba p:last-child {
    font-size: 0.96rem;
    line-height: 1.45;
}

.hero-home .hero-copy {
    padding-right: 44px;
    border-right: var(--border);
}

.hero-panel h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 0.94;
    letter-spacing: 0.015em;
    text-transform: none;
}

.button,
.kg-button-card,
.kg-btn,
.kg-btn-accent,
.kg-product-card-button,
.kg-product-card-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border: var(--border);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.button:hover,
.kg-button-card:hover,
.kg-btn:hover,
.kg-btn-accent:hover,
.kg-product-card-button:hover,
.kg-product-card-btn-accent:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--line);
}

.button-primary,
.kg-btn,
.kg-btn-accent,
.kg-product-card-btn-accent {
    background: var(--depth);
    color: #fff;
}

.button-secondary,
.kg-button-card,
.kg-product-card-button {
    background: rgba(var(--yellow-rgb), 0.92);
    color: #000;
}

.text-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 18px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.text-link::after {
    content: "→";
}

.section {
    padding-top: 92px;
    padding-bottom: 92px;
    background: var(--surface);
}

.section-emphasis {
    background: rgba(var(--yellow-rgb), 0.18);
}

.section-story {
    background: var(--surface-alt);
}

.section-cta {
    background: var(--cyan);
    color: #fff;
}

.section-heading {
    max-width: 60rem;
    margin-bottom: 40px;
}

.section-actions {
    display: flex;
    margin-top: 24px;
}

.section-actions-end {
    justify-content: flex-end;
}

.section-heading--action {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.section-heading__copy {
    max-width: 60rem;
}

.section-heading__action {
    justify-self: end;
    align-self: start;
    margin-top: 6px;
}

.section-heading h2,
.cta-card h2 {
    font-size: clamp(2.3rem, 4.8vw, 4.4rem);
    text-transform: none;
}

.content-grid,
.card-grid {
    display: grid;
    gap: 0;
}

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

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.five-stack .offer-card:last-child {
    grid-column: 1 / -1;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 44px;
    align-items: start;
}

.side-stack {
    display: grid;
    gap: 0;
}

.info-card h3,
.offer-card h3 {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 820;
    line-height: 1.02;
    letter-spacing: 0.012em;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3::before,
.offer-card h3::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
}

.info-card h3::before {
    background: rgba(var(--depth-rgb), 0.18);
    border-radius: 50%;
}

.offer-card h3::before {
    background: rgba(var(--yellow-rgb), 0.56);
}

.bullet-list {
    margin: 0;
    padding-left: 1.1rem;
}

.number-list {
    margin: 0;
    padding-left: 1.2rem;
}

.bullet-list li + li {
    margin-top: 10px;
}

.number-list li + li {
    margin-top: 10px;
}

.narrow {
    max-width: 42rem;
}

.section-closing {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 42rem;
    margin-top: 24px;
    padding: 0 0 0 16px;
    border: 0;
    border-left: 8px solid var(--depth);
    background: transparent;
    font-weight: 800;
    line-height: 1.45;
}

.section-closing--bare {
    padding: 0 0 0 16px;
}

.section-closing-end,
.text-link-end {
    margin-left: auto;
}

.cta-card {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
    align-items: start;
}

.section-cta .cta-card p,
.section-cta .cta-card h2 {
    max-width: none;
}

.section-cta .cta-card h2,
.section-cta .cta-card > p:not(.section-label) {
    color: #fff;
}

.section-cta .cta-card > .section-label {
    color: #fff;
}

.section-cta .cta-card > .section-label,
.section-cta .cta-card > h2,
.section-cta .cta-card > p:not(.section-label) {
    grid-column: 1 / -1;
}

.section-cta .hero-actions {
    grid-column: 2;
    justify-self: end;
}

.page-template-labs .section-cta,
.page-template-offerings .section-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(24px, calc((100vw - var(--content-width)) / 2));
    padding-right: max(24px, calc((100vw - var(--content-width)) / 2));
}

.prose-content > *:first-child {
    margin-top: 0;
}

.section-cms {
    background: var(--surface);
    border-top: 0;
}

.cms-page-content {
    max-width: none;
}

.cms-page-content > * {
    max-width: var(--text-width);
}

.cms-page-content > .section,
.cms-page-content > .section-emphasis,
.cms-page-content > .section-cta {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.cms-page-content > .section-emphasis {
    padding-left: clamp(20px, 2.8vw, 40px);
}

.cms-page-content > .section:first-child,
.cms-page-content > .section-emphasis:first-child,
.cms-page-content > .section-cta:first-child {
    border-top: 0;
}

.cms-page-content .kg-card,
.cms-page-content .kg-html-card,
.cms-page-content .kg-width-wide,
.cms-page-content .kg-width-full,
.cms-page-content .hero-actions,
.cms-page-content .card-grid,
.cms-page-content .content-grid,
.cms-page-content .two-column,
.cms-page-content .three-column,
.cms-page-content .five-stack,
.cms-page-content .section-closing {
    max-width: none;
}

.cms-page-content .kg-card,
.cms-page-content .kg-html-card {
    margin-top: 28px;
    margin-bottom: 28px;
}

.cms-page-content h2,
.cms-page-content h3 {
    margin-top: 48px;
}

.cms-page-content hr {
    margin: 42px 0;
    border: 0;
    border-top: var(--border);
}

.page-feature-image {
    width: 100%;
    margin: 4px 0 32px;
}

.page-feature-image img {
    width: 100%;
    border: var(--border);
    background: #fffdf8;
}

.page-feature-image figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer {
    background: #000;
    color: #fff;
    border-top: var(--border);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    padding: 52px 0 62px;
}

.site-footer__header {
    display: grid;
    gap: 10px;
}

.site-footer__main {
    display: grid;
    gap: 18px;
    max-width: 60rem;
}

.site-footer__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0.015em;
    text-transform: none;
}

.site-footer__copy,
.site-footer__links a {
    color: rgba(255, 255, 255, 0.84);
}

.site-footer__strapline {
    margin: 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.5;
}

.site-footer__linkrows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    align-items: start;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
}

.site-footer__linkrows .site-footer__links:last-child {
    justify-self: end;
    justify-content: flex-end;
}

.site-footer__links a {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    font-weight: 800;
    justify-self: end;
    text-align: right;
}

.site-footer__meta a {
    color: #fff;
}

.micro-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.kg-width-wide,
.kg-width-full {
    width: 100%;
}

.kg-width-wide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-gallery-container,
.kg-gallery-row {
    display: flex;
    gap: 12px;
}

.kg-gallery-container {
    flex-direction: column;
    margin: 24px 0;
}

.kg-gallery-image {
    display: block;
    width: 100%;
    height: auto;
    border: var(--border);
}

.kg-bookmark-card,
.kg-callout-card,
.kg-toggle-card,
.kg-audio-card,
.kg-video-card,
.kg-product-card,
.kg-before-after-card,
.kg-file-card,
.kg-nft-card {
    display: block;
    margin: 24px 0;
    border: var(--border);
    background: #fffdf8;
    overflow: hidden;
}

.kg-bookmark-container,
.kg-callout-card,
.kg-toggle-card,
.kg-audio-player-container,
.kg-video-player-container,
.kg-product-card-container,
.kg-file-card-container,
.kg-nft-card-container {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.kg-bookmark-content,
.kg-file-card-contents,
.kg-nft-metadata,
.kg-nft-header {
    display: grid;
    gap: 8px;
}

.kg-bookmark-title,
.kg-audio-title,
.kg-product-card-title,
.kg-file-card-title,
.kg-nft-title,
.kg-toggle-heading-text {
    color: var(--text);
    font-weight: 700;
}

.kg-bookmark-description,
.kg-callout-text,
.kg-product-card-description,
.kg-file-card-caption,
.kg-nft-description {
    color: var(--text);
}

.kg-bookmark-metadata,
.kg-file-card-filesize,
.kg-file-card-filename,
.kg-audio-duration,
.kg-audio-current-time,
.kg-audio-time,
.kg-video-duration,
.kg-video-current-time,
.kg-video-time,
.kg-product-card-rating,
.kg-nft-creator {
    color: var(--muted);
    font-size: 0.9rem;
}

.kg-bookmark-icon,
.kg-bookmark-thumbnail,
.kg-audio-thumbnail,
.kg-video-container,
.kg-product-card-image,
.kg-file-card-medium,
.kg-file-card-small,
.kg-before-after-card-image-before,
.kg-before-after-card-image-after,
.kg-nft-image {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.kg-bookmark-thumbnail img,
.kg-audio-thumbnail img,
.kg-product-card-image img,
.kg-file-card-medium img,
.kg-file-card-small img,
.kg-before-after-card-image-before img,
.kg-before-after-card-image-after img,
.kg-nft-image img {
    width: 100%;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
    font-weight: 600;
}

.kg-callout-card-grey,
.kg-callout-card-white,
.kg-callout-card-blue,
.kg-callout-card-green,
.kg-callout-card-yellow,
.kg-callout-card-red,
.kg-callout-card-pink,
.kg-callout-card-purple,
.kg-callout-card-accent {
    border-left: 12px solid var(--depth);
}

.kg-callout-emoji,
.kg-video-large-play-icon,
.kg-video-play-icon,
.kg-video-pause-icon,
.kg-video-mute-icon,
.kg-video-unmute-icon,
.kg-audio-play-icon,
.kg-audio-pause-icon,
.kg-audio-mute-icon,
.kg-audio-unmute-icon,
.kg-toggle-card-icon,
.kg-nft-opensea-logo {
    display: inline-flex;
}

.kg-toggle-content,
.kg-video-overlay,
.kg-video-hide,
.kg-product-card-title-container,
.kg-audio-thumbnail.placeholder {
    display: block;
}

.kg-audio-player,
.kg-video-player,
.kg-audio-seek-slider,
.kg-audio-volume-slider,
.kg-video-seek-slider,
.kg-video-volume-slider,
.kg-video-playback-rate,
.kg-audio-playback-rate {
    width: 100%;
}

.kg-button-card.kg-align-left {
    justify-content: flex-start;
}

.kg-button-card.kg-align-center {
    justify-content: center;
}

.kg-product-card-rating-active,
.kg-product-card-rating-star {
    color: var(--yellow);
}

.kg-blockquote-alt {
    margin: 24px 0;
    padding: 18px 20px;
    border: var(--border);
    border-left: 12px solid var(--yellow);
    background: rgba(var(--yellow-rgb), 0.14);
    font-family: var(--display-font);
    font-size: 1.18rem;
    font-weight: 620;
}

.two-column,
.three-column,
.five-stack,
.side-stack {
    border-top: var(--border);
    border-left: var(--border);
}

.content-grid.two-column > * {
    padding: 30px;
    border-right: var(--border);
    border-bottom: var(--border);
    background: rgba(255, 253, 248, 0.88);
}

.info-card,
.offer-card {
    min-height: 100%;
    border: 0;
    border-right: var(--border);
    border-bottom: var(--border);
}

.lab-card {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lab-card--icon {
    padding-right: 156px;
}

.formats-note {
    max-width: 40rem;
    margin: 12px 0 28px;
}

.formats-stack {
    margin-top: 0;
}

.lab-card__hint {
    margin: 20px 0 0;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lab-card__icon {
    position: absolute;
    top: 22px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border: var(--border);
    background: rgba(255, 253, 248, 0.88);
    font-size: 3.2rem;
    line-height: 1;
}

.framework-map__wide {
    grid-column: 1 / -1;
}

.lab-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--line);
    position: relative;
    z-index: 1;
}

.lab-card-applied {
    background: rgba(var(--cyan-rgb), 0.08);
}

.lab-card-quest {
    background:
        linear-gradient(135deg, rgba(var(--yellow-rgb), 0.4), rgba(var(--depth-rgb), 0.16));
}

.lab-card-quest .section-label {
    background: var(--depth);
    color: #fff;
}

.warn-card {
    background: rgba(255, 253, 248, 0.94);
}

.warn-card--full {
    width: 100%;
    max-width: none;
    margin-top: 28px;
    background: rgba(var(--cyan-rgb), 0.12);
}

.warn-card--full .section-label {
    background: rgba(255, 253, 248, 0.92);
}

.applied-grid .info-card {
    background: rgba(255, 253, 248, 0.92);
}

.quest-hero {
    background:
        linear-gradient(180deg, rgba(var(--cyan-rgb), 0.11), rgba(255, 255, 255, 0));
}

.quest-intro {
    background: var(--surface-alt);
}

.quest-sheet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: var(--border);
    border-left: var(--border);
}

.quest-sheet__item {
    padding: 30px;
    border-right: var(--border);
    border-bottom: var(--border);
    background: #fffdf8;
}

.quest-sheet__item:nth-child(2) {
    background: rgba(var(--yellow-rgb), 0.26);
}

.quest-sheet__item:nth-child(3) {
    background: rgba(var(--cyan-rgb), 0.14);
}

.quest-sheet__label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border: var(--border);
    background: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quest-panels .quest-panel:nth-child(1) {
    background: rgba(var(--cyan-rgb), 0.14);
}

.quest-panels .quest-panel:nth-child(2) {
    background: rgba(255, 253, 248, 0.92);
}

.quest-panels .quest-panel:nth-child(3) {
    background: rgba(var(--yellow-rgb), 0.3);
}

.quest-cta {
    background:
        linear-gradient(180deg, rgba(var(--depth-rgb), 0.96), rgba(var(--cyan-rgb), 0.92));
    color: #fff;
}

.route-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.route-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--line);
    position: relative;
    z-index: 1;
}

.route-card--blue {
    background: rgba(var(--depth-rgb), 0.12);
}

.route-card--yellow {
    background: rgba(var(--yellow-rgb), 0.28);
}

.route-card--plain {
    background: rgba(255, 253, 248, 0.94);
}

.three-column .info-card,
.five-stack .offer-card {
    background: rgba(255, 253, 248, 0.88);
}

.section-emphasis .info-card,
.section-emphasis .offer-card,
.section-cta .info-card,
.section-cta .offer-card {
    background: rgba(255, 253, 248, 0.86);
}

.section-split > :first-child {
    padding-right: 12px;
}

.section-split > :last-child {
    padding-left: 12px;
}

.contact-page-shell {
    position: relative;
    padding-bottom: calc(var(--contact-dock-reserve) + 32px);
}

.contact-dock-shell {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 18;
    width: min(var(--content-width), calc(100vw - 24px));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    transition: bottom 0.16s ease;
    pointer-events: none;
}

.contact-dock-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: var(--border);
    background: var(--cyan);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 8px 8px 0 var(--line);
    pointer-events: auto;
    cursor: pointer;
}

.contact-dock-toggle::after {
    content: "↑";
    font-size: 1rem;
    line-height: 1;
}

.contact-dock-shell.is-docked-to-page {
    position: absolute;
    bottom: 18px;
    transform: translateX(-50%);
}

.contact-dock {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.35fr);
    gap: 16px;
    align-items: start;
    padding: 18px 18px 16px;
    border: var(--border);
    background: var(--cyan);
    box-shadow: 10px 10px 0 var(--line);
    pointer-events: auto;
}

.contact-dock-shell.is-open .contact-dock {
    display: grid;
}

.contact-dock-shell.is-open .contact-dock-toggle::after {
    content: "↓";
}

.contact-dock__intro {
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    color: #fff;
}

.contact-dock__intro .section-label {
    background: #fff;
    color: #000;
}

.contact-dock__title {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 820;
    line-height: 0.98;
    letter-spacing: 0.01em;
}

.contact-dock__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.45;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field--message {
    grid-column: 1 / -1;
}

.contact-field span {
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: var(--border);
    border-radius: 0;
    background: #fff;
    color: #000;
    font: inherit;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 3px solid var(--depth);
    outline-offset: 2px;
}

.contact-field textarea {
    min-height: 84px;
    max-height: 140px;
}

.contact-dock__actions {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    justify-items: end;
}

.contact-dock__submit {
    min-height: 46px;
    background: var(--yellow);
    color: #000;
}

.contact-dock__note {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    line-height: 1.35;
}

.contact-dock__note.is-confirmed {
    color: #fff;
}

.contact-success-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}

.contact-success-modal[aria-hidden="false"] {
    display: flex;
}

.contact-success-modal__panel {
    background: var(--surface);
    border: var(--border);
    box-shadow: 10px 10px 0 var(--line);
    padding: 40px 48px;
    max-width: min(480px, calc(100vw - 32px));
    display: grid;
    gap: 28px;
    text-align: center;
}

.contact-success-modal__message {
    margin: 0;
    color: var(--line);
    font-size: 1.1rem;
    line-height: 1.55;
}

.contact-dock-anchor {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: -1px;
}

@media (max-width: 1080px) {
    .site-header__inner,
    .site-header__language-row,
    .site-footer__inner,
    .hero,
    .section-split,
    .three-column,
    .two-column {
        grid-template-columns: 1fr;
    }

    .site-nav {
        justify-content: flex-end;
    }

    .site-header__subrow {
        margin-top: 16px;
    }

    .site-header__controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: end;
    }

    .site-brand__tag {
        justify-self: start;
    }

    .hero-side-stack {
        margin-top: 28px;
        margin-left: 0;
    }

    .site-brand__name {
        white-space: normal;
    }

    .page-illustration {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-home .hero-copy {
        padding-right: 0;
        padding-bottom: 36px;
        border-right: 0;
        border-bottom: var(--border);
    }

    .hero-about-arthur {
        min-height: clamp(520px, 68vh, 720px);
    }

    .hero-about-arthur__portrait {
        width: min(46vw, 460px);
    }

    .hero-about-arthur .hero-copy {
        max-width: min(48rem, calc(100% - 180px));
        padding-right: clamp(90px, 12vw, 220px);
    }

    .hero-panel {
        box-shadow: 8px 8px 0 var(--line);
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .section-heading--action {
        grid-template-columns: 1fr;
    }

    .section-heading__action {
        justify-self: start;
        margin-top: 0;
    }

    .section-split > :first-child,
    .section-split > :last-child {
        padding-left: 0;
        padding-right: 0;
    }

    .section-cta .hero-actions {
        grid-column: auto;
        justify-self: start;
    }

    .quest-sheet,
    .site-footer__linkrows {
        grid-template-columns: 1fr;
    }

    .site-footer__linkrows .site-footer__links:last-child,
    .site-footer__meta {
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
    }

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

    .contact-dock__intro,
    .contact-field--message,
    .contact-dock__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .site-footer__inner {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header__inner {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header__language-row {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero,
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 76px;
        padding-bottom: 40px;
    }

    .section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .section-emphasis,
    .section-story,
    .section-cta {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .site-brand__name {
        max-width: none;
    }

    .site-header__subrow {
        margin-top: 10px;
    }

    .site-nav__link {
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .site-language-switcher {
        font-size: 0.72rem;
    }

    .hero-about-arthur {
        min-height: 0;
    }

    .hero-about-arthur__portrait {
        position: relative;
        width: 100%;
        min-height: clamp(340px, 72vw, 520px);
        margin: 0 0 28px;
        border: var(--border);
        box-shadow: 10px 10px 0 var(--line);
        background:
            linear-gradient(180deg, rgba(247, 244, 236, 0.08), rgba(247, 244, 236, 0.08)),
            url("../images/arthur.png") center top / cover no-repeat;
    }

    .hero-about-arthur .hero-copy {
        max-width: none;
        padding-right: 0;
    }

    .five-stack {
        grid-template-columns: 1fr;
    }

    .five-stack .offer-card:last-child {
        grid-column: auto;
    }

    .section-closing {
        width: 100%;
    }

    .text-link-end,
    .section-closing-end,
    .section-actions-end {
        margin-left: 0;
    }

    .section-actions,
    .section-actions-end {
        justify-content: flex-start;
    }

    .contact-page-shell {
        padding-bottom: calc(var(--contact-dock-reserve) + 18px);
    }

    .page-illustration__art {
        min-height: 136px;
    }

    .lab-card--icon {
        padding-right: 120px;
    }

    .lab-card__icon {
        width: 72px;
        height: 72px;
        font-size: 2.4rem;
    }

    .contact-dock-shell {
        display: flex;
        flex-direction: column-reverse;
        gap: 8px;
        width: calc(100vw - 16px);
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .contact-dock-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 56px;
        padding: 0 14px;
        border: var(--border);
        background: var(--cyan);
        color: #fff;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        box-shadow: 8px 8px 0 var(--line);
        pointer-events: auto;
    }

    .contact-dock-shell {
        pointer-events: auto;
    }

    .contact-dock-toggle::after {
        content: "↑";
        font-size: 1rem;
        line-height: 1;
    }

    .contact-dock {
        display: none;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        margin-top: 0;
        box-shadow: 8px 8px 0 var(--line);
    }

    .contact-dock-shell.is-open .contact-dock {
        display: grid;
    }

    .contact-dock-shell.is-open .contact-dock-toggle::after {
        content: "↓";
    }

    .contact-dock__intro,
    .contact-dock__actions,
    .contact-field--message {
        grid-column: auto;
    }

    .contact-dock__actions {
        justify-items: stretch;
    }

    .contact-field textarea {
        min-height: 84px;
    }
}
