:root {
    color-scheme: dark only;
    --bg: #0b0d10; --panel: #1b2027; --surface: #20262e; --text: #f4f7f8;
    --muted: #b7c0c5; --soft: #89969e; --line: rgba(244, 247, 248, 0.14);
    --line-strong: rgba(244, 247, 248, 0.24); --teal: #64ffda; --cyan: #80cbc4;
    --amber: #ffca28; --green: #81c784; --coral: #ff8a65;
    --emerald: #10b981; --emerald-deep: #059669;
    --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.32), 0 3px 6px rgba(0, 0, 0, 0.24);
    --shadow-8: 0 8px 16px rgba(0, 0, 0, 0.36), 0 12px 28px rgba(0, 0, 0, 0.32);
    --shadow-16: 0 18px 34px rgba(0, 0, 0, 0.44), 0 28px 72px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0; min-width: 320px; color: var(--text);
    background: var(--bg);
    font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6;
}
body:has(.project-modal:target) { overflow: hidden; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:where(h1, h2, h3, p) { margin-top: 0; }
h1:focus { outline: none; }

.landing-shell {
    overflow: hidden;
}
.hero {
    min-height: 80vh; position: relative; overflow: hidden; padding: 0;
}
.button, .project-modal__close {
    display: flex; align-items: center;
}
.hero__grid {
    position: relative; width: 100vw; min-height: 80vh; margin-left: calc(50% - 50vw);
}
.hero__copy {
    position: absolute; z-index: 2; top: 50%; left: max(24px, calc((100vw - 1180px) / 2));
    max-width: 640px; padding: 0; transform: translateY(-50%);
}
.hero__logo {
    display: block; width: 112px; height: 112px; margin-bottom: 24px;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.42));
}
.eyebrow {
    margin-bottom: 14px; color: var(--amber); font-size: 0.82rem; font-weight: 700;
    line-height: 1.35; text-transform: uppercase;
}
.hero h1 { margin-bottom: 24px; color: var(--text); font-size: 5rem; line-height: 0.95; letter-spacing: 0; }
.hero h1 span { display: block; }
.hero h1 span:not(:first-child) { color: var(--cyan); }
.hero__lead { max-width: 590px; margin-bottom: 30px; color: var(--muted); font-size: 1.18rem; }
.button {
    justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px;
    font-weight: 700; text-decoration: none; box-shadow: var(--shadow-2);
}
.button--primary { background: var(--teal); color: #07100d; }
.button--primary:hover, .button--primary:focus-visible {
    background: #8bffe7; outline: 2px solid rgba(255, 202, 40, 0.7); outline-offset: 4px;
}
.hero__visual { position: relative; min-width: 0; width: 100vw; height: 80vh; padding-top: 0; }
.hero__visual::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 13, 16, 0.92) 0%, rgba(11, 13, 16, 0.72) 34%, rgba(11, 13, 16, 0.2) 70%, rgba(11, 13, 16, 0.34) 100%);
    pointer-events: none;
}
.communications-map { display: block; width: 100vw; height: 80vh; margin: 0; }

.section {
    width: 100%; padding: 86px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line);
}
.section__intro { max-width: 760px; margin-bottom: 34px; }
.section h2 {
    margin-bottom: 16px; color: var(--text); font-size: 2.65rem; line-height: 1.08; letter-spacing: 0;
}
.section__intro p:last-child { color: var(--muted); font-size: 1.04rem; }
.work { background: var(--panel); }
.project-carousel {
    display: grid; grid-auto-columns: minmax(320px, 385px); grid-auto-flow: column; gap: 18px;
    margin: 0 -24px; padding: 8px 24px 22px; overflow-x: auto;
    overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
    scrollbar-color: var(--teal) rgba(255, 255, 255, 0.08);
}
.project-card, .service-card {
    border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-2);
}
.project-card {
    min-height: 292px; display: flex; flex-direction: column; justify-content: space-between;
    scroll-snap-align: start; padding: 24px; color: var(--text); text-decoration: none;
}
.project-card:hover, .project-card:focus-visible {
    transform: scale(1.015); border-color: rgba(100, 255, 218, 0.55);
    background: #222a32; outline: none; box-shadow: var(--shadow-8);
}
.project-card__type, .project-card__meta { color: var(--cyan); font-size: 0.88rem; font-weight: 700; }
.project-card h3, .service-card h3 {
    margin: 20px 0 12px; color: var(--text); font-size: 1.45rem; line-height: 1.2; letter-spacing: 0;
}
.project-card p, .service-card p { color: var(--muted); }
.project-card__meta { color: var(--amber); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 210px; padding: 24px; }
.service-card__icon {
    display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(100, 255, 218, 0.32);
    border-radius: 8px; background: rgba(100, 255, 218, 0.08); color: var(--teal); box-shadow: var(--shadow-2);
}
.service-card__icon svg {
    width: 28px; height: 28px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card:hover .service-card__icon svg {
    transform: scale(1.1) rotate(2deg);
}
.service-card__icon .stroke-primary {
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-card__icon .fill-secondary {
    fill: currentColor; stroke: none; opacity: 0.18;
    transition: opacity 0.3s ease;
}
.service-card:hover .service-card__icon .fill-secondary {
    opacity: 0.35;
}
.service-card:nth-child(2n) { border-color: rgba(128, 203, 196, 0.28); }
.service-card:nth-child(3n) { border-color: rgba(255, 202, 40, 0.26); }
.service-card:nth-child(2n) .service-card__icon {
    border-color: rgba(128, 203, 196, 0.36); background: rgba(128, 203, 196, 0.08); color: var(--cyan);
}
.service-card:nth-child(3n) .service-card__icon {
    border-color: rgba(255, 202, 40, 0.38); background: rgba(255, 202, 40, 0.08); color: var(--amber);
}

.team {
    background: var(--surface);
}
.team__intro { margin-bottom: 22px; }
.team__intro h2 { margin-bottom: 0; }
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); gap: 18px;
}
.team-card { width: min(360px, 100%); }
.team-card__surface {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center;
    min-height: 164px; padding: 20px; border: 1px solid var(--line); border-radius: 8px;
    background: #20262e; box-shadow: var(--shadow-8);
}
.team-card__photo {
    display: block; width: 96px; height: 96px; border: 1px solid var(--line-strong); border-radius: 50%;
    background: var(--panel); object-fit: cover; box-shadow: var(--shadow-2);
}
.team-card__copy { display: grid; gap: 6px; }
.team-card__name { color: var(--text); font-size: 1.16rem; font-weight: 800; line-height: 1.1; }
.team-card__role {
    color: var(--amber); font-size: 0.68rem; font-weight: 800; line-height: 1.25; text-transform: uppercase;
}
.team-card__education { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

.project-modal {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
    visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 160ms ease, visibility 160ms ease;
}
.project-modal:target { visibility: visible; opacity: 1; pointer-events: auto; }
.project-modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.74); backdrop-filter: blur(8px); }
.project-modal__card {
    position: relative; width: min(680px, 100%); max-height: min(78vh, 760px); overflow: auto;
    padding: 32px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-16);
}
.project-modal__card h2 { margin-bottom: 16px; font-size: 2.05rem; line-height: 1.15; letter-spacing: 0; }
.project-modal__card p, .project-modal__card li { color: var(--muted); }
.project-modal__card ul { display: grid; gap: 10px; margin: 20px 0 0; padding-left: 1.2rem; }
.project-modal__close {
    float: right; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.09); color: var(--text); font-weight: 700; text-decoration: none;
}
.project-modal__close:hover, .project-modal__close:focus-visible { background: var(--amber); color: #11100a; outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #ff8a80; }
.blazor-error-boundary { background: #b32121; color: white; padding: 1rem; }
.blazor-error-boundary::after { content: "An error has occurred."; }
.darker-border-checkbox.form-check-input { border-color: #929292; }
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--soft); text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder { text-align: start; }

@media (prefers-reduced-motion: no-preference) {
    .project-card, .button {
        transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
    }
}

@media (max-width: 1060px) {
    .hero__copy { max-width: 760px; }
    .hero h1 { font-size: 4rem; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body { font-size: 15px; }
    .hero { min-height: 80vh; padding: 0; }
    .hero__copy { left: 18px; right: 18px; max-width: none; }
    .hero__logo { width: 84px; height: 84px; margin-bottom: 18px; }
    .hero h1 { font-size: 3rem; line-height: 1; }
    .hero__lead { font-size: 1.05rem; }
    .hero__visual { height: 80vh; padding-top: 0; }
    .communications-map { height: 80vh; }
    .section { padding: 64px 18px; }
    .section h2 { font-size: 2.1rem; }
    .project-carousel { grid-auto-columns: minmax(286px, 82vw); gap: 14px; margin: 0 -18px; padding-inline: 18px; }
    .project-card { min-height: 270px; padding: 20px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .project-modal { padding: 14px; }
    .project-modal__card { max-height: 84vh; padding: 24px; }
    .project-modal__card h2 { font-size: 1.75rem; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 2.55rem; }
    .button { width: 100%; }
    .team { padding-inline: 10px; }
    .team-card__surface { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ============================================================
   Kruseio design system (used by post-hero sections + sub-pages)
   ============================================================ */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}
.site-header__inner {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.site-header__brand img {
    display: block;
    width: 40px;
    height: 40px;
}
.site-header__back {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.site-header__back:hover, .site-header__back:focus-visible {
    background: var(--surface);
    outline: none;
}

.k-section {
    padding: 64px max(24px, calc((100vw - 1180px) / 2));
}
.k-section--lg { padding-block: 96px; }
.k-section--alt { background: var(--panel); }
.k-container { max-width: 1180px; margin: 0 auto; }
.k-container--md { max-width: 880px; }
.k-container--sm { max-width: 720px; }

.k-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}
.k-section__head h2 {
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
}
.k-section__head p {
    font-size: 1.18rem;
    color: var(--muted);
}

.k-page-hero {
    padding: 64px max(24px, calc((100vw - 1180px) / 2)) 32px;
    text-align: center;
}
.k-page-hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
}
.k-page-hero p {
    font-size: 1.18rem;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

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

.k-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-2);
}
.k-card--lg { padding: 32px; }
.k-card--accent {
    background: rgba(128, 203, 196, 0.12);
    border-color: rgba(128, 203, 196, 0.32);
}
.k-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.25;
}
.k-card__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.k-card__icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 10px;
    margin-bottom: 18px;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}
.k-card__icon--purple { background: rgba(168, 85, 247, 0.18);  color: #c084fc; }
.k-card__icon--green  { background: rgba(34, 197, 94, 0.18);   color: #4ade80; }
.k-card__icon--orange { background: rgba(249, 115, 22, 0.18);  color: #fb923c; }

.k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--emerald-deep);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}
.k-btn:hover:not(:disabled) { filter: brightness(1.1); }
.k-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.k-btn--lg { min-height: 54px; padding: 0 36px; font-size: 1.05rem; }
.k-btn--block { width: 100%; }
.k-btn--ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.k-btn--ghost:hover:not(:disabled) { background: var(--surface); }

.k-grad-text {
    background: linear-gradient(90deg, #3b82f6, #a855f7, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.k-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.k-link:hover, .k-link:focus-visible { color: #93c5fd; outline: none; }

.k-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 36px;
    border-block: 1px solid var(--line);
}
.k-marquee__label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--soft);
    margin-bottom: 24px;
}
.k-marquee__viewport {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.k-marquee__track {
    display: flex;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
    min-width: 100%;
    animation: kmarquee 35s linear infinite;
    opacity: 0.6;
    will-change: transform;
}
.k-marquee__item {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft);
    white-space: nowrap;
}
@keyframes kmarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.profile-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-card__avatar {
    width: 128px; height: 128px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    flex-shrink: 0;
}
.profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-card__body { flex: 1 1 280px; }
.profile-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}
.profile-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}
.profile-card__role {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 0 16px;
}
.profile-card__social { display: flex; gap: 8px; }
.profile-card__social a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: filter 160ms ease;
}
.profile-card__social a:hover { filter: brightness(1.15); }
.profile-card__social a.github { background: #1f2937; }
.profile-card__social a.linkedin { background: #0a66c2; }

.job-list { display: grid; gap: 32px; }
.job-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.job-card__head {
    padding: 28px 28px 24px;
    border-bottom: 1px solid var(--line);
}
.job-card__title { font-size: 1.55rem; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.job-card__meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    color: var(--muted); font-size: 0.9rem;
}
.job-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card__body { padding: 28px; display: grid; gap: 24px; }
.job-card__body h3 {
    font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0 0 12px;
}
.job-card__role-copy { color: var(--muted); line-height: 1.7; }
.job-card__role-copy p + p { margin-top: 16px; }
.job-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.job-card__list li {
    display: flex; align-items: flex-start; gap: 8px; color: var(--muted); line-height: 1.55;
}
.job-card__list li::before { content: "•"; color: #60a5fa; flex-shrink: 0; }
.job-card__list--soft li::before { color: var(--soft); }
.job-card__footer { padding-top: 20px; border-top: 1px solid var(--line); }

.careers-openings,
.careers-application {
    max-width: 760px;
}
.careers-empty {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}
.careers-application__intro { display: grid; gap: 22px; }
.careers-application__title {
    font-size: 1.35rem;
    color: var(--text);
    margin: 0 0 16px;
}
.careers-why__heading {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}
.careers-why__body {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.steps-list { display: grid; gap: 14px; }
.steps-list > div { color: var(--muted); font-size: 0.95rem; }
.steps-list strong { color: var(--text); font-weight: 600; margin-right: 6px; }

.faq-list { display: grid; gap: 18px; }
.faq-list > div > .faq-q { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.faq-list > div > .faq-a { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.k-prose { display: grid; gap: 16px; color: var(--muted); line-height: 1.7; font-size: 1.02rem; }
.k-prose p { margin: 0; }
.k-prose--lg { font-size: 1.08rem; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: 2.4rem; margin-bottom: 16px; color: var(--text); line-height: 1.1; }
.cta-band p { font-size: 1.15rem; color: var(--muted); margin-bottom: 24px; max-width: 640px; margin-inline: auto; }

.cal-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    margin-bottom: 16px;
}
.cal-legend__chips { display: flex; gap: 18px; flex-wrap: wrap; }
.cal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}
.cal-chip::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
}
.cal-chip--available::before { background: var(--emerald-deep); }
.cal-chip--booked::before { background: #1b2027; border: 1px solid var(--line-strong); }
.cal-chip--unavailable::before { background: transparent; border: 1px dashed var(--line-strong); }
.cal-legend__tz { font-size: 0.8rem; color: var(--soft); }

.cal-scroll {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 14px;
}
.cal-grid {
    display: grid;
    grid-template-columns: 72px repeat(7, minmax(88px, 1fr));
    gap: 6px;
    min-width: 740px;
}
.cal-cell {
    font: inherit;
    background: var(--panel);
    border: 0;
    border-radius: 8px;
    padding: 10px 6px;
    min-height: 58px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
}
.cal-cell--corner { background: transparent; }
.cal-cell--header {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    padding: 14px 6px;
    gap: 6px;
}
.cal-day__dow {
    font-size: 0.72rem;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.cal-day__date {
    background: rgba(128, 203, 196, 0.14);
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}
.cal-cell--today { box-shadow: inset 0 0 0 1px var(--teal); }
.cal-cell--today .cal-day__date { background: var(--teal); color: #07100d; }
.cal-cell--time {
    background: var(--surface);
    color: var(--soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cal-slot {
    gap: 2px;
    padding: 8px 6px;
}
.cal-slot__label { font-size: 0.7rem; line-height: 1; }
.cal-slot__time { font-size: 0.82rem; font-weight: 700; line-height: 1.1; }
.cal-slot--available {
    background: var(--emerald-deep);
    color: #fff;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.cal-slot--available:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
    z-index: 1;
}
.cal-slot--available:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}
.cal-slot--available.is-selected,
.cal-slot--available.is-selected:hover {
    background: var(--teal);
    color: #07100d;
    filter: none;
    transform: none;
    box-shadow: inset 0 0 0 2px rgba(7, 16, 13, 0.30);
}
.cal-slot--booked {
    background: var(--panel);
    color: var(--soft);
}
.cal-slot--unavailable {
    background: var(--panel);
    color: var(--soft);
    opacity: 0.4;
}

.cal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    padding: 24px;
    color: var(--muted);
    font-size: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}
.cal-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    border-top-color: var(--teal);
    animation: cal-spin 0.8s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }

.k-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    animation: kmodal-fade 160ms ease-out;
}
.k-modal__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    border: 0;
    padding: 0;
    cursor: pointer;
}
.k-modal__card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: var(--shadow-16);
    width: min(560px, 100%);
    max-height: min(85vh, 800px);
    overflow: auto;
    padding: 32px;
    animation: kmodal-rise 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.k-modal__card--wide { width: min(760px, 100%); }
.k-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font: inherit;
    transition: background 120ms, color 120ms, border-color 120ms;
}
.k-modal__close:hover, .k-modal__close:focus-visible {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line-strong);
    outline: none;
}
.k-modal__head { margin-bottom: 22px; padding-right: 44px; }
.k-modal__head--center { text-align: center; padding-right: 0; }
.k-modal__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}
.k-modal__icon--success { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.k-modal__icon--warn    { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.k-modal__title { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 0 0 6px; line-height: 1.2; }
.k-modal__title--lg { font-size: 1.6rem; }
.k-modal__subtitle { color: var(--muted); font-size: 0.95rem; margin: 0; }

.k-modal__info {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.k-modal__info--warn {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.32);
}
.k-modal__info--warn p { margin: 0; color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.k-modal__info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text);
}
.k-modal__info-row + .k-modal__info-row { margin-top: 10px; }
.k-modal__info-row > svg { color: var(--soft); flex-shrink: 0; }
.k-modal__info-row .muted { color: var(--muted); font-weight: 400; }
.k-modal__body-text {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 16px;
}
.k-modal__divider { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.k-modal__list-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.98rem;
    margin: 0 0 8px;
}
.k-modal__list {
    margin: 0 0 18px;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.k-modal__list li { margin: 0; }
body:has(.k-modal) { overflow: hidden; }
@keyframes kmodal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes kmodal-rise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
    .k-modal, .k-modal__card { animation: none; }
}

.k-form { display: grid; gap: 16px; }
.k-form .k-field { display: grid; gap: 6px; }
.k-form label {
    font-size: 0.9rem; font-weight: 500; color: var(--text);
}
.k-form input, .k-form textarea, .k-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.k-form input:focus, .k-form textarea:focus, .k-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}
.k-form textarea { min-height: 110px; resize: vertical; }
.k-error { color: #ff8a80; font-size: 0.9rem; }
.k-success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-8);
}
.auth-card__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    display: grid; place-items: center;
    margin: 0 auto 16px;
}
.auth-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 24px; }

.admin-shell { padding: 32px max(24px, calc((100vw - 1180px) / 2)); }
.admin-shell__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.admin-shell__head h1 { font-size: 2rem; margin: 0; color: var(--text); }
.admin-tabs {
    display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.admin-tabs button {
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.admin-tabs button.is-active {
    border-color: var(--cyan);
    background: rgba(128, 203, 196, 0.14);
    color: var(--text);
}

.admin-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-search {
    flex: 1 1 320px;
    position: relative;
}
.admin-search > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft);
    pointer-events: none;
}
.admin-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
}
.admin-search input::placeholder { color: var(--soft); }
.admin-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}
.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filter button {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-filter button:hover { background: var(--panel); color: var(--text); }
.admin-filter button.is-active {
    border-color: var(--cyan);
    background: rgba(128, 203, 196, 0.14);
    color: var(--text);
}
.admin-filter__count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.status-pill--unconfirmed {
    background: rgba(255, 202, 40, 0.18);
    color: var(--amber);
    border: 1px solid rgba(255, 202, 40, 0.32);
}
.status-pill--confirmed {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.admin-links {
    display: grid;
    gap: 4px;
}
.k-btn--sm {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.82rem;
}
.k-btn--danger {
    background: #dc2626;
}
.k-btn--danger:hover:not(:disabled) { filter: brightness(1.12); }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    vertical-align: top;
}
.admin-table th {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--soft);
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.home-hero-wordmark {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

@media (max-width: 880px) {
    .k-grid--2, .k-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .site-header__inner { width: calc(100% - 36px); gap: 24px; }
    .k-section { padding: 56px 18px; }
    .k-section--lg { padding-block: 72px; }
    .k-page-hero { padding-inline: 18px; padding-top: 48px; }
    .k-page-hero h1 { font-size: 2.3rem; }
    .k-section__head h2, .cta-band h2 { font-size: 2rem; }
    .home-hero-wordmark { font-size: 3.2rem; }
    .admin-shell { padding-inline: 18px; }
    .admin-table { font-size: 0.9rem; }
    .admin-table th, .admin-table td { padding: 10px 12px; }
}
