/* =========================================================
   Fonts
========================================================= */
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat/Montserrat-Medium.woff2") format("woff2"), url("../fonts/Montserrat/Montserrat-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat Bold";
    src: url("../fonts/Montserrat/Montserrat-Bold.woff2") format("woff2"), url("../fonts/Montserrat/Montserrat-Bold.woff") format("woff");
    font-weight: 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Arial Nova";
    src: url("../fonts/ArialNova/ArialNova.woff2") format("woff2"), url("../fonts/ArialNova/ArialNova.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* =========================================================
   Blend in preparation
========================================================= */
body {
    opacity: 0;
    transition: opacity .6s ease;
}

body.is-loaded {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1;
        transition: none;
    }
}
/* =========================================================
   Variables
========================================================= */
:root {
    --body-font: "Arial Nova", sans-serif;
    --heading-font: "Montserrat", sans-serif;
    --special-font: "Montserrat Bold", sans-serif;
    --bg: #f8fafb;
    --surface: #fff;
    --white: #fff;
    --text: #242728;
    --muted: #6f7879;
    --line: #dde5e8;
    --primary: #6195ab;
    --primary-dark: #477a90;
    --primary-light: #edf4f7;
    --primary-soft: rgba(97, 149, 171, .12);
    --secondary: #991e0e;
    --secondary-dark: #79170b;
    --secondary-soft: rgba(153, 30, 14, .09);
    --dark: #24333a;
    --footer-bg: #24363e;
    --container: 1320px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-round: 999px;
    --space-md: clamp(2.5rem, 5vw, 5rem);
    --space-lg: clamp(5rem, 9vw, 9rem);
    --space-xl: clamp(7rem, 13vw, 13rem);
}
/* =========================================================
   Reset / Base
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, .contact-title {
    font-family: var(--special-font);
    font-weight: 700;
}
h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}
::selection {
    background: var(--primary);
    color: var(--white);
}
/* =========================================================
   Layout / Global
========================================================= */
.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}
.section {
    padding: var(--space-lg) 0;
}
.section-border {
    border-top: 1px solid var(--line);
}
/* =========================================================
   Typography
========================================================= */
.eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.35rem;
    color: var(--secondary);
    font-family: var(--special-font);
    font-size: .76rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--secondary);
}
.display-title {
    max-width: 1180px;
    margin: 0;
    font-size: clamp(3.7rem, 8vw, 8.7rem);
    line-height: 1.1;
    letter-spacing: -.065em;
    font-weight: 500;
}
.accent-primary {
    color: var(--primary);
}
.accent-secondary {
    color: var(--secondary);
}
.section-title {
    max-width: 920px;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 500;
}
.section-lead {
    max-width: 760px;
    margin: 1.8rem 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.55;
}
/* =========================================================
   Links
========================================================= */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--primary);
    font-family: var(--heading-font);
    font-size: .94rem;
    font-weight: 650;
}
.text-link i {
    transition: transform .2s ease;
}
.text-link:hover {
    color: var(--secondary);
}
.text-link:hover i {
    transform: translateX(5px);
}
.secondary-link {
    color: var(--secondary) !important;
}
/* =========================================================
   Header
========================================================= */
.site-header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
}
.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
}
.brand img {
    width: auto;
    height: 62px;
    object-fit: contain;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
}
.main-nav a {
    position: relative;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 500;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.35rem;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.header-contact {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .4rem 1.15rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-round);
    color: var(--primary-dark);
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 650;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.header-contact i {
    font-size: 1.4rem;
}
.header-contact:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
}
/* =========================================================
   Hero
========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 10vw, 10rem) 0 var(--space-lg);
}
.hero::before {
    content: "";
    position: absolute;
    top: -430px;
    right: -250px;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97, 149, 171, .25) 0%, rgba(97, 149, 171, .07) 40%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    left: -220px;
    bottom: -200px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153, 30, 14, .08), transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
}
.hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10px;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
}
.hero-intro {
    margin: 0 0 1.3rem;
    color: var(--secondary);
    font-family: var(--heading-font);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero-side {
    padding-bottom: .6rem;
}
.hero-side p {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.03rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(5rem, 10vw, 9rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.hero-meta-item {
    padding: 1.5rem 1.4rem 1.5rem 0;
}
.hero-meta-item + .hero-meta-item {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}
.hero-meta-number {
    display: block;
    margin-bottom: .5rem;
    color: var(--secondary);
    font-family: var(--special-font);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.hero-meta-value {
    font-size: .95rem;
    font-weight: 500;
}
.hero-cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgba(97, 149, 171, .18) 0%, rgba(97, 149, 171, .10) 30%, rgba(97, 149, 171, .04) 55%, transparent 75%);
    filter: blur(35px);
    transform: translate(-50%, -50%);
    transition: opacity 1s ease;
    will-change: transform;
}
.hero:hover .hero-cursor-glow {
    opacity: 1;
}
/* =========================================================
   Profile
========================================================= */
.profile-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(4rem, 9vw, 10rem);
    align-items: start;
}
.profile-sticky {
    position: sticky;
    top: 3rem;
}
.profile-image {
    position: relative;
    overflow: hidden;
    max-width: 400px;
    margin-top: 3rem;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
}
.profile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(97, 149, 171, .22);
    border-radius: inherit;
    pointer-events: none;
}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.profile-copy {
    font-size: clamp(1.35rem, 2.3vw, 2.15rem);
    line-height: 1.38;
    letter-spacing: -.03em;
}
.profile-copy p {
    margin: 0 0 2rem;
}
.profile-copy .muted {
    color: var(--muted);
}
/* =========================================================
   Services
========================================================= */
.services-head {
    margin-bottom: var(--space-md);
}
.service-list {
    border-top: 1px solid var(--line);
}
.service-row {
    display: grid;
    grid-template-columns: 65px .65fr 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .25s ease, background .25s ease;
}
.service-row:hover {
    padding-left: 1.25rem;
    background: linear-gradient(90deg, var(--primary-soft), transparent 75%);
}
.service-number {
    padding-top: .4rem;
    color: var(--secondary);
    font-family: var(--special-font);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
}
.service-row h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    font-weight: 520;
}
.service-row p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
}
/* =========================================================
   Projects
========================================================= */
.work-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 3rem;
    margin-bottom: var(--space-md);
}
.work-counter {
    color: var(--muted);
    font-size: .9rem;
    white-space: nowrap;
}
.project {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--line);
}
.project-grid {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
}
.project-index {
    color: var(--secondary);
    font-family: var(--special-font);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
}
.project-grid > div:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    grid-template-areas: "category image" "title image" "description image" "link image" "info info";
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}
.project-category {
    grid-area: category;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-family: var(--heading-font);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.project-title {
    grid-area: title;
    min-width: 0;
    max-width: 900px;
    margin: 0 0 1.6rem;
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.project-description {
    grid-area: description;
    max-width: 730px;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.08rem;
}
.project-grid > div:last-child > .text-link {
    grid-area: link;
    justify-self: start;
}
.project-media {
    grid-area: image;
    position: relative;
    overflow: hidden;
    display: block;
    align-self: start;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    border-radius: var(--radius-md);
    background: var(--surface);
}
.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(97, 149, 171, .18);
    border-radius: inherit;
    pointer-events: none;
}
.project-media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .project-media img {
    transform: scale(1.018);
}
.project-info {
    grid-area: info;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}
.project-info dt {
    margin-bottom: .4rem;
    color: var(--secondary);
    font-family: var(--special-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.project-info dd {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}
/* =========================================================
   Optional Project Tool Preview
========================================================= */
.project-tool-preview {
    min-height: 440px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 5rem);
    background: linear-gradient(135deg, var(--surface) 0%, #f3f7f9 100%);
}
.tool-form {
    display: grid;
    gap: .75rem;
}
.tool-line {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.tool-line.short {
    width: 65%;
}
.tool-document {
    min-height: 300px;
    padding: 2rem;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}
.tool-document::before {
    content: "RECHNUNG";
    color: var(--secondary);
    font-family: var(--special-font);
    font-size: 1.2rem;
    font-weight: 700;
}
.tool-document::after {
    content: "PDF-Rechnung direkt im Browser erstellen";
    display: block;
    margin-top: 2rem;
    color: var(--muted);
}
/* =========================================================
   Tech Section
========================================================= */
.tech-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #26353c 0%, #406575 58%, #6195ab 135%);
    color: var(--white);
}
.tech-section::after {
    content: "";
    position: absolute;
    right: -300px;
    bottom: -400px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153, 30, 14, .24), transparent 68%);
}
.tech-section .container {
    position: relative;
    z-index: 2;
}
.tech-section .eyebrow {
    color: #d4e4ea;
}
.tech-section .eyebrow::before {
    background: #d4e4ea;
}
.tech-section .section-lead {
    color: rgba(255, 255, 255, .68);
}
.tech-list {
    margin-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.tech-item {
    display: grid;
    grid-template-columns: 65px .7fr 1fr;
    gap: 3rem;
    padding: 2.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    transition: padding-left .25s ease, background .25s ease;
}
.tech-item:hover {
    padding-left: 1.25rem;
    background: linear-gradient(90deg, color-mix(in srgb, var(--footer-bg) 50%, transparent), transparent 75%);
}
.tech-index {
    color: #efaaa1;
    font-family: var(--special-font);
    font-size: .74rem;
    font-weight: 700;
}
.tech-item h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
}
.tech-item p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    transition: color .25s ease-in-out;
}
.tech-item:hover p {
    color: var(--white);
}
/* =========================================================
   Tech Stack Marquee
========================================================= */
.stack-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 4rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.stack-track {
    display: flex;
    width: max-content;
    animation: stack-marquee 28s linear infinite;
}
.stack {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: .7rem;
    padding-right: .7rem;
    margin: 0;
}
.stack span {
    flex-shrink: 0;
    padding: .65rem 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .9);
    font-size: .85rem;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.stack-marquee:hover .stack-track {
    animation-play-state: paused;
}
@keyframes stack-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* =========================================================
   Philosophy
========================================================= */
.philosophy {
    overflow: hidden;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(4rem, 10vw, 11rem);
    align-items: start;
}
.philosophy-symbol {
    position: relative;
    width: 165px;
    height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--secondary);
    font-size: 4rem;
}
.philosophy-symbol::after {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(97, 149, 171, .28);
    border-radius: inherit;
}
.philosophy-content h3 {
    max-width: 850px;
    margin: 0 0 1.8rem;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 500;
}
.philosophy-content p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.12rem;
}
.identity-line {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 2.5rem;
}
.identity-line span {
    display: inline-flex;
    align-items: center;
    padding: .55rem .9rem;
    border-radius: var(--radius-round);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-family: var(--heading-font);
    font-size: .76rem;
    font-weight: 650;
}
.identity-line span:nth-child(even) {
    background: var(--secondary-soft);
    color: var(--secondary);
}
/* =========================================================
   Contact
========================================================= */
.contact {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0 var(--space-md);
}
.contact::after {
    content: "";
    position: absolute;
    right: -250px;
    bottom: -280px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(97, 149, 171, .17), transparent 68%);
}
.contact .container {
    position: relative;
    z-index: 2;
}
.contact-title {
    max-width: 1120px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: .9;
    letter-spacing: -.065em;
    font-weight: 500;
}
.contact-title a {
    color: var(--primary);
    transition: color .2s ease;
}
.contact-title a:hover {
    text-decoration: underline;
}
.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 3rem;
    margin-top: var(--space-md);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.5rem;
}
.contact-details a {
    color: var(--primary-dark);
    font-family: var(--heading-font);
    font-weight: 600;
}
.contact-note {
    max-width: 390px;
    color: var(--muted);
    text-align: right;
}
/* =========================================================
   Footer
========================================================= */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
    color: var(--white);
    font-size: .84rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.footer a, .footer button {
    color: rgba(255, 255, 255, .75);
}
.footer a:hover, .footer button:hover {
    color: var(--white);
}
/* =========================================================
   Legal Dialogs
========================================================= */
dialog {
    width: min(900px, calc(100% - 40px));
    max-height: 85vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .25);
}
dialog::backdrop {
    background: rgba(28, 31, 32, .65);
    backdrop-filter: blur(5px);
}
.modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}
.modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 5rem);
    padding-bottom: 2rem;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.modal-header .eyebrow {
    margin-bottom: 1rem;
}
.modal-header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -.04em;
}
.modal-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.legal-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2rem clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem);
}
.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.25rem;
    line-height: 1.3;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p, .legal-content li {
    color: #626869;
}
.legal-content a {
    color: var(--primary-dark);
}
.legal-content ul {
    padding-left: 1.25rem;
}
/* =========================================================
   Project Slider
========================================================= */
.project-slider {
    position: relative;
    width: 100%;
    outline: none;
}
.project-slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: height .4s ease;
}
.project-slider-track {
    display: flex;
    width: 100%;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.project-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
}
.project-slide .project {
    width: 100%;
}
.project-slide:last-child .project {
    padding-bottom: 0;
}
/* =========================================================
   Slider Controls
========================================================= */
.project-slider-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.project-slider-status {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    color: var(--muted);
    font-family: var(--heading-font);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
}
.project-slider-current {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
}
.project-slider-divider {
    opacity: .5;
}
.project-slider-buttons {
    display: flex;
    gap: .6rem;
}
.project-slider-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}
.project-slider-btn i {
    font-size: 1.1rem;
}
.project-slider-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.project-slider-btn:active:not(:disabled) {
    transform: translateY(0);
}
.project-slider-btn:disabled {
    opacity: .28;
    cursor: default;
}
.project-slider-controls-bottom {
    justify-content: flex-end;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}
.project-slider:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 8px;
    border-radius: var(--radius-sm);
}
.project-slide .project-category, .project-slide .project-title, .project-slide .project-description, .project-slide .text-link, .project-slide .project-info {
    transition: opacity .4s ease, transform .4s ease;
}
.project-slide:not(.is-active) .project-category, .project-slide:not(.is-active) .project-title, .project-slide:not(.is-active) .project-description, .project-slide:not(.is-active) .text-link, .project-slide:not(.is-active) .project-info {
    opacity: .55;
    transform: translateY(6px);
}
.project-slide.is-active .project-category, .project-slide.is-active .project-title, .project-slide.is-active .project-description, .project-slide.is-active .text-link, .project-slide.is-active .project-info {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================================
   Cookie Banner
========================================================= */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 24px;
    width: calc(100% - 48px);
    max-width: 720px;
    padding: 16px 18px 16px 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(-50%);
}
.cookie-banner p {
    flex: 1;
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}
.cookie-banner button {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--radius-round);
    background: var(--primary);
    color: var(--white);
    font: inherit;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}
.cookie-banner button:hover {
    transform: translateY(-1px);
}
.cookie-banner.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .3s ease, transform .3s ease;
}
/* =========================================================
   404 Page
========================================================= */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.error-main {
    position: relative;
    overflow: hidden;
    display: flex;
    flex: 1;
    align-items: center;
    min-height: calc(100vh - 150px);
}
.error-container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 100px;
}
.error-number {
    position: absolute;
    top: 50%;
    right: 0;
    color: rgba(31, 35, 36, .025);
    font-family: var(--special-font);
    font-size: clamp(12rem, 30vw, 35rem);
    font-weight: 700;
    line-height: .75;
    letter-spacing: -.08em;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}
.error-title {
    position: relative;
    max-width: 900px;
    margin: 32px 0 28px;
    color: #1f2324;
    font-family: var(--heading-font);
    font-size: clamp(3.2rem, 7vw, 7.5rem);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.055em;
}
.error-text {
    max-width: 520px;
    margin: 0 0 36px;
    color: rgba(31, 35, 36, .62);
    font-size: 1rem;
    line-height: 1.65;
}
.error-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap .25s ease, color .25s ease;
}
.error-link:hover {
    gap: 18px;
    color: var(--secondary);
}
.error-cloud {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.error-cloud-blue {
    top: -280px;
    right: -220px;
    background: radial-gradient(circle, rgba(97, 149, 171, .24) 0%, rgba(97, 149, 171, .1) 38%, transparent 70%);
}
.error-cloud-red {
    bottom: -330px;
    left: -250px;
    background: radial-gradient(circle, rgba(153, 30, 14, .16) 0%, rgba(153, 30, 14, .06) 40%, transparent 72%);
}
.error-footer {
    position: relative;
    z-index: 2;
}
/* =========================================================
   Responsive ≤ 950px
========================================================= */
@media (max-width: 950px) {
    .main-nav {
        display: none;
    }
    .hero-top, .profile-grid, .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .hero-side {
        max-width: 560px;
    }
    .hero-meta {
        grid-template-columns: 1fr 1fr;
    }
    .hero-meta-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .hero-meta-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }
    .profile-sticky {
        position: static;
    }
    .profile-image {
        max-width: 420px;
    }
    .service-row, .tech-item {
        grid-template-columns: 45px 1fr;
        gap: 1.5rem;
    }
    .service-row p, .tech-item p {
        grid-column: 2;
    }
    .project-grid {
        grid-template-columns: 65px 1fr;
        gap: 1.5rem;
    }
    .project-grid > div:last-child {
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        column-gap: 2rem;
    }
    .project-info {
        grid-template-columns: 1fr 1fr;
    }
    .contact-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-note {
        text-align: left;
    }
}
/* =========================================================
   Responsive ≤ 767px
========================================================= */
@media (max-width: 767px) {
    .error-main {
        min-height: calc(100vh - 130px);
    }
    .error-container {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .error-number {
        top: 42%;
        right: -20px;
        font-size: clamp(10rem, 55vw, 18rem);
    }
    .error-title {
        margin-top: 24px;
        font-size: clamp(3rem, 14vw, 5.5rem);
    }
    .error-text {
        max-width: 90%;
    }
    .error-cloud {
        width: 420px;
        height: 420px;
        filter: blur(65px);
    }
}
/* =========================================================
   Responsive ≤ 720px
========================================================= */
@media (max-width: 720px) {
    .project-grid > div:last-child {
        grid-template-columns: 1fr;
        grid-template-areas: "category" "title" "description" "link" "image" "info";
        column-gap: 0;
    }
    .project-media {
        margin-top: 2rem;
    }
    .project-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 1.5rem;
        margin-top: 1.6rem;
    }
}
/* =========================================================
   Responsive ≤ 620px
========================================================= */
@media (max-width: 620px) {
    body {
        font-size: 16px;
    }
    .container {
        width: min(calc(100% - 28px), var(--container));
    }
    .header-inner {
        min-height: 76px;
    }
    .brand img {
        height: 48px;
    }
    .header-contact span:not(.status-dot) {
        display: none;
    }
    .header-contact {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }
    .display-title {
        font-size: clamp(2rem, 16vw, 3.5rem);
    }
    .hero {
        padding-top: 4.5rem;
    }
    .hero-meta {
        grid-template-columns: 1fr;
    }
    .hero-meta-item, .hero-meta-item + .hero-meta-item {
        padding: 1.2rem 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .hero-meta-item:first-child {
        border-top: 0;
    }
    .work-head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
    }
    .work-counter {
        margin-top: 1rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-title {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }
    .project-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .project-tool-preview {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .service-row, .tech-item {
        grid-template-columns: 35px 1fr;
        gap: 1rem;
    }
    .service-row {
        padding: 1.8rem 0;
    }
    .philosophy-symbol {
        width: 110px;
        height: 110px;
        font-size: 2.8rem;
    }
    .footer-inner {
        flex-direction: column;
    }
    .project-slider-controls {
        width: 100%;
        justify-content: space-between;
    }
    .project-slider-controls-bottom {
        justify-content: space-between;
    }
    .project-slider-btn {
        width: 46px;
        height: 46px;
    }
    .project-slide .project {
        padding-top: 2rem;
    }
}
/* =========================================================
   Responsive ≤ 576px
========================================================= */
@media (max-width: 576px) {
    .cookie-banner {
        bottom: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: calc(100% - 32px);
        padding: 16px;
    }
    .cookie-banner button {
        width: 100%;
    }
}
/* =========================================================
   Pointer / Motion
========================================================= */
@media (hover: none), (pointer: coarse) {
    .hero-cursor-glow {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .stack-track {
        animation: none;
    }
    .project-slider-track, .project-slider-viewport, .project-slider-btn, .project-slide .project-category, .project-slide .project-title, .project-slide .project-description, .project-slide .text-link, .project-slide .project-info {
        transition: none;
    }
}