/* =========================================================
   John Ide Consulting GmbH — "Operations Studio"
   Anthracite shell · petrol structural accent · amber spotlight.
   ========================================================= */

:root {
    --bg:            #22262C;
    --bg-deep:       #1B1E22;
    --bg-raised:     #2A2E33;

    --text:          #E6E8EB;
    --text-muted:    #A8ADB3;
    --text-faint:    #6F7479;

    --rule:          rgba(230, 232, 235, 0.12);
    --rule-strong:   rgba(230, 232, 235, 0.22);

    --petrol:        #2A8B8E;
    --petrol-soft:   rgba(42, 139, 142, 0.08);
    --petrol-glow:   rgba(42, 139, 142, 0.18);

    --amber:         #D4A24C;

    --font-sans:     'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono:     'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --container:     1280px;
    --gutter:        clamp(20px, 4vw, 56px);
}

/* ----- Self-hosted fonts -------------------------------- */
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 300;
    src: url('/fonts/manrope-v20-latin_latin-ext-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 400;
    src: url('/fonts/manrope-v20-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 600;
    src: url('/fonts/manrope-v20-latin_latin-ext-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Manrope'; font-style: normal; font-weight: 800;
    src: url('/fonts/manrope-v20-latin_latin-ext-800.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500;
    src: url('/fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2'); }

/* ----- Reset / base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "calt";
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection { background: var(--petrol); color: var(--bg); }

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

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

/* ----- Subtle grain (kills the flat AI feeling) --------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.93  0 0 0 0 0.95  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ----- Masthead ----------------------------------------- */
.masthead {
    position: relative;
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-deep);
    z-index: 10;
}
.masthead-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.masthead-logo { display: block; line-height: 0; }
.masthead-logo img { height: 34px; width: auto; }
.masthead-nav { display: flex; gap: 36px; }
.masthead-nav a {
    position: relative;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.3s;
}
.masthead-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 1px;
    background: var(--petrol);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.masthead-nav a:hover { color: var(--text); }
.masthead-nav a:hover::after { transform: scaleX(1); }

/* ----- Hero --------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(90px, 14vw, 180px) var(--gutter) clamp(80px, 12vw, 150px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, var(--petrol-soft) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(42, 139, 142, 0.04) 0%, transparent 60%),
        var(--bg);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rule-strong) 30%, var(--rule-strong) 70%, transparent);
}
.hero-inner {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 38px;
}
.hero-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--petrol);
}
.hero h1 {
    font-size: clamp(2.6rem, 6.8vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -0.032em;
    line-height: 1.02;
    margin-bottom: 42px;
    max-width: 14ch;
}
.hero h1 .amber {
    color: var(--amber);
    font-style: italic;
    font-weight: 800;
}
.hero-lead {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 0 52px;
    font-weight: 300;
    line-height: 1.6;
}
.hero-actions {
    display: inline-flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

/* ----- Buttons ----------------------------------------- */
.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 16px 38px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--text);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s, border-color 0.4s;
    cursor: pointer;
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--petrol);
    transform: translateY(101%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}
.btn-primary:hover {
    color: var(--bg);
    border-color: var(--petrol);
}
.btn-primary:hover::before { transform: translateY(0); }

.btn-text {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rule-strong);
    transition: border-color 0.3s, color 0.3s;
}
.btn-text:hover { border-color: var(--petrol); color: var(--petrol); }

/* ----- Sections ---------------------------------------- */
.section {
    padding: clamp(90px, 11vw, 140px) var(--gutter);
    border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: none; }
.container { max-width: var(--container); margin: 0 auto; }

.section-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: clamp(56px, 8vw, 84px);
}
.section-num {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--petrol);
    white-space: nowrap;
}
.section-rule {
    flex: 1;
    height: 1px;
    background: var(--rule-strong);
    border: none;
    margin: 0;
}
.section-tag {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
}

/* ----- Section intro ----------------------------------- */
.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 90px);
    margin-bottom: clamp(60px, 8vw, 90px);
    align-items: start;
}
.section-intro h2 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    letter-spacing: -0.028em;
    max-width: 14ch;
}
.section-intro-body { max-width: 580px; }
.lead-text {
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    margin: 0 0 22px;
    color: var(--text);
    font-weight: 300;
    line-height: 1.6;
}
.muted-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}
.muted-text strong {
    color: var(--text);
    font-weight: 600;
}

/* ----- Pillars (Kompetenz) ----------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule);
}
.pillar {
    padding: 48px clamp(24px, 3vw, 40px) 48px 0;
    border-right: 1px solid var(--rule);
    position: relative;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: clamp(24px, 3vw, 40px); }
.pillar-index {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--petrol);
    margin-bottom: 22px;
}
.pillar h3 {
    font-size: clamp(1.4rem, 1.9vw, 1.7rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.022em;
}
.pillar p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
}

/* ----- Solutions list (editorial menu) ----------------- */
.solutions-list {
    list-style: none;
    margin: 0 0 clamp(80px, 10vw, 120px);
    padding: 0;
    border-top: 1px solid var(--rule);
}
.solutions-list li {
    display: grid;
    grid-template-columns: 56px minmax(200px, 260px) 1fr;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
    padding: 32px 14px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    transition: padding 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.45s;
}
.solutions-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--petrol);
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.solutions-list li:hover {
    padding-left: 28px;
    background: var(--petrol-soft);
}
.solutions-list li:hover::before { width: 2px; }
.solutions-list li:hover .sol-icon { background-color: var(--petrol); }

.solutions-list li h4 {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text);
}
.solutions-list li p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.sol-icon {
    display: block;
    width: 34px;
    height: 34px;
    background-color: var(--text-muted);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-position: center; mask-position: center;
    transition: background-color 0.4s;
}
.icon-reporting       { -webkit-mask-image: url('reporting.svg');       mask-image: url('reporting.svg'); }
.icon-zeiterfassung   { -webkit-mask-image: url('zeiterfassung.svg');   mask-image: url('zeiterfassung.svg'); }
.icon-kassenbuch      { -webkit-mask-image: url('kassenbuch.svg');      mask-image: url('kassenbuch.svg'); }
.icon-warenwirtschaft { -webkit-mask-image: url('warenwirtschaft.svg'); mask-image: url('warenwirtschaft.svg'); }

/* ----- Integration flow (the load-bearing visual) ------ */
.flow-wrapper {
    margin-top: clamp(40px, 6vw, 70px);
    padding-top: clamp(40px, 6vw, 70px);
    border-top: 1px solid var(--rule);
}
.flow-caption {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: clamp(36px, 5vw, 60px);
    display: flex;
    align-items: center;
    gap: 14px;
}
.flow-caption::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--petrol);
}

.flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    position: relative;
}
.flow-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.flow-col-label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.flow-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.flow-col--sources .flow-row { justify-content: flex-end; }
.flow-col--targets .flow-row { justify-content: flex-start; }

.flow-node {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--text);
    padding: 14px 20px;
    border: 1px solid var(--rule-strong);
    background: var(--bg-raised);
    transition: border-color 0.3s, background 0.3s;
    width: 200px;
    text-align: center;
}
.flow-node:hover {
    border-color: var(--petrol);
    background: var(--petrol-soft);
}

/* Straight-line arrow connectors */
.flow-arrow {
    display: block;
    width: 48px;
    height: 8px;
    flex-shrink: 0;
    position: relative;
}
.flow-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    height: 1px;
    background: var(--petrol);
    transform: translateY(-50%);
}
.flow-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateY(-50%);
}
.flow-arrow--right::before { left: 0; right: 6px; }
.flow-arrow--right::after  { right: 0; border-left: 6px solid var(--petrol); }
.flow-arrow--left::before  { left: 6px; right: 0; }
.flow-arrow--left::after   { left: 0; border-right: 6px solid var(--petrol); }

.flow-hub-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 38px;
    border: 1px solid var(--petrol);
    background: var(--bg-raised);
    box-shadow: 0 0 0 6px var(--petrol-soft);
    text-align: center;
    min-width: 220px;
}
.flow-hub-img {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}
.flow-hub-sub {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
}

.flow-mobile-rule { display: none; }

/* ----- Mandanten (logo wall) --------------------------- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.logo-cell {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    transition: background 0.4s;
}
.logo-cell:hover { background: var(--petrol-soft); }
.logo-cell img {
    max-width: 80%;
    max-height: 64%;
    width: auto;
    height: auto;
    opacity: 0.55;
    filter: brightness(0) invert(1);
    transition: opacity 0.45s, transform 0.45s;
}
.logo-cell:hover img {
    opacity: 1;
    transform: scale(1.04);
}

/* ----- Kontakt ----------------------------------------- */
.section-contact { padding-bottom: clamp(100px, 12vw, 150px); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(50px, 8vw, 100px);
    align-items: start;
}
.contact-info h2 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    margin-bottom: 28px;
    letter-spacing: -0.028em;
    max-width: 12ch;
}
.contact-info .lead-text {
    margin-bottom: 44px;
    color: var(--text-muted);
}
.contact-address {
    padding-top: 28px;
    border-top: 1px solid var(--rule);
    line-height: 1.85;
    color: var(--text-muted);
    font-size: 0.96rem;
}
.contact-address strong {
    color: var(--text);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* ----- Form ------------------------------------------- */
.contact-form { padding-top: 4px; }
.honeypot { position: absolute; left: -5000px; }
.form-group { margin-bottom: 30px; position: relative; }
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule-strong);
    padding: 12px 0;
    font-size: 1.02rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--petrol);
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}
.checkbox-group {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 32px 0 28px;
}
.checkbox-group input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: var(--petrol);
}
.checkbox-label {
    font-family: var(--font-sans) !important;
    font-size: 0.84rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400 !important;
    cursor: pointer;
}
.checkbox-label a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--rule-strong);
    transition: border-color 0.3s, color 0.3s;
}
.checkbox-label a:hover { color: var(--petrol); border-bottom-color: var(--petrol); }
#submit-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    padding: 16px 42px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s, border-color 0.4s;
}
#submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--petrol);
    transform: translateY(101%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}
#submit-btn:hover {
    color: var(--bg);
    border-color: var(--petrol);
}
#submit-btn:hover::before { transform: translateY(0); }
.form-success {
    color: var(--petrol);
    font-weight: 600;
    display: block;
    margin-top: 18px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* ----- Footer ----------------------------------------- */
.site-footer {
    padding: 36px var(--gutter);
    border-top: 1px solid var(--rule);
    font-size: 0.82rem;
    color: var(--text-faint);
    background: var(--bg-deep);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.footer-inner p { margin: 0; letter-spacing: 0.02em; }
.footer-inner nav { display: flex; gap: 28px; }
.footer-inner a {
    text-decoration: none;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.74rem;
    text-transform: uppercase;
    transition: color 0.3s;
}
.footer-inner a:hover { color: var(--petrol); }

/* ----- Reveal animation ------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ----- Reduced motion --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ------------------------------------- */
@media (max-width: 1000px) {
    .masthead-nav { gap: 22px; }
    .masthead-nav a { font-size: 0.66rem; letter-spacing: 0.14em; }
    .masthead-logo img { height: 30px; }

    .section-intro { grid-template-columns: 1fr; gap: 28px; }

    .pillars { grid-template-columns: 1fr; border-top: none; }
    .pillar {
        border-right: none;
        border-top: 1px solid var(--rule);
        padding: 40px 0 !important;
    }

    .solutions-list li {
        grid-template-columns: 42px 1fr;
        gap: 22px;
        padding: 26px 8px;
        align-items: flex-start;
    }
    .solutions-list li:hover { padding-left: 22px; }
    .solutions-list li .sol-icon {
        grid-row: 1 / span 2;
        margin-top: 2px;
        width: 30px;
        height: 30px;
    }
    .solutions-list li h4 { grid-column: 2; margin-bottom: 6px; }
    .solutions-list li p { grid-column: 2; }

    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-cell { min-height: 140px; padding: 24px; }

    .contact-grid { grid-template-columns: 1fr; gap: 56px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 760px) {
    /* Flow diagram collapses to vertical stack */
    .flow {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .flow-col, .flow-hub-wrap {
        grid-column: 1;
    }
    .flow-col { margin-bottom: 0; }
    .flow-col--sources .flow-row,
    .flow-col--targets .flow-row { justify-content: stretch; }
    .flow-row .flow-node { width: 100%; }
    .flow-arrow { display: none; }
    .flow-mobile-rule {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        position: relative;
    }
    .flow-mobile-rule::before {
        content: "";
        position: absolute;
        top: 8px;
        bottom: 24px;
        left: 50%;
        width: 1px;
        background: var(--petrol);
        transform: translateX(-50%);
    }
    .flow-mobile-rule::after {
        content: "";
        position: absolute;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid var(--petrol);
    }
    .flow-hub { min-width: 0; width: 100%; }
}

@media (max-width: 600px) {
    .masthead { padding: 14px var(--gutter); }
    .masthead-nav { display: none; }

    .hero { padding-top: 80px; padding-bottom: 70px; }
    .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
    .hero-lead { font-size: 1rem; }
    .hero-actions { gap: 20px; }
    .btn-primary, #submit-btn { padding: 14px 30px; font-size: 0.72rem; }

    .section-meta { gap: 16px; }
    .section-tag { font-size: 0.66rem; letter-spacing: 0.14em; }
}
