/* ==========================================================================
   stockwerk23 — Design Tokens
   ========================================================================== */
:root {
    /* Marke */
    --primary: #5BA8D6;
    --primary-dark: #4B90BA;
    --primary-light: #7EC0E8;
    --dark: #1a1a2e;
    --accent: #A8B8F0;

    /* Flächen & Text */
    --paper: #f4f5f6;
    --paper-raised: #ffffff;
    --paper-sunken: #eceef0;
    --ink: #1b2227;
    --ink-soft: #545b61;
    --ink-faint: #868d8d;
    --line: #e2e3e1;
    --line-strong: #c9cac6;

    /* Blaustich fuer Flaechen, aus dem CI-Blau auf Papier gemischt */
    --paper-blue: #dbeaf5;

    /* Eingabefelder: CI-Blau als zarte Flaeche statt Rahmen */
    --field: rgba(91, 168, 214, 0.09);
    --field-hover: rgba(91, 168, 214, 0.14);
    --field-focus: rgba(91, 168, 214, 0.18);

    /* Rückwärtskompatibel (rechtliches.html) */
    --light: #f8f9fa;
    --text: #1b2227;
    --text-light: #545b61;

    /* Raster */
    --measure: 1350px;
    --gutter: 2.5rem;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Weiss, damit der Eckausschnitt der Services-Sektion den Hero-Ton
       durchscheinen laesst und nicht das Papiergrau. */
    background: var(--paper-raised);
    color: var(--ink);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

a {
    color: inherit;
}

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

.measure {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

.brand-name {
    font-style: italic;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
}

/* Fokus: sichtbar, überall */
:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    border-bottom-left-radius: 72px;
    z-index: 1000;
}

.nav-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.nav-progress path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s linear;
}

.nav-container {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo sup,
.brand-name sup {
    font-size: 0.7em;
    /* Statt 'super' ein fester Versatz. Bezugsgroesse ist die sup-Schrift,
       0.65em entsprechen rund 0.46em der Wortmarke. */
    vertical-align: 0.65em;
    margin-left: -0.15em;
    color: darkslategray;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: calc(var(--nav-height) + 7rem) 0 7rem;
    background: var(--paper-raised);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 4rem;
    align-items: end;
}

.hero-mark {
    height: 64px;
    width: auto;
    margin-bottom: 1.75rem;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.75rem);
    line-height: 1.0;
    letter-spacing: -0.035em;
    max-width: 16ch;
    margin-bottom: 0;
}

.hero h1 .accent {
    color: var(--primary-dark);
}

.hero-side {
    padding-bottom: 0.4rem;
}

.hero-lead {
    color: var(--ink-soft);
    font-size: 1.2rem;
    max-width: 40ch;
    margin-bottom: 2rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--primary-dark);
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--primary-dark);
    color: #fff;
}

.btn-primary:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.btn-primary:disabled {
    background: var(--line-strong);
    border-color: var(--line-strong);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--ink);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Sektionen
   ========================================================================== */
section {
    padding: 6.5rem 0;
    border-bottom: 1px solid var(--line);
}

section:nth-of-type(odd) {
    background: var(--paper);
}

section:nth-of-type(even) {
    background: var(--paper-raised);
}

/* Services: Verlauf vom Papiergrau ins CI-Blau, nach rechts leicht
   abfallend; oben rechts angeschnitten, damit die Kante sichtbar wird. */
#services {
    background: linear-gradient(100deg,
        var(--paper) 0%,
        #e8f0f7 52%,
        var(--paper-blue) 100%);
    border-top-right-radius: 72px;
}

#portfolio {
    border-bottom: none;
}

/* Profil: derselbe Verlauf wie Services, horizontal gespiegelt (260deg
   statt 100deg = 360 minus Winkel), das Blau liegt also jetzt links -
   dazu passend die Ecke oben links statt oben rechts. */
#about {
    background: linear-gradient(260deg,
        var(--paper) 0%,
        #e8f0f7 52%,
        var(--paper-blue) 100%);
    border-top-left-radius: 72px;
}

/* Kontakt: statt einer Farbflaeche ein Schwarm aus vielen kleinen
   Schmetterlingen, dicht unten links und ausduennend nach oben rechts -
   generiert (Rejection Sampling, siehe Scratchpad), kein Laufzeit-JS.
   ::before liegt vor .measure im Baum und ist damit dahinter. */
#contact {
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('butterfly-swarm.svg') left bottom / cover no-repeat;
    pointer-events: none;
}

#contact > .measure {
    position: relative;
}

.section-head {
    margin-bottom: 3.5rem;
    max-width: 52ch;
}

.section-head h2 {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    max-width: 16ch;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-note {
    color: var(--ink-soft);
    font-size: 1.2rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    /* Rundung am Container statt an den einzelnen Karten: so bleibt die
       erste Karte oben links / letzte Karte unten rechts abgerundet,
       unabhaengig davon, wie viele Spalten der aktuelle Breakpoint hat.
       overflow:hidden schneidet die eckigen Karten-Ecken entsprechend zu. */
    border-top-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow: hidden;
}

.service-card {
    background: var(--paper-raised);
    padding: 2.4rem 2rem;
}

section:nth-of-type(even) .service-card {
    background: var(--paper-raised);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 1.1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

.service-card p {
    color: var(--ink-soft);
    font-size: 1.0625rem;
}

/* ==========================================================================
   Projekte — Inline-Aufklappliste
   ========================================================================== */
.project-list {
    position: relative;
}

/* Der "rote Faden": eine Schlangenlinie mit runden Ecken (10px, wie die
   Hover-/Open-Flaeche), die oben an jedem Projekt entlanglaeuft und
   seitlich - abwechselnd links/rechts - zum naechsten hinunterfuehrt.
   Als SVG statt CSS-Boxen, weil sich runde Ecken zwischen Ober- und
   Seitenkante mit zwei getrennten Boxen nicht sauber verbinden lassen;
   den Pfad berechnet und aktualisiert script.js. */
.project-thread {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.project-thread path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2px;
    stroke-linecap: round;
}

.project-heading {
    margin: 0;
    font: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

.project-row {
    /* width:100% ist bei einem <button> als Grid-Container noetig, sonst
       schrumpft er auf seinen Inhalt (Formularelemente ignorieren
       width:auto). Der Hover-Bleed laeuft deshalb NICHT ueber Margin auf
       der Zeile selbst (das waere zusammen mit width:100% ueberbestimmt
       und der Browser wuerfe den rechten Margin still weg), sondern ueber
       ein eigenes ::before dahinter - siehe unten. */
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 34px 1fr auto 24px;
    align-items: center;
    gap: 1.6rem;
    padding: 1.9rem 0.25rem;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.project-row::before {
    content: '';
    position: absolute;
    inset: 0 -1rem;
    border-radius: 13px;
    background: transparent;
    transition: background-color 0.2s ease;
    z-index: -1;
    pointer-events: none;
}

.project-row:hover::before,
.project-row:focus-visible::before,
.project.is-open .project-row::before {
    background: var(--field-hover);
}

.project-row:hover .project-title,
.project-row:focus-visible .project-title,
.project.is-open .project-row .project-title {
    color: var(--primary-dark);
}

.project-mark {
    color: var(--primary-dark);
}

.project-mark svg {
    display: block;
}

.project-main {
    display: block;
    min-width: 0;
}

.project-main .cat {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.3rem;
}

.project-main .project-title {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.project-main .desc {
    display: block;
    color: var(--ink-soft);
    font-size: 1.0625rem;
}

.project-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.chev {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    transition: transform 0.3s ease, color 0.2s ease;
}

.project.is-open .chev {
    transform: rotate(45deg);
    color: var(--primary-dark);
}

.project.is-open .project-toggle-label {
    color: var(--primary-dark);
}

.project-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.project.is-open .project-panel {
    grid-template-rows: 1fr;
}

.project-panel-inner {
    overflow: hidden;
}

.project-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 3rem 0.25rem 2.5rem 4rem;
}

.project-body .lead {
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 1.5rem;
    max-width: 62ch;
}

.project-body h4 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.project-body p {
    color: var(--ink-soft);
    font-size: 1.0625rem;
    max-width: 68ch;
    margin-bottom: 1.5rem;
}

.results-list {
    list-style: none;
    margin-bottom: 1.5rem;
    max-width: 68ch;
}

.results-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ink-soft);
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
}

.results-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 1px;
    background: var(--primary);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    background: rgba(91, 168, 214, 0.12);
    color: var(--primary-dark);
    border-radius: 6px;
}

.project-aside img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-bottom: 1.2rem;
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.side-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    width: max-content;
    max-width: 100%;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.side-links a::after {
    content: ' ↗';
    color: var(--ink-faint);
}

.side-links a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.side-note {
    font-size: 0.78rem;
    color: var(--ink-faint);
}

/* ==========================================================================
   Profil
   ========================================================================== */
.profile-grid {
    max-width: 74ch;
}

.profile-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.1rem;
}

.profile-text p {
    color: var(--ink-soft);
    max-width: 64ch;
    margin-bottom: 1rem;
}

.profile-text strong {
    color: var(--ink);
    font-weight: 600;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    border-radius: 6px;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--primary-dark);
    flex: none;
    padding-top: 0.2rem;
}

.contact-item-content h3 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.3rem;
}

.contact-item-content a {
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
}

.contact-item-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.contact-item-content p {
    font-size: 0.95rem;
    color: var(--ink-faint);
    margin-top: 0.35rem;
}

.contact-form {
    /* kein Kasten mehr - die eingefaerbten Felder tragen die Form */
    padding: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--field);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    background: var(--field-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--field-focus);
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-faint);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.35rem;
    accent-color: var(--primary-dark);
    flex: none;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.checkbox-group label a {
    color: var(--primary-dark);
}

.form-message {
    padding: 0.9rem 1rem;
    border-radius: 3px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    border: 1px solid;
}

.form-message.is-success {
    background: rgba(91, 168, 214, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.form-message.is-error {
    background: rgba(190, 45, 60, 0.08);
    border-color: rgba(190, 45, 60, 0.45);
    color: #9c2231;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    border-color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Scroll-to-Top
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 44px;
    height: 44px;
    background: var(--paper-raised);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    border-color: var(--ink);
}

/* ==========================================================================
   Rechtliches (rechtliches.html)
   ========================================================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: var(--ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 820px) {
    :root {
        --gutter: 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 3rem);
    }

    .hero h1 {
        max-width: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 0.25rem;
    }

    .project-aside {
        order: -1;
        max-width: 420px;
    }
}

@media (max-width: 720px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper-raised);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--line);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem var(--gutter);
        border-bottom: none;
    }

    .nav-links a.active {
        border-bottom: none;
    }

    section {
        padding: 3.5rem 0;
    }

    nav {
        border-bottom-left-radius: 36px;
    }

    #services {
        border-top-right-radius: 36px;
    }

    #about {
        border-top-left-radius: 36px;
    }

    #contact::before {
        opacity: 0.7;
    }

    .section-head {
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .project-row {
        grid-template-columns: 26px 1fr 24px;
        gap: 1rem;
        padding: 1.25rem 0.25rem;
    }

    .project-row::before {
        inset: 0 -0.6rem;
    }

    .project-toggle-label {
        display: none;
    }

    .project-main .project-title {
        font-size: 1.35rem;
    }

    .project-body .lead {
        font-size: 1.15rem;
    }

    .profile-text h3 {
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .project-mark svg {
        width: 18px;
        height: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-mark {
        height: 52px;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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