/* mikroseite.online — Flow UX (parallax + focus blur) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--nav-h);
}

body {
    overscroll-behavior: none;
}

@font-face {
    font-family: "DIN Web Pro";
    src: url("../fonts/DINWebPro.woff");
}

@font-face {
    font-family: fallback;
    src: local("Arial");
    ascent-override: 76.8%;
    descent-override: 23.7%;
    line-gap-override: 0%;
    size-adjust: 99.5%;
}

:root {
    --accent: #4c6fff;
    --accent-2: #8a2be2;
    --bg: #0b0e14;
    --fg: #e7ecf7;
    --muted: #cfd1d3;
    --white: #fff;
    --black: #000;
    --card: rgba(255, 255, 255, .06);
    --glass: rgba(255, 255, 255, .12);
    --nav-h: 64px;
}

body {
    font-family: DIN Web Pro, fallback, Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--black);
    color: var(--fg);
    overflow-x: hidden;
    font-size: 1.4rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 65%);
}

header {
    position: fixed !important;
}
img {
    border-radius: 50%;        /* or 14px */
    object-fit: cover;
    background: white;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  #ion_logo{
    border: none;
    background: none;
    padding: 0px;
    border-radius: 20%;
  }
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.logo img {
    height: 28px;
    width: auto;
}

.brand {
    font-weight: 800;
    letter-spacing: .02em;
}

.top-nav {
    display: flex;
    gap: 1rem;
}

.top-nav a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
    opacity: .85;
    position: relative;
    font-size: 1.2rem;
}

.top-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.top-nav a:hover {
    opacity: 1;
}

.top-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
}

/* Flow stream */
.flow {
    position: relative;
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: clamp(10vh, 16vh, 20vh) 0 14vh;
    display: flex;
    flex-direction: column;
    gap: 6vh;
    background-image: linear-gradient(#99999927, #4242423d);
}

/* Focus clarity: items near center are crisp, otherwise blurred/dim */
.flow-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    opacity: .2;
    transform: translateY(40px) scale(.98);
    filter: blur(6px);
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, filter .5s ease, background .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
    background-image: linear-gradient(#adadad75, #0000008f);
}


.flow-item.in-view {
    opacity: .9;
    transform: translateY(0) scale(1);
}

.flow-item.is-focus {
    opacity: 1;
    filter: blur(0);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
    background-image: linear-gradient(#adadad7a, #000c);

}

/* Parallax layers */
.parallax {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    opacity: .85;
    transition: opacity .4s ease;
    z-index: -1;
    background-image: linear-gradient(#0000, #000c);
}

.flow-item:hover .parallax {
    opacity: .9;
}

/* HERO (stream style) */
.hero-card {
    min-height: 68vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    padding: clamp(1.2rem, 3vw, 2rem);
}
.hero-media:hover img {
    opacity: 0.95 !important;
    transition: opacity 0.3s ease;
  }
.hero-copy {
    align-self: center;
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    font-weight: 900;
    margin-bottom: .75rem;
}

.hero-copy p {
    font-size: clamp(1rem, 1.25vw + .5rem, 1.25rem);
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.btn {
    display: inline-block;
    padding: .85rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #91c2de, #a8aaab);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(76, 111, 255, .28);
    transition: transform .2s ease, filter .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: saturate(115%);
    background: linear-gradient(135deg, #a8aaab, #91c2de);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
}
.sliding-link {
    display: inline-block;
    overflow: hidden; /* Clips the shadow until it slides in */
    vertical-align: bottom;
    text-decoration: none;
    border: 1px solid lightgray;
border-radius: 0.4rem;
padding: 0.2rem;
width: 18rem;
text-align: center;
  }
  .sliding-link:hover {
    border-color: var(--white);
    background:black
  }
  .sliding-link span {
    display: inline-block;
    line-height: 1.2; /* Defines the 1lh distance */
    transition: translate 0.3s ease;
    /* Create a copy of the text 1 line-height below the original */
    text-shadow: 0 1lh var(--white);
    color: #000;
  }

  .sliding-link:hover span {
    /* Slide the whole span up by 1 line-height */
    translate: 0 -1lh;
  }
/* METRICS band (inline) */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.2rem;
}

.metric {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

.metric .num {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: .3rem;
    text-shadow: 0 10px 28px rgba(76, 111, 255, .25);
}

.metric .lab {
    color: var(--muted);
}

/* PROJECT tiles */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.tile {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg, none) center/cover no-repeat;
    opacity: .86;
    transition: opacity .4s ease, transform .8s ease;
}

.tile:hover::after {
    opacity: .8;
    transform: scale(1.05);
}

.tile .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgb(255 255 255 / 32%);
    padding: .3rem .6rem;
    border-radius: .6rem;
    font-weight: 700;
    font-size: .75rem;
    z-index: 2;
    color: #272727;
    transition: width 1s ease-in-out;
}
.tile .tag:hover {
    border:1px solid rgba(223, 223, 223, 0.851);
    width: 80%;
    text-align: center;
}
.tile h3 {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 10px 24px rgba(0, 0, 0, .4);
    z-index: 2;
    background-color: #ffffff87;
    padding: 0.4rem;
    border-radius: 0.4rem;
}

/* BOOKS / ARTICLES cards (reuse your glass aesthetic) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.card {
    background: rgba(255, 255, 255, .3);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .25);
}

.card h3 {
    background: rgba(255, 255, 255, .12);
    border-radius: .5rem;
    margin: 0 0 .75rem 0;
    padding: .55rem .75rem;
    text-align: center;
}

.card h3 a {
    color: #fff;
    text-decoration: none;
}

.card h3::after {
    content: "";
    display: block;
    height: 1px;
    width: 60%;
    margin: .7rem auto 0;
    background: rgba(255, 255, 255, .35);
    transition: width .6s ease, background .5s ease;
}

.card h3:hover {
    background: rgba(154, 154, 154, 0.39);
    background-image: linear-gradient(#0000, #000c);
}

.card:hover h3::after {
    width: 85%;
    background: rgb(255, 255, 255);
}

.card p {
    color: var(--fg);
    opacity: .9;
}

/* Headings inside items */
.item-head {
    font-size: 1.6rem;
    font-weight: 900;
    padding: 1.2rem 1.2rem .2rem;
    letter-spacing: -.01em;
}

/* Contact + Footer */
.contact {
    padding: 12vh 0;
}

.contact-inner {
    width: min(900px, 92vw);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 18px;
    background: rgb(83 83 83 / 36%);
    border: 1px solid rgba(255, 255, 255, .1);
}

.contact-inner h2 {
    font-size: 2rem;
    margin-bottom: .25rem;
}

.contact-inner p {
    color: #757575;
    margin-bottom: 1rem;
}

.contact-inner input,
.contact-inner textarea {
    width: 100%;
    border-radius: 12px;
    padding: .85rem 1rem;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    margin-bottom: .8rem;
}

.contact-inner .btn {
    width: 100%;
}

.form-response {
    margin-top: .6rem;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
}

/* Digit background panel */
#digit-bg {
    position: fixed;
    inset: 0;
    margin: 1px;
    z-index: 0;
    pointer-events: none;
    outline: 1px solid rgba(0, 0, 0, .06);
}

#digit-canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: blur(1px) saturate(80%);
    opacity: .2;
}

/* Layering */
.site-header,
.flow,
.contact,
.site-footer {
    position: relative;
    z-index: 4;
}

.maxWidth60 {
    max-width: 60vw;
    margin: 0 auto;
}


/* Container for all logos */
.cred-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    padding: 1rem;
  }
  
  /* Each logo block */
  .cred-logo {
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .cred-logo:hover {
    transform: translateY(-4px);
  }
  
  /* Logo image */
  .cred-logos img {
    height: 80px;
    opacity: 0.45;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--muted);
  }
  
  .cred-logos img:hover {
    opacity: 0.95;
    filter: grayscale(0);
  }
  
  /* Caption / legend */
  .cred-legend {
    margin-top: 0.4rem;
    font-size: 1.85rem;
    color: var(--muted, #666);
    letter-spacing: 0.3px;
    opacity: 0.8;
  }
  ul {  margin-left: 0.4rem;}

ul.bullets {
    list-style: none;
    padding: 0 1.2rem 1rem;
}

ul.bullets li {
    margin: .4rem 0;
}

.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
}

.plan {
    background: var(--bgElev);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--line, #e7e7ea);
    font-size: 1.42rem;
}
.stack-box h3,
.plan h3 {
    margin: 0 0 .4rem;
    background-color: #ffffff36;
    padding: 0.4rem;
    border-radius: 0.4rem;
}

.faq details {
    margin: .6rem 1.2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: .6rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}
/* FAQ Container */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto;
    padding: 0;
  }
  
  /* Each Q&A Item */
  .faq-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.6rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  
  .faq-item:hover {
    border-color: rgba(199,91,0,0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  /* Question (summary) */
  .faq-question {
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    background: linear-gradient(to right, #fff, #c9c9c9);
    list-style: none;
    position: relative;
  }
  
  .faq-question::marker {
    content: "";
  }
  
  .faq-question::after {
    content: "＋";
    position: absolute;
    right: 1.2rem;
    color: #c75b00;
    font-weight: bold;
    transition: transform 0.3s ease;
  }
  
  /* Open state */
  .faq-item[open] .faq-question::after {
    content: "–";
    transform: rotate(180deg);
  }
  
  /* Answer */
  .faq-answer {
    padding: 0 1.2rem 1rem 1.2rem;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: #fffdfb;
    border-top: 1px solid rgb(0 0 0 / 28%);
    font-size: 1.2rem;
  }
  
  /* Optional transitions */
  details.faq-item[open] .faq-answer {
    animation: fadeIn 0.3s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
  }
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
}

.stack-box {
    background: var(--bgElev);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--line, #e7e7ea);
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: .6rem 1.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: .6rem .7rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bgElev);
    color: inherit;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form .btn {
    margin: .8rem 1.2rem 1.2rem;
}

.footer {
    padding: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .3rem;
}

/* ===== Principles (list) ===== */
.flow-item.maxWidth60 {
    max-width: 88vw;
    margin: 0 auto;
}

.flow-item .item-head {
    font-size: clamp(1.35rem, 3.2rem + 1vw, 5.8rem);
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0 1.2rem 0.8rem;
    color: var(--fg, #141414);
}

ul.bullets {
    list-style: none;
    margin: 0;
    padding: 0 1.2rem 1.2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Cards for each principle */
ul.bullets>li {
    position: relative;
    background: var(--bgElev, #ffffff);
    border: 1px solid var(--line, #e7e7ea);
    border-radius: 12px;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    color: var(--fgMuted, #444);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease, background-color .25s ease;
    line-height: 1.45;
}

/* Leading icon */
ul.bullets>li::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent, #4a7cff);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent, #4a7cff) 22%, transparent);
}

/* Strong title inline */
ul.bullets>li>strong {
    color: #0b1121;
    font-weight: 700;
}

/* Hover/Focus affordance */
.flow-item.is-focus ul.bullets>li:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .25);
    border-color: color-mix(in oklab, var(--accent, #4a7cff) 25%, var(--line, #e7e7ea));
}


.flow-item.is-focus .item-head {
    color: var(--fg, #141414);
}

.flow-item.is-focus ul.bullets>li {
    background: color-mix(in oklab, var(--bgElev, #fff) 92%, var(--accent, #4a7cff));
    border-color: color-mix(in oklab, var(--line, #e7e7ea) 75%, var(--accent, #4a7cff));
}

/* Responsive: two columns on medium+, three on wide */
@media (min-width: 720px) {
    ul.bullets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    ul.bullets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    ul.bullets>li {
        transition: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive */
@media (max-width: 960px) {
    .hero-card {
        grid-template-columns: 1fr;
        min-height: 72vh;
    }

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

@media (max-width: 640px) {
    .metrics {
        grid-template-columns: 1fr;
    }

    .item-head {
        font-size: 1.4rem;
    }
}