@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/montserrat-regular.ttf") format("truetype");
}

@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/rajdhani-regular.ttf") format("truetype");
}

@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/rajdhani-semibold.ttf") format("truetype");
}

@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/rajdhani-bold.ttf") format("truetype");
}

:root {
    --background: #fefefe;
    --primary: #13c431;
    --secondary: #0b6b3a;
    --white: #fefefe;
    --text: #0b6b3a;
    --shadow: 0 14px 35px rgb(11 107 58 / 12%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 15%, rgb(19 196 49 / 9%), transparent 24rem),
        var(--background);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 0.55em;
    font-family: "Rajdhani", sans-serif;
    line-height: 1.05;
}

h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 400; }

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

.navigation {
    position: sticky;
    z-index: 1000;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding: 18px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgb(11 107 58 / 10%);
    background: rgb(254 254 254 / 94%);
    box-shadow: 0 8px 24px rgb(11 107 58 / 5%);
    backdrop-filter: blur(12px);
}

.logo {
    display: block;
    flex: 0 0 auto;
    width: clamp(155px, 16vw, 205px);
    height: 58px;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@property --button-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.button {
    --button-fill: var(--primary);
    --button-runner: var(--secondary);
    --button-border-angle: 0deg;
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 3px solid transparent;
    border-radius: 20px;
    color: var(--white);
    background:
        linear-gradient(var(--button-fill), var(--button-fill)) padding-box,
        conic-gradient(
            from var(--button-border-angle),
            var(--button-fill) 0deg 152deg,
            var(--button-runner) 166deg 194deg,
            var(--button-fill) 208deg 360deg
        ) border-box;
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    animation: button-border-runner 2s linear 1;
}

.button.active {
    --button-fill: var(--secondary);
    --button-runner: var(--primary);
}

.button:focus-visible,
.logo:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgb(19 196 49 / 45%);
    outline-offset: 4px;
}

@keyframes button-border-runner {
    from { --button-border-angle: 0deg; }
    to { --button-border-angle: -360deg; }
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 44px;
    padding: 9px;
    border: 2px solid var(--secondary);
    border-radius: 14px;
    background: var(--primary);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 10px;
    background: var(--white);
    transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.hero,
.subpage-header {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 68vh;
    margin-top: 28px;
    margin-bottom: 42px;
    padding: clamp(28px, 4vw, 54px) clamp(22px, 5vw, 68px) clamp(48px, 7vw, 88px);
    overflow: hidden;
    border: 1px solid rgb(11 107 58 / 10%);
    border-radius: 28px;
    background: var(--background);
    box-shadow: var(--shadow);
}

.hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: url("images/header/header-green-raccoon.png") top center / contain no-repeat;
    content: "";
    opacity: 0.12;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: transparent;
    content: "";
}

.hero-content {
    max-width: 660px;
    margin-inline: auto;
    padding: 0;
    text-align: center;
    text-shadow:
        0 0 7px var(--white),
        0 0 14px var(--white),
        0 0 22px var(--white),
        0 1px 0 var(--white);
}

.home-main {
    width: min(1342px, calc(100% - 32px));
    margin: 0 auto 72px;
}

.home-main .hero {
    width: 100%;
}

.hero h1 {
    max-width: 650px;
    margin-inline: auto;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.hero-copy {
    max-width: 820px;
    margin-inline: auto;
    color: var(--secondary);
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-copy p:last-child {
    margin-bottom: 0;
}

.subpage-header > p:last-child {
    max-width: 620px;
}

.eyebrow,
.section-number {
    color: var(--primary);
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 72px;
}

main section {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: clamp(20px, 5vw, 70px);
    min-height: 270px;
    align-items: center;
    margin-bottom: 24px;
    padding: clamp(30px, 6vw, 72px);
    border: 1px solid rgb(11 107 58 / 10%);
    border-radius: 28px;
    background: rgb(254 254 254 / 82%);
    box-shadow: var(--shadow);
    scroll-margin-top: 110px;
}

main section:nth-child(even) {
    background: linear-gradient(135deg, rgb(19 196 49 / 8%), rgb(254 254 254 / 95%));
}

.section-number {
    align-self: start;
    font-size: 24px;
}

.content-button {
    margin-top: 12px;
}

.contact-main {
    max-width: 900px;
    margin-top: 48px;
}

.business-main {
    max-width: 980px;
    margin-top: 48px;
}

.business-section {
    display: block;
}

.business-content {
    text-align: center;
}

.business-content h1 {
    margin-bottom: 28px;
}

.business-photo {
    width: min(680px, 100%);
    margin: 0 auto 30px;
}

.business-photo img {
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.business-photo figcaption {
    margin-top: 10px;
    color: var(--secondary);
    font-size: 14px;
}

.business-copy {
    max-width: 760px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.6;
}

.business-copy p:last-child {
    margin-bottom: 0;
}

.contact-section {
    display: block;
}

.contact-intro {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
}

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

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--secondary);
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid rgb(11 107 58 / 24%);
    border-radius: 16px;
    color: var(--secondary);
    background: var(--white);
    font: 16px/1.5 "Montserrat", sans-serif;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgb(19 196 49 / 15%);
}

.privacy-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
}

.privacy-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.privacy-check a {
    color: var(--secondary);
}

.form-actions {
    text-align: center;
}

.bot-field,
.form-success {
    display: none;
}

.form-success:target {
    display: block;
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--white);
    background: var(--secondary);
    text-align: center;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 80px;
    width: min(1040px, 100%);
    margin: clamp(42px, 6vw, 62px) auto 0;
    padding: 0;
}

.home-cards .topic-card,
.home-cards .topic-card:nth-child(even) {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 40px;
    min-height: 270px;
    align-items: start;
    margin: 0;
    padding: 40px 48px;
    border: 1px solid #ffffff03;
    border-radius: 20px;
    background-color: #ffffff0a;
    box-shadow:
        0 4px 20px #0000001a,
        inset 0 1px 0 rgb(255 255 255 / 40%),
        inset 1px 0 0 rgb(255 255 255 / 32%),
        inset 0 -1px 8px rgb(0 0 0 / 20%),
        inset -1px 0 8px rgb(0 0 0 / 16%);
    backdrop-filter: blur(2px) brightness(100%) saturate(105%) hue-rotate(10deg);
    -webkit-backdrop-filter: blur(3px) brightness(100%) saturate(105%) hue-rotate(10deg);
}

.home-cards .topic-card::before {
    content: none;
}

.tile-icon {
    display: grid;
    width: 110px;
    aspect-ratio: 1;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 0 rgb(11 107 58 / 42%);
    border-radius: 50%;
    background: rgb(254 254 254 / 42%);
}

.tile-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.topic-card-content {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: flex-start;
}

.topic-card-content h2 {
    margin-bottom: 14px;
    color: var(--secondary);
    font-size: 30px;
    font-weight: 700;
}

.topic-card-content p {
    max-width: 310px;
    color: var(--secondary);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.topic-card-content .content-button {
    margin-top: auto;
}

.projects-area {
    padding-top: 42px;
    scroll-margin-top: 110px;
}

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgb(11 107 58 / 10%);
    border-radius: 24px;
    background: rgb(254 254 254 / 92%);
    box-shadow: var(--shadow);
}

.project-tab {
    display: flex;
    width: auto;
    min-height: 60px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgb(11 107 58 / 18%);
    border-radius: 18px;
    color: var(--secondary);
    background: linear-gradient(145deg, rgb(19 196 49 / 10%), rgb(254 254 254 / 92%));
    font-family: "Rajdhani", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.project-tab:hover,
.project-tab:focus-visible {
    background-color: rgb(19 196 49 / 12%);
    box-shadow: 0 10px 24px rgb(11 107 58 / 12%);
    transform: translateY(-2px);
}

.project-tab.active {
    color: var(--white);
    background: var(--secondary);
    box-shadow: 0 10px 24px rgb(11 107 58 / 20%);
}

.project-tab.active:hover,
.project-tab.active:focus-visible {
    background: var(--secondary);
}

.project-tab:focus-visible {
    outline: 3px solid rgb(19 196 49 / 35%);
    outline-offset: 3px;
}

.project-tab-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    font-size: 12px;
}

.home-main .project-category {
    display: block;
    min-height: 360px;
    margin: 28px 0 0;
    padding: clamp(54px, 8vw, 90px) clamp(24px, 6vw, 72px);
    border-radius: 28px;
    text-align: center;
    scroll-margin-top: 110px;
}

.project-category .project-tabs {
    margin-bottom: clamp(42px, 6vw, 68px);
}

.project-intro {
    max-width: 760px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.project-slider {
    width: min(1060px, 100%);
    margin: 56px auto 0;
    padding: clamp(22px, 4vw, 40px);
    border-radius: 26px;
    background: rgb(19 196 49 / 12%);
    box-shadow: 0 16px 38px rgb(11 107 58 / 10%);
}

.project-slider + .project-slider {
    margin-top: 46px;
}

.project-slider > h3 {
    margin-bottom: 22px;
    color: var(--secondary);
    text-align: left;
}

.slider-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(30px, 5vw, 64px);
    min-height: 430px;
    align-items: center;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 22px;
    background: linear-gradient(90deg, var(--secondary), rgb(254 254 254 / 96%));
}

.slider-image-frame {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
    padding: 24px;
    border: 2px solid rgb(11 107 58 / 65%);
    border-radius: 24px;
    background: rgb(254 254 254 / 88%);
}

.slider-image-frame.image-missing::after {
    display: grid;
    min-height: 270px;
    place-items: center;
    color: var(--secondary);
    content: "Bild folgt: " attr(data-fallback);
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.slider-image-frame.image-missing .slider-project-image {
    display: none;
}

.slider-image-placeholder {
    display: grid;
    width: 100%;
    min-height: 270px;
    place-items: center;
    border: 1px dashed rgb(11 107 58 / 42%);
    border-radius: 14px;
    color: var(--secondary);
    background: rgb(254 254 254 / 72%);
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.slider-project-image {
    display: block;
    width: 100%;
    height: 270px;
    border-radius: 14px;
    object-fit: contain;
}

.slider-copy {
    color: var(--secondary);
    text-align: left;
}

.slider-copy h3 {
    margin-bottom: 20px;
    font-size: 30px;
}

.slider-copy p {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(var(--thumbnail-count, 4), minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.slider-thumbnail {
    display: grid;
    min-height: 210px;
    grid-template-rows: 1fr auto;
    gap: 12px;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 20px;
    color: var(--secondary);
    background: var(--background);
    box-shadow: 0 8px 20px rgb(11 107 58 / 9%);
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.slider-thumbnail:hover,
.slider-thumbnail:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 12px 26px rgb(11 107 58 / 15%);
    transform: translateY(-3px);
}

.slider-thumbnail:focus-visible {
    outline: 3px solid rgb(19 196 49 / 35%);
    outline-offset: 3px;
}

.slider-thumbnail-image {
    display: block;
    width: 100%;
    height: 135px;
    border: 1px dashed rgb(11 107 58 / 32%);
    border-radius: 12px;
    background: rgb(19 196 49 / 6%);
    object-fit: contain;
}

.slider-thumbnail-missing {
    display: grid;
    place-items: center;
    color: var(--secondary);
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.subpage-header {
    padding: 100px 0 54px;
}

.about-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    column-gap: clamp(34px, 7vw, 90px);
    row-gap: 18px;
    min-height: 680px;
    align-items: center;
    margin-block: 28px 72px;
    padding: clamp(48px, 7vw, 92px);
    overflow: hidden;
    border: 1px solid rgb(11 107 58 / 10%);
    border-radius: 28px;
    background: linear-gradient(135deg, rgb(19 196 49 / 10%), rgb(254 254 254 / 96%) 55%);
    box-shadow: var(--shadow);
}

.about-header-content {
    position: relative;
    z-index: 1;
}

.about-header-heading {
    grid-column: 1 / -1;
}

.about-header h1 {
    margin-bottom: 8px;
}

.about-header h2 {
    margin-bottom: 28px;
    color: rgb(19 196 49 / 62%);
    font-size: 24px;
    font-weight: 600;
}

.about-header-content > p:not(.eyebrow) {
    max-width: 610px;
    color: var(--secondary);
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
}

.about-header-image {
    align-self: start;
}

.about-header-image img {
    display: block;
    width: 100%;
    max-height: 610px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 18px 24px rgb(11 107 58 / 18%));
}

.about-main {
    width: min(1120px, calc(100% - 40px));
}

.about-main .skills-section {
    display: block;
    min-height: 0;
    padding: clamp(38px, 6vw, 72px);
    text-align: left;
}

.skills-heading {
    margin-bottom: clamp(34px, 5vw, 54px);
    text-align: center;
}

.skills-heading h2 {
    margin-bottom: 0;
}

.skills-list {
    display: grid;
    width: 100%;
    gap: 18px;
}

.skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(34px, 6vw, 70px);
    align-items: stretch;
}

.skill-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.skill-icon {
    display: block;
    width: 58px;
    height: 58px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    clip-path: circle(50%);
    
    
}
.skill-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.skill-content {
    min-width: 0;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 8px;
}

.skill-label h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
}

.skill-label span {
    color: var(--secondary);
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.skill-track {
    height: 18px;
    overflow: hidden;
    border: 1px solid rgb(11 107 58 / 12%);
    border-radius: 999px;
    background: rgb(11 107 58 / 9%);
    box-shadow: inset 0 2px 5px rgb(11 107 58 / 10%);
}

.skill-fill {
    display: block;
    width: var(--skill-level);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 4px 12px rgb(19 196 49 / 24%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) var(--skill-delay);
}

.skills-section.skills-visible .skill-fill {
    transform: scaleX(1);
}

.skills-explanation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgb(11 107 58 / 12%);
    border-radius: 24px;
    color: var(--secondary);
    background: linear-gradient(145deg, rgb(19 196 49 / 9%), rgb(254 254 254 / 94%));
    box-shadow: 0 14px 30px rgb(11 107 58 / 9%);
}

.skills-explanation h3 {
    margin-bottom: 18px;
    color: var(--secondary);
    font-size: 24px;
}

.skills-explanation p {
    margin: 0 0 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.skills-explanation p:last-child {
    margin-bottom: 0;
}

.about-main .reading-section {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 570px;
    align-items: center;
    overflow: hidden;
    padding: clamp(48px, 8vw, 90px);
    color: var(--white);
    background: var(--background);
    text-align: right;
}

.reading-section::before,
.reading-section::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
}

.reading-section::before {
    background: url("images/ueber-mich/waschbaer-genau.webp") center / cover no-repeat;
    opacity: 1;
}

.reading-section::after {
    display: none;
}

.reading-content {
    width: min(600px, 58%);
    justify-self: start;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid #ffffff03;
    border-radius: 20px;
    background-color: rgb(5 58 31 / 58%);
    box-shadow:
        0 4px 20px #0000001a,
        inset 0 1px 0 rgb(255 255 255 / 40%),
        inset 1px 0 0 rgb(255 255 255 / 32%),
        inset 0 -1px 8px rgb(0 0 0 / 20%),
        inset -1px 0 8px rgb(0 0 0 / 16%);
    backdrop-filter: blur(2px) brightness(100%) saturate(105%) hue-rotate(10deg);
    -webkit-backdrop-filter: blur(3px) brightness(100%) saturate(105%) hue-rotate(10deg);
    text-align: right;
}

.reading-content .eyebrow,
.reading-content h2 {
    color: var(--white);
}

.reading-content > p:not(.eyebrow) {
    margin: 0 0 30px auto;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
}

.reading-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
}

.subpage-main section {
    grid-template-columns: 1fr;
}

.legal-content section {
    align-items: start;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(30px, 7vw, 100px);
    align-items: start;
    width: 100%;
    padding: 52px clamp(24px, 7vw, 100px);
    color: var(--white);
    background: var(--secondary);
}

.site-footer h4 {
    margin-bottom: 14px;
    color: var(--white);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.sitemap-links {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(110px, 1fr);
    gap: 7px 28px;
}

.footer-column a {
    color: var(--white);
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-column a[aria-current="page"] {
    color: var(--primary);
    text-decoration-color: currentColor;
}

.copyright {
    align-self: center;
    margin: 0;
    text-align: center;
}

.footer-legal {
    justify-self: end;
    min-width: 120px;
}

@media (max-width: 1100px) {
    .about-main .reading-section {
        min-height: 570px;
        padding: 34px;
    }

    .reading-section::before {
        background-position: top center;
        background-size: 100% auto;
    }

    .reading-content {
        width: min(570px, 58%);
        padding: 28px;
    }

    .reading-content h2 {
        font-size: 30px;
    }

    .reading-content > p:not(.eyebrow) {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .navigation {
        gap: 1rem;
        padding: 14px 20px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        display: grid;
        width: min(290px, calc(100vw - 40px));
        gap: 8px;
        padding: 16px;
        visibility: hidden;
        border: 1px solid rgb(11 107 58 / 15%);
        border-radius: 20px;
        opacity: 0;
        background: var(--background);
        box-shadow: var(--shadow);
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }

    .nav-links.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links .button {
        width: 100%;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }

    .copyright {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .home-cards {
        grid-template-columns: 1fr;
        width: min(480px, 100%);
    }

    .project-tabs {
        justify-content: center;
    }

    .slider-feature {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, var(--secondary), rgb(254 254 254 / 96%));
    }

    .slider-copy {
        padding: 10px;
    }

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

    .about-header {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 0;
        text-align: center;
    }

    .about-header-content > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .about-header-heading {
        grid-column: auto;
    }

    .about-header-image {
        width: min(520px, 100%);
        margin-inline: auto;
    }

    .about-main .skills-section {
        padding: 40px 30px;
    }

    .skills-layout {
        grid-template-columns: 1fr;
    }

    .about-main .reading-section {
        min-height: 570px;
        padding: 42px 34px;
    }

    .reading-content {
        width: min(500px, 58%);
    }
}

@media (max-width: 700px) {
    .about-main .reading-section {
        min-height: auto;
        align-items: end;
        padding: min(58vw, 360px) 18px 28px;
        background: var(--secondary);
        text-align: center;
    }

    .reading-section::before {
        background-position: top center;
        background-size: 100% auto;
    }

    .reading-content {
        width: 100%;
        justify-self: center;
        margin-top: 0;
        text-align: center;
    }

    .reading-content > p:not(.eyebrow) {
        font-size: 18px;
    }

    .reading-buttons {
        display: grid;
        justify-content: stretch;
    }
}

@media (max-width: 560px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .hero {
        min-height: 50vh;
        margin-top: 18px;
        margin-bottom: 28px;
        padding: 38px 20px 48px;
    }

    .hero::before {
        background-position: top center;
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.1;
    }

    .hero::after {
        background: transparent;
    }

    .hero-copy {
        font-size: 20px;
    }

    .hero-content {
        padding: 0;
    }

    .about-header {
        width: calc(100% - 24px);
        min-height: auto;
        margin-block: 16px 40px;
        padding: 38px 22px 0;
    }

    .about-header h2 {
        font-size: 22px;
    }

    .about-header-content > p:not(.eyebrow) {
        font-size: 18px;
    }

    .about-header-image img {
        max-height: 480px;
    }

    .about-main {
        width: calc(100% - 24px);
    }

    .about-main .skills-section {
        padding: 34px 20px;
    }

    .skill-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
    }

    .skill-icon {
        width: 54px;
        height: 54px;
        font-size: 18px;
    }

    .skill-track {
        height: 20px;
    }

    .about-main .reading-section {
        min-height: auto;
        align-items: end;
        padding: min(58vw, 360px) 18px 28px;
        background: var(--secondary);
        text-align: center;
    }

    .reading-section::before {
        background-position: top center;
        background-size: 100% auto;
    }

    .reading-content {
        width: 100%;
        justify-self: center;
        margin-top: 0;
        text-align: center;
    }

    .reading-content > p:not(.eyebrow) {
        font-size: 18px;
    }

    .reading-buttons {
        display: grid;
        justify-content: stretch;
    }

    main section {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 230px;
        padding: 28px 24px;
    }

    .home-cards {
        gap: 18px;
        margin-top: 36px;
        padding: 0;
    }

    .home-cards .topic-card,
    .home-cards .topic-card:nth-child(even) {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 18px;
        min-height: 240px;
        padding: 26px 20px;
    }

    .tile-icon {
        width: 82px;
        padding: 8px;
        font-size: 11px;
    }

    .topic-card-content {
        min-height: 188px;
    }

    .project-tabs {
        display: flex;
        gap: 9px;
        padding: 10px;
    }

    .project-tab {
        width: 100%;
        min-height: 68px;
    }

    .project-slider {
        margin-top: 38px;
        padding: 14px;
    }

    .slider-feature {
        min-height: auto;
        gap: 24px;
        padding: 20px;
    }

    .slider-image-frame {
        min-height: 230px;
        padding: 12px;
    }

    .slider-image-placeholder {
        min-height: 200px;
    }

    .slider-copy h3 {
        font-size: 24px;
    }

    .slider-copy p {
        font-size: 14px;
    }

    .slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    padding: 4px;
}

.slider-thumbnail {
    width: 100%;
    min-height: auto;
}

    .site-footer {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .copyright,
    .footer-legal {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
        text-align: left;
    }

    .sitemap-links {
        grid-auto-columns: minmax(100px, 1fr);
        gap: 8px 20px;
    }
}

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

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