/* ============================================
   CarstenOldenburg.dk – Design System
   "No bullshit" – Grid-based, clean, light
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg-primary: #F5F3EE;
    --bg-alt: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #0F1B3D;
    --text-secondary: #5A6070;
    --text-muted: #8A8F9C;
    --accent-navy: #0F1B3D;
    --accent-sand: #E8E0D0;
    --accent-warm: #D4CBB8;
    --border-color: #C8C0B0;
    --border-light: #E0DAD0;
    --success: #2D6A4F;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --max-width: 1100px;
    --nav-height: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: 200ms ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--space-md));
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-navy);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.7;
}

::selection {
    background: var(--accent-navy);
    color: #fff;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    background: var(--accent-navy);
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-lg, 12px);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(15, 27, 61, 0.15);
}

.btn-primary:hover {
    background: #172449;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 27, 61, 0.25);
    color: #FFFFFF;
    opacity: 1;
}

/* --- Section Base --- */
.section {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent-navy);
    margin-top: var(--space-sm);
    border-radius: 2px;
}

/* ============================================
   Navigation
   ============================================ */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition), box-shadow var(--transition);
}

#main-nav.scrolled {
    background: rgba(245, 243, 238, 0.98);
    box-shadow: 0 1px 8px rgba(15, 27, 61, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-name {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-navy);
    transition: width 300ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 300ms ease;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    border-top: 1px solid var(--border-light);
}

.nav-mobile a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition);
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-live {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 850px;
}

.stat-box {
    padding: var(--space-md) var(--space-lg);
    border-right: 1px solid var(--border-color);
    background: var(--bg-alt);
}

.stat-box:last-child {
    border-right: none;
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Services
   ============================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.service-card {
    padding: var(--space-lg);
    border-right: 1px solid var(--border-color);
    background: var(--bg-alt);
    transition: background var(--transition);
}

.service-card:last-child {
    border-right: none;
}

.service-card:hover {
    background: var(--accent-sand);
}

.service-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-navy);
    background: var(--accent-sand);
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: var(--space-sm);
}

.service-card:hover .service-tag {
    background: var(--accent-warm);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Cases
   ============================================ */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.case-item {
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: 0;
    transition: background var(--transition);
}

.case-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.case-item:last-child {
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.case-item:only-child {
    border-radius: var(--radius-md);
    border-bottom: 1px solid var(--border-color);
}

.case-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.case-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
}

.case-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 80px;
}

.case-row p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.case-result {
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: underline;
    text-decoration-color: var(--accent-sand);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* ============================================
   About / CV
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-bio {
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-right: 1px solid var(--border-color);
}

.about-photo-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.about-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
}

.about-bio h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.about-role {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.about-bio p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.65;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.value-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-navy);
    background: var(--accent-sand);
    padding: 4px 12px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.about-cv {
    padding: var(--space-xl);
    background: var(--bg-primary);
}

.cv-header {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-light);
}

.cv-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cv-item {
    display: flex;
    gap: var(--space-md);
    align-items: baseline;
}

.cv-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 90px;
}

.cv-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.target-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.target-item {
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ============================================
   Section Description
   ============================================ */
.section-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    max-width: 600px;
}

.cv-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.cv-download-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg-primary);
    background: var(--text-primary);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition);
}

.cv-download-btn:hover {
    background: var(--accent-navy);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.cta-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.cta-link {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-sand);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.cta-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* ============================================
   Journal
   ============================================ */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.journal-card {
    padding: var(--space-lg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: background var(--transition);
    cursor: pointer;
}

.journal-card:last-child {
    border-right: none;
}

.journal-card:hover {
    background: var(--bg-alt);
}

.journal-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.journal-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.journal-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.journal-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-navy);
    background: var(--accent-sand);
    padding: 2px 8px;
    border-radius: 3px;
    align-self: flex-start;
}

/* ============================================
   CV Timeline
   ============================================ */
.cv-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.cv-chapter {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
}

.cv-chapter-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-alt);
    margin: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:hover {
    background: var(--bg-alt);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-top: 2px;
    white-space: nowrap;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-navy);
    background: var(--accent-sand);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.cv-competences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.competence-card {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    transition: background var(--transition);
}

.competence-card:nth-child(2n) {
    border-right: none;
}

.competence-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.competence-card:hover {
    background: var(--bg-alt);
}

.competence-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.competence-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cv-personal {
    padding: var(--space-md) var(--space-lg);
}

.cv-personal p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contact-info {
    padding: var(--space-xl);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
}

.contact-tagline {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
}

.contact-link:hover {
    border-color: var(--accent-navy);
    background: var(--accent-sand);
    opacity: 1;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-link-linkedin {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
}

.linkedin-icon {
    width: 22px;
    height: 22px;
    color: #0A66C2;
    flex-shrink: 0;
    transition: color var(--transition);
}

.contact-link-linkedin:hover .linkedin-icon {
    color: var(--accent-navy);
}

/* ============================================
   Booking Widget
   ============================================ */
.booking-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    grid-column: 1 / -1;
    order: 10;
}

.booking-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.booking-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.booking-loading {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.booking-dates {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-week {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem 0 0.75rem 0.75rem;
    border-left: 3px solid var(--border-light);
    transition: border-color 0.3s ease;
}

.booking-week.current-week {
    border-left-color: var(--accent-navy);
}

.booking-week-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    min-width: 3rem;
    padding-top: 0.85rem;
    flex-shrink: 0;
}

.booking-week.current-week .booking-week-label {
    color: var(--accent-navy);
}

.booking-week-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
    flex: 1;
}

.booking-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    position: relative;
}

.booking-date-btn:not(.passive):hover {
    border-color: var(--accent-navy);
    background: var(--accent-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 33, 56, 0.15);
}

.booking-date-btn:not(.passive):hover .booking-day-name,
.booking-date-btn:not(.passive):hover .booking-day-num,
.booking-date-btn:not(.passive):hover .booking-day-month {
    color: rgba(255, 255, 255, 0.95);
}

.booking-date-btn.passive {
    opacity: 0.35;
    cursor: default;
    background: var(--bg-alt);
    border-color: transparent;
    color: var(--text-muted);
    overflow: hidden;
}

.booking-date-btn.passive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 20 Q50 45 82 80' stroke='%23c0392b' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M82 20 Q50 45 18 80' stroke='%23c0392b' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    opacity: 0.55;
    pointer-events: none;
}

.booking-day-name {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1px;
}

.booking-day-num {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.booking-day-month {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.booking-date-selected {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.booking-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-sm);
}

.booking-slot-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-slot-btn:hover {
    border-color: var(--accent-navy);
    background: var(--accent-navy);
    color: white;
}

.booking-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.booking-back:hover {
    color: var(--text-primary);
}

.booking-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.booking-input:focus {
    outline: none;
    border-color: var(--accent-navy);
}

.booking-input::placeholder {
    color: var(--text-muted);
}

.booking-submit {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: var(--accent-navy);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-bottom: 0.5rem;
}

.booking-submit:hover {
    opacity: 0.9;
}

.booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-confirmed {
    text-align: center;
    padding: var(--space-md) 0;
}

.booking-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.booking-confirmed-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.booking-confirmed-detail {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.booking-confirmed-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-brand {
    padding: var(--space-xl);
    background: var(--accent-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-logo {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-md);
    /* No filter needed — SVG renders white letters on transparent navy circle */
}

.contact-company {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

.contact-location {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-lg) 0;
    border-top: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-privacy-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 33, 56, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.cookie-inner a {
    color: var(--accent-sand);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: none;
}

.cookie-accept {
    background: var(--accent-sand);
    color: var(--accent-navy);
}

.cookie-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn:hover {
    opacity: 0.85;
}

/* ============================================
   Privacy Policy Page
   ============================================ */
.privacy-content {
    max-width: 720px;
}

.privacy-updated {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
}

.privacy-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.privacy-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}

.privacy-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.privacy-content a {
    color: var(--accent-navy);
    text-decoration: underline;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stat-grid .fade-in:nth-child(2) {
    transition-delay: 100ms;
}

.stat-grid .fade-in:nth-child(3) {
    transition-delay: 200ms;
}

.service-grid .fade-in:nth-child(2) {
    transition-delay: 80ms;
}

.service-grid .fade-in:nth-child(3) {
    transition-delay: 160ms;
}

.cases-list .fade-in:nth-child(2) {
    transition-delay: 100ms;
}

.cases-list .fade-in:nth-child(3) {
    transition-delay: 200ms;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .stat-box:last-child {
        border-bottom: none;
    }

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

    .service-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .service-card:last-child {
        border-bottom: none;
    }

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

    .about-bio {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

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

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

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

    .journal-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .journal-card:last-child {
        border-bottom: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .cv-competences {
        grid-template-columns: 1fr;
    }

    .competence-card {
        border-right: none !important;
    }

    .competence-card:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-light);
    }

    .competence-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-mobile.open {
        display: flex;
    }

    #hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--space-xl));
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .case-row {
        flex-direction: column;
        gap: 2px;
    }

    .case-tag {
        width: auto;
    }

    .cv-item {
        flex-direction: column;
        gap: 2px;
    }

    .cv-tag {
        width: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
}

/* ============================================
   Building in Public — Live Signal Styles
   ============================================ */

.live-badge-bip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 106, 79, 0.06);
    border: 1.5px solid rgba(45, 106, 79, 0.2);
    color: var(--success);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.live-dot-bip {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--success);
    border-radius: 50%;
    animation: bip-pulse 2s infinite;
    box-shadow: 0 0 8px rgba(45, 106, 79, 0.5);
}

@keyframes bip-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(45, 106, 79, 0.5);
    }
    50% {
        opacity: 0.35;
        box-shadow: 0 0 14px rgba(45, 106, 79, 0.15);
    }
}

.live-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: bip-pulse 2.5s infinite;
}

.bip-stat {
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

/* BIP Cards — dedicated stat cards */
.bip-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.bip-card {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.bip-card:hover {
    border-color: rgba(45, 106, 79, 0.25);
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.06);
}

.bip-card-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.bip-card-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.bip-card-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .bip-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bip-card {
        padding: 1.5rem 1.25rem;
    }

    .bip-card-number {
        font-size: 2.4rem;
    }
}