:root {
    --navy-950: #020812;
    --navy-900: #05101f;
    --navy-850: #071629;
    --navy-800: #0a1b33;
    --navy-700: #10284a;
    --blue-500: #3e67ff;
    --blue-450: #4776ff;
    --blue-400: #4d7dff;
    --blue-300: #62a1ff;
    --ink: #0a1020;
    --text: #10172a;
    --muted: #5e6678;
    --soft: #f5f7fb;
    --line: #e4e9f2;
    --white: #ffffff;
    --max: 1220px;
    --radius: 10px;
    --radius-lg: 20px;
    --shadow: 0 18px 50px rgba(9, 24, 54, .10);
    --shadow-strong: 0 28px 90px rgba(3, 12, 30, .22);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--white);
    font-synthesis: none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font: inherit;
}

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

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

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.1;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.25rem);
}

h2 {
    font-size: clamp(2.05rem, 4vw, 3.5rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--muted);
}

.site-frame {
    min-height: 100vh;
    overflow: clip;
}

.content-shell,
.nav-shell,
.footer-shell,
.footer-bottom,
.home-hero-shell,
.home-about-shell,
.contact-band-shell {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: 78px;
    display: flex;
    align-items: center;
    background: rgba(2, 8, 18, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.brand img {
    width: 174px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    color: rgba(255, 255, 255, .80);
    font-size: .93rem;
    font-weight: 680;
}

.main-nav a {
    position: relative;
    padding: 28px 0 25px;
    transition: color .18s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--blue-300), var(--blue-500));
    transition: transform .18s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-button,
.button-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    color: var(--white);
    background: linear-gradient(135deg, #4979ff, #3158ed);
    box-shadow: 0 12px 30px rgba(55, 95, 245, .30);
    font-weight: 760;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nav-button {
    justify-self: end;
    min-height: 42px;
    padding-inline: 18px;
    font-size: .90rem;
}

.nav-button:hover,
.button-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 40px rgba(55, 95, 245, .40);
    filter: brightness(1.06);
}

.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 7px;
    color: var(--white);
    background: rgba(2, 9, 21, .55);
    font-weight: 720;
    transition: background .18s ease, transform .18s ease;
}

.button-outline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .10);
}

.project-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.project-action-row .button-blue,
.project-action-row .button-outline {
    min-width: 190px;
}

@media (max-width: 560px) {
    .project-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .project-action-row .button-blue,
    .project-action-row .button-outline {
        width: 100%;
    }
}

.menu-toggle {
    display: none;
    justify-self: end;
    width: 46px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Shared */
.section-white {
    background: var(--white);
}

.section-kicker {
    display: inline-block;
    color: var(--blue-500);
    font-size: .78rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: clamp(2rem, 3.3vw, 3rem);
}

.section-heading.light h2 {
    color: white;
}

.line-icon,
.service-icon,
.large-service-icon,
.detail-icon-card svg,
.about-values svg,
.contact-details svg,
.contact-info-grid svg,
.values-grid svg,
.feature-list svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Home hero */
.home-hero {
    position: relative;
    min-height: 720px;
    padding-top: 78px;
    overflow: hidden;
    color: var(--white);
    background: #020913;
}

.hero-photo {
    position: absolute;
    inset: 78px 0 0 42%;
    background-image: url('/images/linfinity-hero-office.webp');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 78px 0 0;
    background:
        linear-gradient(90deg, #020913 0%, rgba(2, 9, 19, .97) 28%, rgba(2, 9, 19, .73) 53%, rgba(2, 9, 19, .12) 80%),
        linear-gradient(0deg, rgba(2, 9, 19, .20), transparent 48%),
        radial-gradient(circle at 30% 43%, rgba(39, 96, 255, .10), transparent 35%);
}

.home-hero-shell {
    position: relative;
    z-index: 2;
    min-height: 642px;
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(590px, 58vw);
    padding: 54px 0 72px;
}

.hero-content h1 {
    margin: 13px 0 25px;
    font-size: clamp(3.1rem, 5.6vw, 5.4rem);
    letter-spacing: -.048em;
}

.hero-content h1 span {
    color: #4b72ff;
}

.hero-content p {
    max-width: 520px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 34px;
}

.scroll-indicator {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    transform: translateX(-50%);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    animation: floatDown 2.2s ease-in-out infinite;
}

@keyframes floatDown {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 7px); }
}

/* Home services */
.home-services {
    padding: 66px 0 76px;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-service-card {
    min-height: 278px;
    padding: 32px 28px 28px;
    border: 1px solid #edf0f6;
    border-radius: 8px;
    background: white;
    box-shadow: 0 12px 40px rgba(11, 32, 70, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(63, 102, 255, .28);
    box-shadow: 0 22px 58px rgba(11, 32, 70, .13);
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    color: var(--blue-500);
}

.home-service-card h3 {
    margin-bottom: 13px;
    font-size: 1.17rem;
}

.home-service-card p {
    margin-bottom: 22px;
    font-size: .93rem;
    line-height: 1.65;
}

.card-link,
.text-button {
    color: var(--blue-500);
    font-size: .91rem;
    font-weight: 760;
}

.card-link {
    opacity: 0;
    transform: translateY(7px);
    display: inline-block;
    transition: opacity .18s ease, transform .18s ease;
}

.home-service-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

/* Home about */
.home-about {
    padding: 20px 0 80px;
}

.home-about-shell {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    align-items: center;
    gap: 54px;
}

.about-image {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #071323;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.about-copy h2 {
    margin: 8px 0 20px;
    color: var(--ink);
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
}

.about-copy > p {
    max-width: 620px;
    margin-bottom: 13px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 31px 0 28px;
}

.about-values > div {
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 10px;
}

.about-values svg {
    grid-row: 1 / span 2;
    width: 31px;
    height: 31px;
    color: var(--blue-500);
}

.about-values strong {
    align-self: end;
    font-size: .89rem;
}

.about-values span {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
}

/* Featured project */
.featured-project {
    padding: 90px 0;
    color: white;
    background:
        linear-gradient(90deg, rgba(4, 15, 35, .97), rgba(8, 31, 69, .90)),
        url('/images/linfinity-project-bg.webp') center / cover;
}

.featured-project-shell {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 70px;
}

.project-copy h2 {
    margin: 8px 0 15px;
    color: white;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.project-copy p {
    max-width: 520px;
    color: rgba(255, 255, 255, .70);
}

.project-tags,
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.project-tags {
    margin: 24px 0 28px;
}

.project-tags span,
.tech-pills span {
    border: 1px solid rgba(90, 130, 255, .35);
    color: #d8e2ff;
    background: rgba(61, 97, 216, .12);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .79rem;
    font-weight: 720;
}

.project-dashboard {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    background: #f8fbff;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .35);
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}

.project-dashboard.large {
    transform: none;
}

.dashboard-top,
.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 35px;
    padding: 0 13px;
    background: #07182f;
}

.dashboard-top span,
.browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3f68ff;
}

.dashboard-top span:nth-child(2),
.browser-bar span:nth-child(2) {
    opacity: .65;
}

.dashboard-top span:nth-child(3),
.browser-bar span:nth-child(3) {
    opacity: .35;
}

.dashboard-top small {
    margin-left: auto;
    color: rgba(255, 255, 255, .54);
    font-size: .68rem;
}

.project-dashboard img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Contact */
.contact-band {
    position: relative;
    padding: 63px 0;
    color: white;
    background:
        radial-gradient(circle at 75% 0%, rgba(58, 104, 255, .28), transparent 36%),
        linear-gradient(110deg, #061227 0%, #0e2a5a 100%);
}

.contact-band-shell {
    display: grid;
    grid-template-columns: .76fr 1.24fr;
    gap: 65px;
    align-items: start;
}

.contact-copy h2 {
    margin: 7px 0 17px;
    color: white;
    font-size: clamp(2.35rem, 4vw, 3.75rem);
}

.contact-copy p {
    max-width: 430px;
    color: rgba(255, 255, 255, .70);
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.contact-details a,
.contact-details span {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, .82);
    font-size: .94rem;
}

.contact-details svg {
    width: 19px;
    height: 19px;
    color: #5a82ff;
}

.contact-form-panel form {
    display: grid;
    gap: 11px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.form-field {
    position: relative;
}

.form-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    outline: 0;
    color: white;
    border: 1px solid rgba(173, 192, 230, .18);
    border-radius: 6px;
    background: rgba(2, 10, 24, .70);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, .45);
}

.form-control:focus {
    border-color: rgba(84, 124, 255, .85);
    box-shadow: 0 0 0 3px rgba(65, 103, 255, .16);
}

.form-select {
    color: rgba(255, 255, 255, .78);
}

.form-select option {
    color: #10172a;
    background: white;
}

.form-textarea {
    min-height: 112px;
    height: auto;
    resize: vertical;
    padding-block: 14px;
}

.validation-message {
    display: block;
    margin-top: 5px;
    color: #ffb6bd;
    font-size: .75rem;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
}

.privacy-check input {
    margin-top: 4px;
    accent-color: var(--blue-500);
}

.privacy-check a {
    color: #9bb3ff;
    text-decoration: underline;
}

.gradient-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 17px;
    border: 0;
    border-radius: 6px;
    color: white;
    background: linear-gradient(90deg, #4e79ff, #385cf2);
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(39, 77, 219, .32);
}

.gradient-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.form-result {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 7px;
    font-size: .82rem;
}

.form-result.success {
    background: rgba(22, 163, 74, .16);
    border: 1px solid rgba(74, 222, 128, .28);
}

.form-result.error {
    background: rgba(220, 38, 38, .13);
    border: 1px solid rgba(248, 113, 113, .28);
}

.form-result strong {
    display: block;
}

.form-result p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .66);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: white;
    border-radius: 999px;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, .72);
    background: #030b16;
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.4fr .85fr 1fr 1fr;
    gap: 54px;
    padding: 56px 0 43px;
}

.footer-intro img {
    width: 165px;
    margin-bottom: 17px;
}

.footer-intro p {
    color: rgba(255, 255, 255, .56);
    font-size: .9rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .86rem;
}

.footer-column strong {
    margin-bottom: 5px;
    color: white;
}

.footer-column a:hover {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.footer-socials span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, .12);
    font-size: .66rem;
    font-weight: 820;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 17px 0 21px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .47);
    font-size: .78rem;
}

.footer-bottom div {
    display: flex;
    gap: 18px;
}

/* Subpage hero */
.subpage-hero,
.service-detail-hero,
.legal-hero,
.not-found-page {
    position: relative;
    padding: 180px 0 105px;
    color: white;
    background:
        radial-gradient(circle at 80% 22%, rgba(64, 104, 255, .24), transparent 28%),
        linear-gradient(120deg, #020913, #091a34 72%, #0b2448);
    overflow: hidden;
}

.subpage-hero::before,
.service-detail-hero::before,
.legal-hero::before,
.not-found-page::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.subpage-hero-shell {
    position: relative;
    z-index: 1;
    margin-inline: auto;
}

.subpage-hero h1 {
    max-width: 940px;
    margin: 12px 0 23px;
    font-size: clamp(3rem, 4.7vw, 4.8rem);
    line-height: 1.04;
    text-wrap: balance;
}

.subpage-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 1.12rem;
    text-wrap: pretty;
}

/* Services overview */
.services-overview {
    padding: 90px 0;
}

.large-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.large-service-card {
    position: relative;
    min-height: 455px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease;
}

.large-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(63, 102, 255, .30);
}

.service-number {
    position: absolute;
    right: 31px;
    top: 25px;
    color: #e2e7f2;
    font-size: 2.4rem;
    font-weight: 850;
}

.large-service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 30px;
    color: var(--blue-500);
}

.large-service-card h2 {
    margin-bottom: 14px;
    font-size: 2rem;
}

.large-service-card p {
    max-width: 530px;
}

.large-service-card ul {
    padding: 0;
    margin: 22px 0 30px;
    list-style: none;
}

.large-service-card li {
    position: relative;
    padding-left: 21px;
    margin-bottom: 8px;
    color: #515b6e;
    font-size: .92rem;
}

.large-service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .73em;
    width: 8px;
    height: 2px;
    background: var(--blue-500);
}

.process-section,
.values-section {
    padding: 88px 0;
    color: white;
    background:
        radial-gradient(circle at 20% 0, rgba(63, 102, 255, .20), transparent 28%),
        #061225;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-grid article {
    position: relative;
    min-height: 215px;
    padding: 30px 25px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}

.process-grid article > span {
    color: #6c8cff;
    font-size: .79rem;
    font-weight: 820;
}

.process-grid h3 {
    margin: 43px 0 12px;
    color: white;
}

.process-grid p {
    color: rgba(255, 255, 255, .59);
    font-size: .91rem;
}

/* Service detail */
.service-detail-hero {
    padding-bottom: 90px;
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: 80px;
}

.detail-hero-grid h1 {
    max-width: 890px;
    margin: 13px 0 23px;
    font-size: clamp(2.9rem, 4.35vw, 4.65rem);
    line-height: 1.04;
    text-wrap: balance;
}

.detail-hero-grid p {
    max-width: 720px;
    margin-bottom: 31px;
    color: rgba(255, 255, 255, .69);
    font-size: 1.1rem;
}

.detail-icon-card {
    display: grid;
    place-items: center;
    width: 270px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 32px;
    background:
        radial-gradient(circle at 40% 30%, rgba(84, 125, 255, .34), transparent 48%),
        rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 70px rgba(63, 102, 255, .08), 0 30px 80px rgba(0,0,0,.24);
    transform: rotate(5deg);
}

.detail-icon-card svg {
    width: 125px;
    height: 125px;
    color: #6388ff;
    stroke-width: 1.2;
}

.detail-content {
    padding: 92px 0;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 80px;
    align-items: start;
}

.detail-main h2 {
    max-width: 760px;
    margin: 8px 0 19px;
}

.detail-main > p {
    max-width: 780px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 22px;
    margin-top: 35px;
}

.feature-list > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #313a4c;
}

.feature-list svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    color: var(--blue-500);
    stroke-width: 2.4;
}

.detail-aside {
    padding: 30px;
    border-radius: 12px;
    background: #f2f5fb;
    border: 1px solid #e1e7f1;
}

.detail-aside strong {
    display: block;
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 1.12rem;
}

.detail-aside ul {
    padding-left: 19px;
    color: #566074;
}

.detail-aside li {
    margin-bottom: 9px;
}

.detail-aside a {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue-500);
    font-weight: 780;
}

.detail-showcase,
.architecture-section,
.design-system-section,
.seo-metrics-section,
.pflegekern-tech {
    padding: 90px 0;
    background: #f3f6fb;
}

.showcase-grid,
.architecture-grid,
.design-system-grid,
.seo-metrics-grid,
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.browser-mock {
    overflow: hidden;
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-strong);
}

.browser-body {
    padding: 32px;
    background:
        radial-gradient(circle at 80% 20%, rgba(65, 106, 255, .18), transparent 24%),
        #f8faff;
}

.mock-nav {
    width: 100%;
    height: 18px;
    margin-bottom: 55px;
    border-radius: 4px;
    background: #dce3f1;
}

.mock-title {
    width: 65%;
    height: 24px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #101f39;
}

.mock-title.short {
    width: 44%;
}

.mock-text {
    width: 55%;
    height: 11px;
    margin: 22px 0;
    border-radius: 4px;
    background: #ced7e7;
}

.mock-button {
    width: 130px;
    height: 36px;
    border-radius: 5px;
    background: var(--blue-500);
}

.mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 52px;
}

.mock-cards i {
    display: block;
    height: 86px;
    border-radius: 7px;
    background: white;
    box-shadow: 0 8px 25px rgba(20, 42, 84, .09);
}

.showcase-copy h2,
.architecture-copy h2,
.seo-copy h2 {
    margin: 8px 0 18px;
}

.architecture-diagram {
    display: grid;
    gap: 8px;
}

.architecture-diagram div {
    padding: 24px 28px;
    border-radius: 10px;
    color: white;
    background: linear-gradient(135deg, #0a1b35, #102c57);
    box-shadow: var(--shadow);
}

.architecture-diagram strong,
.architecture-diagram span {
    display: block;
}

.architecture-diagram span {
    color: rgba(255, 255, 255, .61);
    font-size: .86rem;
}

.architecture-diagram i {
    justify-self: center;
    color: var(--blue-500);
    font-style: normal;
    font-weight: 900;
}

.design-preview {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 370px;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow-strong);
}

.design-sidebar {
    padding: 28px 18px;
    background: #07162d;
}

.design-sidebar i {
    display: block;
    height: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .15);
}

.design-sidebar i:first-child {
    background: var(--blue-500);
}

.design-content {
    padding: 32px;
    background: #f5f7fb;
}

.design-header {
    width: 45%;
    height: 25px;
    margin-bottom: 40px;
    border-radius: 5px;
    background: #111e35;
}

.design-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.design-metrics i {
    display: block;
    height: 90px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 9px 25px rgba(24, 42, 77, .06);
}

.design-table {
    height: 145px;
    margin-top: 19px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(to bottom, white 0, white 35px, #e8edf5 36px);
}

.metric-cards {
    display: grid;
    gap: 13px;
}

.metric-cards div {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow);
}

.metric-cards span {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 9px;
    color: white;
    background: var(--blue-500);
    font-size: .80rem;
    font-weight: 850;
}

/* About */
.story-section,
.tech-section,
.projects-list,
.pflegekern-features,
.contact-info-section,
.legal-content {
    padding: 90px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.story-image {
    overflow: hidden;
    min-height: 430px;
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.story-copy h2 {
    margin: 8px 0 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.values-grid article {
    min-height: 235px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
}

.values-grid svg {
    width: 46px;
    height: 46px;
    color: #678aff;
}

.values-grid h3 {
    margin: 30px 0 12px;
    color: white;
}

.values-grid p {
    color: rgba(255, 255, 255, .58);
}

.tech-pills {
    gap: 12px;
}

.tech-pills span {
    padding: 10px 15px;
    color: #27479f;
    background: #eef2ff;
    border-color: #d9e1ff;
}

/* Projects */
.project-feature-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    overflow: hidden;
    border-radius: 17px;
    color: white;
    background:
        radial-gradient(circle at 20% 0, rgba(70, 110, 255, .24), transparent 35%),
        #061326;
    box-shadow: var(--shadow-strong);
}

.project-feature-visual {
    display: grid;
    align-items: center;
    padding: 55px 0 55px 50px;
}

.project-feature-copy {
    padding: 70px 55px;
}

.project-feature-copy h2 {
    margin: 7px 0 16px;
    color: white;
    font-size: 3.2rem;
}

.project-feature-copy p {
    color: rgba(255, 255, 255, .68);
}

.project-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.project-small-card {
    min-height: 265px;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.project-small-card > span {
    color: var(--blue-500);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-small-card h3 {
    margin: 17px 0 12px;
    font-size: 1.55rem;
}

.project-small-card a {
    color: var(--blue-500);
    font-weight: 780;
}

/* Pflegekern */
.pflegekern-hero {
    padding: 175px 0 100px;
    color: white;
    background:
        radial-gradient(circle at 65% 25%, rgba(25, 183, 153, .16), transparent 28%),
        linear-gradient(120deg, #03101b, #092a3a);
}

.pflegekern-hero-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 60px;
}

.pflegekern-page-logo {
    width: 260px;
    margin: 15px 0 25px;
}

.pflegekern-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(3rem, 5.2vw, 5rem);
}

.pflegekern-hero p {
    max-width: 620px;
    margin-bottom: 29px;
    color: rgba(255, 255, 255, .69);
}

.pflegekern-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.pflegekern-feature-grid article {
    position: relative;
    min-height: 235px;
    padding: 31px;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 12px 40px rgba(15, 33, 64, .07);
}

.pflegekern-feature-grid article > span {
    color: #15a882;
    font-size: .76rem;
    font-weight: 850;
}

.pflegekern-feature-grid h3 {
    margin: 38px 0 12px;
}

.pflegekern-tech {
    color: white;
    background: #061923;
}

.pflegekern-tech h2 {
    color: white;
}

.pflegekern-tech p {
    color: rgba(255, 255, 255, .62);
}

.pflegekern-tech .tech-pills span {
    color: #c9fff0;
    background: rgba(34, 197, 154, .10);
    border-color: rgba(34, 197, 154, .25);
}

/* Contact page */
.contact-page-band {
    padding-top: 78px;
}

.contact-page-hero {
    padding-bottom: 70px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.contact-info-grid article {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
}

.contact-info-grid svg {
    width: 38px;
    height: 38px;
    color: var(--blue-500);
}

.contact-info-grid h2 {
    margin: 24px 0 10px;
    font-size: 1.35rem;
}

.contact-info-grid a {
    color: var(--blue-500);
    font-weight: 750;
}

/* Legal */
.legal-hero {
    padding-bottom: 70px;
}

.legal-hero h1 {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
}

.legal-shell {
    max-width: 850px;
}

.legal-warning {
    margin-bottom: 42px;
    padding: 20px 22px;
    border: 1px solid #f0cb71;
    border-radius: 9px;
    color: #6f5010;
    background: #fff9e8;
}

.legal-warning strong {
    display: block;
}

.legal-content h2 {
    margin: 37px 0 11px;
    font-size: 1.45rem;
    letter-spacing: -.02em;
}

.legal-content a {
    color: var(--blue-500);
    text-decoration: underline;
}

.not-found-page {
    min-height: 680px;
}

.not-found-page .content-shell {
    position: relative;
    z-index: 1;
}

.not-found-page h1 {
    margin: 12px 0 20px;
}

.not-found-page p {
    color: rgba(255,255,255,.65);
}

.legal-hero h1,
.not-found-page h1 {
    max-width: 900px;
    text-wrap: balance;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-small {
    transition-delay: .08s;
}

.reveal-delay {
    transition-delay: .16s;
}

.reveal-delay-large {
    transition-delay: .24s;
}

/* Blazor */
#blazor-error-ui {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 13px 17px;
    border-radius: 8px;
    color: white;
    background: #9f1c2b;
    box-shadow: var(--shadow);
}

#blazor-error-ui .reload {
    margin-left: 10px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    float: right;
    border: 0;
    color: white;
    background: transparent;
}

/* Responsive */
@media (max-width: 1080px) {
    .nav-shell {
        grid-template-columns: 190px 1fr 145px;
    }

    .main-nav {
        gap: 23px;
    }

    .service-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about-shell,
    .featured-project-shell,
    .story-grid,
    .showcase-grid,
    .architecture-grid,
    .design-system-grid,
    .seo-metrics-grid,
    .tech-grid {
        gap: 42px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-values > div {
        grid-template-columns: 35px 1fr;
    }

    .contact-band-shell {
        gap: 42px;
    }

    .pflegekern-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .site-header {
        height: 72px;
    }

    .nav-shell {
        grid-template-columns: 1fr auto;
    }

    .brand img {
        width: 158px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-button {
        display: none;
    }

    .main-nav {
        position: fixed;
        inset: 72px 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 24px 24px;
        background: rgba(2, 8, 18, .985);
        border-bottom: 1px solid rgba(255,255,255,.10);
        box-shadow: 0 25px 50px rgba(0,0,0,.30);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .main-nav a::after {
        display: none;
    }

    .home-hero {
        min-height: 720px;
        padding-top: 72px;
    }

    .hero-photo {
        inset: 72px 0 0 30%;
        opacity: .62;
    }

    .hero-overlay {
        inset: 72px 0 0;
        background: linear-gradient(90deg, #020913 0%, rgba(2, 9, 19, .93) 65%, rgba(2, 9, 19, .45));
    }

    .home-hero-shell {
        min-height: 648px;
    }

    .hero-content {
        width: min(660px, 90%);
    }

    .home-about-shell,
    .featured-project-shell,
    .contact-band-shell,
    .detail-hero-grid,
    .detail-columns,
    .story-grid,
    .project-feature-card,
    .pflegekern-hero-grid,
    .showcase-grid,
    .architecture-grid,
    .design-system-grid,
    .seo-metrics-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .home-about-shell {
        gap: 35px;
    }

    .about-image {
        min-height: 350px;
    }

    .about-image img {
        min-height: 350px;
    }

    .featured-project-shell {
        gap: 45px;
    }

    .contact-band-shell {
        gap: 38px;
    }

    .footer-shell {
        grid-template-columns: repeat(2, 1fr);
    }

    .large-service-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-icon-card {
        display: none;
    }

    .project-feature-visual {
        padding: 45px 45px 0;
    }

    .project-feature-copy {
        padding: 42px 45px 55px;
    }

    .pflegekern-hero-grid {
        gap: 45px;
    }
}

@media (max-width: 680px) {
    .content-shell,
    .nav-shell,
    .footer-shell,
    .footer-bottom,
    .home-hero-shell,
    .home-about-shell,
    .contact-band-shell {
        width: min(100% - 32px, var(--max));
    }

    h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    h2 {
        font-size: clamp(1.95rem, 9vw, 3rem);
    }

    .home-hero {
        min-height: 680px;
    }

    .home-hero-shell {
        min-height: 608px;
    }

    .hero-photo {
        left: 0;
        opacity: .42;
        background-position: 62% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(2, 9, 19, .98), rgba(2, 9, 19, .73));
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 13.5vw, 4.3rem);
    }

    .hero-buttons,
    .hero-buttons a {
        width: 100%;
    }

    .home-services,
    .services-overview,
    .detail-content,
    .story-section,
    .tech-section,
    .projects-list,
    .pflegekern-features,
    .contact-info-section,
    .legal-content,
    .detail-showcase,
    .architecture-section,
    .design-system-section,
    .seo-metrics-section,
    .pflegekern-tech {
        padding: 70px 0;
    }

    .service-card-grid,
    .about-values,
    .form-row,
    .process-grid,
    .values-grid,
    .feature-list,
    .project-placeholder-grid,
    .pflegekern-feature-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        min-height: auto;
    }

    .card-link {
        opacity: 1;
        transform: none;
    }

    .home-about {
        padding-bottom: 65px;
    }

    .about-image,
    .about-image img {
        min-height: 290px;
    }

    .featured-project {
        padding: 70px 0;
    }

    .project-dashboard {
        transform: none;
    }

    .contact-band {
        padding: 66px 0;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .subpage-hero,
    .service-detail-hero,
    .legal-hero,
    .not-found-page {
        padding: 138px 0 72px;
    }

    .subpage-hero h1,
    .detail-hero-grid h1,
    .legal-hero h1,
    .not-found-page h1 {
        font-size: clamp(2.45rem, 9.5vw, 3.35rem);
        line-height: 1.05;
    }

    .subpage-hero p,
    .detail-hero-grid p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .large-service-card {
        min-height: auto;
        padding: 34px 26px;
    }

    .detail-columns {
        gap: 45px;
    }

    .story-image,
    .story-image img {
        min-height: 300px;
        height: 300px;
    }

    .project-feature-visual {
        padding: 32px 20px 0;
    }

    .project-feature-copy {
        padding: 35px 26px 42px;
    }

    .project-feature-copy h2 {
        font-size: 2.55rem;
    }

    .pflegekern-page-logo {
        width: 220px;
    }

    .design-preview {
        grid-template-columns: 57px 1fr;
        min-height: 300px;
    }

    .design-content {
        padding: 20px;
    }

    .design-metrics {
        grid-template-columns: 1fr;
    }

    .design-metrics i:nth-child(n+2) {
        display: none;
    }
}


.form-result[hidden] {
    display: none !important;
}


@media (max-width: 420px) {
    .content-shell,
    .nav-shell,
    .footer-shell,
    .footer-bottom,
    .home-hero-shell,
    .home-about-shell,
    .contact-band-shell {
        width: min(100% - 24px, var(--max));
    }

    .subpage-hero,
    .service-detail-hero,
    .legal-hero,
    .not-found-page {
        padding-top: 126px;
    }

    .subpage-hero h1,
    .detail-hero-grid h1,
    .legal-hero h1,
    .not-found-page h1 {
        font-size: clamp(2.2rem, 10.6vw, 2.9rem);
    }

    .large-service-card,
    .contact-info-grid article,
    .detail-aside {
        padding-inline: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


.form-result [data-form-result-message] {
    white-space: pre-line;
}


/* Founder profile */
.founder-section {
    padding: 96px 0 110px;
}

.founder-profile-grid {
    display: grid;
    grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
}

.founder-portrait {
    margin: 0;
    width: 100%;
}

.founder-portrait-frame {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid #dbe4f2;
    border-radius: 26px;
    background: #edf3fb;
    box-shadow: 0 20px 55px rgba(16, 42, 85, .10);
}

.founder-portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder-portrait figcaption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 17px 4px 0;
}

.founder-portrait figcaption strong {
    color: var(--ink);
    font-size: 1.16rem;
}

.founder-portrait figcaption span {
    color: #60708a;
    font-size: .94rem;
}

.founder-profile-copy {
    min-width: 0;
}

.founder-profile-copy h2 {
    max-width: 780px;
    margin: 12px 0 24px;
    color: var(--ink);
    font-size: clamp(2.35rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.038em;
    text-wrap: balance;
}

.founder-profile-copy > p {
    max-width: 760px;
    color: #40516b;
    font-size: 1.07rem;
    line-height: 1.78;
}

.founder-profile-copy .founder-intro {
    color: #263b5b;
    font-size: 1.13rem;
}

.founder-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.founder-skills span {
    padding: 9px 13px;
    border: 1px solid #d5dfed;
    border-radius: 999px;
    background: #fff;
    color: #203552;
    font-weight: 720;
    font-size: .9rem;
}

@media (max-width: 900px) {
    .founder-section {
        padding: 76px 0 84px;
    }

    .founder-profile-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .founder-portrait {
        max-width: 480px;
    }
}

@media (max-width: 520px) {
    .founder-profile-copy h2 {
        font-size: clamp(2rem, 9vw, 2.9rem);
    }

    .founder-portrait-frame {
        border-radius: 20px;
    }
}
