/* ============================================
   Studio Sten -- Public Site Styles
   "Editorial Cinema" Design v2
   Upgraded with workshop.html DNA
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* Text wrapping: prevent orphans and widows */
p, li, h1, h2, h3 {
    text-wrap: balance;
    orphans: 3;
    widows: 3;
}

/* Film grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 10000;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

/* --- Accessible Focus Styles --- */
/* Only show focus ring for keyboard users (not mouse clicks) */
:focus-visible {
    outline: 2px solid var(--charcoal);
    outline-offset: 3px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10001;
    padding: 0.8rem 1.5rem;
    background: var(--charcoal);
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: top 0.2s ease;
}

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

/* Visually hidden (accessible to screen readers) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- CSS Variables (Cream/Terracotta Palette) --- */
:root {
    /* Light theme colors */
    --bg: #ffffff;
    --bg-section: #FAF8F5;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #333333;
    --text-dim: #7A756C;
    --accent: #4A4535;
    --border: #E8E4DB;

    /* Section background colors */
    --charcoal: #2C2420;
    --olive: #4A4535;
    --amber: #D4A574;

    /* Core palette (synced with Studion) */
    --terracotta: #8B4744;
    --cream: #F5F1EB;
    --cream-dark: #E8E4DB;
    --warm-gray: #9B9488;
    --gray: #777;

    /* Earthy tones */
    --clay: #A0695C;
    --sage: #8B9B7A;
    --sand: #C4B9A8;

    /* Accent colors */
    --sky: #5B8FA8;
    --signal: #C2302E;

    /* Font families */
    --font-display: 'InAHurry', 'Courier New', Courier, monospace;
    --font-body: 'Courier New', Courier, monospace;
    --font-editorial: 'Courier New', Courier, monospace;

    /* Layout */
    --max-width: 1800px;
    --padding-desktop: 10vw;
    --padding-mobile: 6vw;
    --header-height: 70px;
    --transition: 0.3s ease;
}

/* --- Cross-browser Fixes --- */

/* Modern viewport units with fallback */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Smooth scrolling with iOS momentum */
html {
    -webkit-overflow-scrolling: touch;
}

/* Fix iOS button styling */
input[type="submit"],
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix backdrop-filter for Firefox */
@supports not (backdrop-filter: blur(20px)) {
    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-dropdown__menu {
        background: rgba(255, 255, 255, 0.98);
    }

    body:has(.hero) .header:not(.scrolled) .nav-dropdown__menu {
        background: rgba(15, 12, 10, 0.95);
    }
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(.hero)) {
    .header__nav a {
        color: var(--text-muted);
    }

    .header__logo img {
        filter: brightness(0);
    }

    .header__burger span {
        background: var(--text);
    }

    .header__lang a {
        color: rgba(0,0,0,0.5);
        text-shadow: none;
    }

    .header__lang-active {
        color: rgba(0,0,0,0.9);
        text-shadow: none;
    }

    .header__lang-separator {
        color: rgba(0,0,0,0.25);
    }
}

/* --- Typography --- */

/* InAHurry font from Supabase Storage */
@font-face {
    font-family: 'InAHurry';
    src: url('https://wcqlyoarybbaxwxyelfb.supabase.co/storage/v1/object/public/fonts/InAHurry-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Accent marks for diacritics in InAHurry (font lacks åöä) */
.accent-e {
    position: relative;
    display: inline-block;
}
.accent-e::after {
    content: ',';
    position: absolute;
    top: -0.55em;
    left: 0.35em;
    font-family: 'InAHurry', 'Courier New', monospace;
    font-size: 1.6em;
    line-height: 1;
    pointer-events: none;
    transform: rotate(180deg);
}

/* Umlaut for ö in InAHurry (two dots above o) */
.accent-o {
    position: relative;
    display: inline-block;
}
.accent-o::after {
    content: '..';
    position: absolute;
    top: -0.45em;
    left: 0.05em;
    font-family: 'InAHurry', 'Courier New', monospace;
    font-size: 0.7em;
    letter-spacing: 0.15em;
    line-height: 1;
    pointer-events: none;
}

/* Umlaut for ä in InAHurry (two dots above a) */
.accent-a {
    position: relative;
    display: inline-block;
}
.accent-a::after {
    content: '..';
    position: absolute;
    top: -0.45em;
    left: 0.05em;
    font-family: 'InAHurry', 'Courier New', monospace;
    font-size: 0.7em;
    letter-spacing: 0.15em;
    line-height: 1;
    pointer-events: none;
}

/* Ring for å in InAHurry (small o above a) */
.accent-ring {
    position: relative;
    display: inline-block;
}
.accent-ring::after {
    content: 'o';
    position: absolute;
    top: -0.35em;
    left: 0.12em;
    font-family: 'InAHurry', 'Courier New', monospace;
    font-size: 0.4em;
    line-height: 1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: normal;
    line-height: 1.15;
}

h1 {
    font-family: var(--font-display);
    font-weight: normal;
}

/* Editorial/quotes */
.editorial, .quote, .pull-quote, blockquote {
    font-family: var(--font-body);
}

.label {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: normal;
}

/* Highlight text */
.highlight {
    color: var(--accent);
    font-weight: bold;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* --- Hero fadeUp Cascade --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal: Standard --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Scroll Reveal: Split (Curtain Effect) --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    will-change: transform, opacity;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    will-change: transform, opacity;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Scroll Reveal: Scale --- */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Scroll Reveal: Dramatic (Bounce Scale) --- */
.reveal-dramatic {
    opacity: 0;
    transform: scale(0.85);
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-dramatic.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Scroll Reveal: Staggered (Form Fields) --- */
.reveal-stagger {
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger-1 { transition-delay: 0.1s; }
.reveal-stagger-2 { transition-delay: 0.2s; }
.reveal-stagger-3 { transition-delay: 0.3s; }
.reveal-stagger-4 { transition-delay: 0.4s; }
.reveal-stagger-5 { transition-delay: 0.5s; }
.reveal-stagger-6 { transition-delay: 0.6s; }

/* --- Scroll Reveal: Timeline (Card-specific) --- */
.reveal-timeline {
    opacity: 0;
    transform: translateY(25px);
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-timeline.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-timeline.visible:hover {
    transform: translateY(-8px);
}

/* --- Ken Burns: Hero (4-point organic) --- */
@keyframes heroFloat {
    0%, 100% {
        transform: scale(1.15) translate(0, 0);
    }
    25% {
        transform: scale(1.18) translate(-1%, -0.5%);
    }
    50% {
        transform: scale(1.15) translate(-0.5%, 0.5%);
    }
    75% {
        transform: scale(1.18) translate(0.5%, -0.3%);
    }
}

/* --- Ken Burns: Image Break (2-point) --- */
@keyframes kenBurnsImage {
    0%, 100% {
        transform: scale(1.2) translate(0, 0);
    }
    50% {
        transform: scale(1.28) translate(-2%, -1%);
    }
}

/* --- Ken Burns: Soft / Hosts (3-point subtle) --- */
@keyframes kenBurnsSoft {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    33% {
        transform: scale(1.06) translate(-1%, 0.5%);
    }
    66% {
        transform: scale(1.03) translate(0.5%, -0.5%);
    }
}

/* --- Ken Burns: Generic (legacy compat) --- */
@keyframes kenBurns {
    0%, 100% {
        transform: scale(1.15) translate(0, 0);
    }
    50% {
        transform: scale(1.2) translate(-1%, -0.5%);
    }
}

/* --- Number Float Animation --- */
@keyframes numberFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}


/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--padding-desktop);
    padding-right: var(--padding-desktop);
}

.section {
    padding: 10vw 0;
}

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

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

/* Alternating dark sections */
.section--charcoal {
    background-color: var(--charcoal);
    color: #ffffff;
}

.section--charcoal .text-muted,
.section--charcoal p {
    color: rgba(255, 255, 255, 0.7);
}

.section--charcoal .label {
    color: rgba(255, 255, 255, 0.5);
}

.section--olive {
    background-color: var(--olive);
    color: #ffffff;
}

.section--olive .text-muted,
.section--olive p {
    color: rgba(255, 255, 255, 0.7);
}


/* ============================================
   NEW SECTION TYPES (from workshop)
   ============================================ */

/* --- Split Section (50/50 grid with image) --- */
.section--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

.section--split .split-text {
    padding: var(--padding-desktop);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section--split .split-text h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: normal;
    line-height: 1;
    margin-bottom: 3rem;
}

.section--split .split-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.section--split .split-image {
    position: relative;
    overflow: hidden;
}

.section--split .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Statement Section (fullwidth text, lots of whitespace) --- */
.section--statement {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--padding-desktop);
    position: relative;
}

.section--statement .statement-inner {
    max-width: 900px;
    position: relative;
}

.section--statement .statement-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.section--statement .statement-body {
    max-width: 550px;
    margin-left: auto;
}

.section--statement .statement-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

/* --- Process Section (three-column with large numbers) --- */
.section--process {
    padding: var(--padding-desktop);
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.process-step {
    position: relative;
    cursor: default;
}

.process-number {
    font-family: var(--font-display);
    font-size: clamp(6rem, 12vw, 10rem);
    line-height: 0.8;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: numberFloat 6s ease-in-out infinite;
}

.process-step:nth-child(2) .process-number {
    animation-delay: -2s;
}

.process-step:nth-child(3) .process-number {
    animation-delay: -4s;
}

.process-step:hover .process-number {
    transform: translateX(10px) rotate(-3deg);
}

.process-word {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: normal;
    line-height: 1;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .process-word {
    transform: translateX(5px);
}

.process-desc {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 280px;
    transition: opacity 0.4s ease;
}

.process-step:hover .process-desc {
    opacity: 0.7;
}

/* --- Image Break Section (60vh fullwidth image with Ken Burns) --- */
.section--image-break {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.section--image-break img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
    animation: kenBurnsImage 25s ease-in-out infinite;
}

/* --- CTA Section (dark background with large heading) --- */
.section--cta {
    background-color: var(--charcoal);
    color: #ffffff;
    padding: 8vw 10vw;
    text-align: center;
}

.section--cta h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: normal;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.section--cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.section--cta .btn {
    border-color: #ffffff;
    color: #ffffff;
}

.section--cta .btn:hover {
    background: #ffffff;
    color: var(--charcoal);
}

/* --- Doodle Break (decorative SVG between sections) --- */
.doodle-break {
    position: relative;
    z-index: 100;
    margin-top: -14vw;
    margin-bottom: -10vw;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.doodle-break img {
    width: 50%;
    max-width: 650px;
    height: auto;
    opacity: 0.9;
    filter: brightness(0);
}

/* Doodle birds variant */
.doodle-birds {
    position: relative;
    z-index: 100;
    margin-top: -8vw;
    margin-bottom: -6vw;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.doodle-birds img {
    width: 45%;
    max-width: 600px;
    height: auto;
    opacity: 0.85;
    clip-path: inset(0 0 0 5%);
}


/* ============================================
   HEADER
   ============================================ */

/* --- Services Dropdown --- */
.nav-dropdown {
    position: relative;
}

/* Dropdown trigger with chevron indicator */
.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown > a::after {
    content: '';
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -2px;
    flex-shrink: 0;
}

.nav-dropdown:hover > a::after,
.nav-dropdown.open > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px) scale(0.98);
    transform-origin: top center;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    margin-top: 0.8rem;
    z-index: 1001;
}

/* Invisible bridge between trigger and dropdown to keep hover alive */
.nav-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -0.8rem;
    left: 0;
    right: 0;
    height: 0.8rem;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.header__nav .nav-dropdown__menu a {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s ease, padding-left 0.2s ease;
    padding: 0.9rem 2rem;
    display: block;
    position: relative;
}

.header__nav .nav-dropdown__menu a:hover {
    color: var(--text);
    padding-left: 2.3rem;
}

.nav-dropdown__menu a::after {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--charcoal);
    transition: width 0.2s ease;
    transform: translateY(-50%);
}

.nav-dropdown__menu a:hover::after {
    width: 0.5rem;
}

/* On hero pages (not scrolled): frosted dark glass (WCAG AA) */
body:has(.hero) .header:not(.scrolled) .nav-dropdown__menu {
    background: rgba(15, 12, 10, 0.75);
    backdrop-filter: blur(32px) saturate(1.3);
    -webkit-backdrop-filter: blur(32px) saturate(1.3);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 12px 40px rgba(0, 0, 0, 0.1);
}

body:has(.hero) .header:not(.scrolled) .nav-dropdown__menu a {
    color: rgba(255, 255, 255, 0.9);
}

body:has(.hero) .header:not(.scrolled) .nav-dropdown__menu a:hover {
    color: #ffffff;
}

body:has(.hero) .header:not(.scrolled) .nav-dropdown__menu a::after {
    background: rgba(255, 255, 255, 0.6);
}

/* Mobile: sub-items under parent link */
.mobile-menu .mobile-dropdown__items {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0.2rem;
    margin-bottom: 0.6rem;
}

.mobile-menu .mobile-dropdown__items a {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.2vw var(--padding-desktop);
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
    padding: 16px var(--padding-desktop);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Gradient on hero pages for nav readability (WCAG AA) */
body:has(.hero) .header:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.18) 70%, transparent 100%);
}

/* Header logo */
.header__logo img {
    height: 50px;
    width: auto;
    transition: filter 0.3s ease;
}

/* On pages without hero, logo should be dark (invert the white logo) */
body:not(:has(.hero)) .header__logo img {
    filter: brightness(0);
}

/* On hero pages, logo stays white initially, then inverts when scrolled */
body:has(.hero) .header.scrolled .header__logo img {
    filter: brightness(0);
}

.header__lang {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    gap: 0.15rem;
    align-items: center;
}
.header__lang-separator { color: rgba(255,255,255,0.5); font-weight: 300; user-select: none; }
.header__lang a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; text-shadow: 0 1px 3px rgba(0,0,0,0.4); padding: 0.3rem 0.4rem; }
.header__lang a:hover { color: #ffffff; }
.header__lang-active { color: #ffffff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.4); padding: 0.3rem 0.4rem; }

/* Scrolled state: lang switcher adapts colors */
.header.scrolled .header__lang-separator { color: rgba(0,0,0,0.25); }
.header.scrolled .header__lang a { color: rgba(0,0,0,0.5); text-shadow: none; }
.header.scrolled .header__lang a:hover { color: rgba(0,0,0,0.9); }
.header.scrolled .header__lang-active { color: rgba(0,0,0,0.9); font-weight: 600; text-shadow: none; }

/* On pages without hero */
body:not(:has(.hero)) .header__lang-separator { color: rgba(0,0,0,0.25); }
body:not(:has(.hero)) .header__lang a { color: rgba(0,0,0,0.5); text-shadow: none; }
body:not(:has(.hero)) .header__lang a:hover { color: rgba(0,0,0,0.9); }
body:not(:has(.hero)) .header__lang-active { color: rgba(0,0,0,0.9); font-weight: 600; text-shadow: none; }

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__nav a {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition), text-shadow var(--transition);
    font-weight: 400;
}

/* White nav links on hero (WCAG AA: white on dark gradient) */
body:has(.hero) .header:not(.scrolled) .header__nav a {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

body:has(.hero) .header.scrolled .header__nav a {
    color: var(--text-muted);
    text-shadow: none;
}

.header__nav a:hover {
    color: var(--text);
}

/* Active link styling */
.header__nav a.active {
    color: var(--text);
    position: relative;
}

.header__nav a.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    opacity: 0.4;
}

body:has(.hero) .header:not(.scrolled) .header__nav a:hover {
    color: #ffffff;
}

body:has(.hero) .header:not(.scrolled) .header__nav a.active {
    color: #ffffff;
}

body:has(.hero) .header.scrolled .header__nav a:hover {
    color: var(--text);
}

/* Hamburger menu */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all var(--transition);
}

body:has(.hero) .header__burger span {
    background: #ffffff;
}

body:has(.hero) .header.scrolled .header__burger span {
    background: var(--text);
}

.header__burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.open span:nth-child(2) {
    opacity: 0;
}

.header__burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Burger always dark when menu is open (cream background) */
.header__burger.open span {
    background: var(--text) !important;
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bg-section);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 var(--padding-mobile) 15vh;
    gap: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu > a,
.mobile-menu > .mobile-dropdown__items,
.mobile-menu > .mobile-menu__lang {
    transform: translateY(15px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.mobile-menu.open > a,
.mobile-menu.open > .mobile-dropdown__items,
.mobile-menu.open > .mobile-menu__lang {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.open > :nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open > :nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open > :nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open > :nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open > :nth-child(5) { transition-delay: 0.25s; }

.mobile-menu > a {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 3rem);
    font-weight: normal;
    color: var(--text);
    transition: opacity var(--transition);
    padding: 0.4rem 0;
}

.mobile-menu > a:hover {
    opacity: 0.6;
}

/* Active page in mobile menu */
.mobile-menu > a.active {
    color: var(--charcoal);
}

.mobile-menu__lang {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    width: 100%;
}
.mobile-menu__lang a {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.3rem 0.4rem;
}
.mobile-menu__lang-active {
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.4rem;
}
.mobile-menu__lang-separator {
    color: var(--border);
    user-select: none;
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroFloat 20s ease-in-out infinite;
    will-change: transform;
}

/* Hero gradient overlay: darker gradient for WCAG AA compliance */
.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 0 var(--padding-desktop);
}

/* Hero fadeUp cascade: label */
.hero__tagline {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Hero fadeUp cascade: title */
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: normal;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 0.85;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5),
                 0 0px 30px rgba(0,0,0,0.3);
}

.hero__logo {
    width: clamp(200px, 25vw, 400px);
    margin: 0 auto 40px;
}

/* Hero fadeUp cascade: subtitle */
.hero__subtitle {
    font-family: var(--font-editorial);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    opacity: 0;
    animation: fadeUp 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Hero fadeUp cascade: meta */
.hero__meta {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Hero fadeUp cascade: CTA */
.hero__cta {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: white;
    color: var(--text);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 0;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeUp 1s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__cta:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero__cta span {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.hero__cta:hover span {
    transform: translateX(5px);
}

/* --- Hero Aliases (hyphenated class names used in HTML) --- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    animation: heroFloat 20s ease-in-out infinite;
    will-change: transform;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 3rem;
    color: white;
    text-align: center;
}

.hero-label {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: normal;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 0.85;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5),
                 0 0px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-editorial);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    max-width: 550px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-cta {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: var(--charcoal);
    color: #ffffff;
    padding: 1.2rem 3rem;
    margin-top: 2rem;
    border: 1px solid var(--charcoal);
    border-radius: 0;
    transition: all 0.4s ease;
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 1s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta:hover {
    background: #ffffff;
    color: var(--charcoal);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-cta span {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.hero-cta:hover span {
    transform: translateX(5px);
}

/* Page hero (non-fullscreen) */
.page-hero {
    padding-top: calc(120px + 4.4vw);
    padding-bottom: 80px;
}

.page-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: normal;
    margin-bottom: 30px;
}

.page-hero__text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.page-hero__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: bold;
    border: 1px solid var(--text);
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
    border-radius: 0;
}

.btn:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn--filled {
    background: var(--text);
    color: var(--bg);
}

.btn--filled:hover {
    background: transparent;
    color: var(--text);
}

.btn--accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--accent:hover {
    background: var(--accent);
    color: #ffffff;
}

/* White button for dark sections */
.section--charcoal .btn,
.section--olive .btn {
    border-color: #ffffff;
    color: #ffffff;
}

.section--charcoal .btn:hover,
.section--olive .btn:hover {
    background: #ffffff;
    color: var(--charcoal);
}

.link-arrow {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.link-arrow::after {
    content: '\2192';
    transition: transform var(--transition);
}

.link-arrow:hover {
    color: var(--accent);
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

/* --- Consolidated Button Variants --- */
.btn-primary {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: var(--charcoal);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 1px solid var(--charcoal);
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 0;
}

.btn-primary:hover {
    background: #1E1A17;
    border-color: #1E1A17;
    transform: translateY(-2px);
}

.btn-primary span {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-primary:hover span {
    transform: translateX(5px);
}

.btn-secondary {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--charcoal);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 1px solid var(--charcoal);
    background: transparent;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 0;
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary span {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-secondary:hover span {
    transform: translateX(5px);
}

.btn-ghost {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    transition: color 0.3s ease;
    cursor: pointer;
}

.btn-ghost::after {
    content: ' \2192';
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-ghost:hover {
    color: var(--charcoal);
}

.btn-ghost:hover::after {
    transform: translateX(5px);
}


/* ============================================
   SUBPAGE SHARED COMPONENTS
   ============================================ */

/* --- Subpage Opening (split-layout for service subpages) --- */
.subpage-opening-bg {
    background: var(--cream);
}

.subpage-opening {
    background: var(--cream);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: stretch;
    max-width: none;
    margin: 0;
    gap: 0;
}

.subpage-opening__text {
    text-align: left;
    padding: 160px 6vw 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

.subpage-opening__label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: normal;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subpage-opening__back {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
    text-decoration: none;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: color 0.3s ease;
}

.subpage-opening__back:hover {
    color: var(--charcoal);
}

.subpage-opening__back::before {
    content: '\2190 ';
}

.subpage-opening__title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: normal;
    color: var(--text);
    line-height: 0.85;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subpage-opening__subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text);
    max-width: 500px;
    margin: 0;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subpage-opening__image {
    height: auto;
    min-height: 85vh;
    overflow: hidden;
    order: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subpage-opening__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Keynote Item (magazine alternating layout) --- */
.keynote-item {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.keynote-item:first-child {
    padding-top: 0;
}

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

.keynote-item--reverse {
    grid-template-columns: 45% 55%;
}

.keynote-item--reverse .keynote-item__image {
    order: -1;
}

.keynote-item__text {
    padding: 0 40px;
}

.keynote-item--reverse .keynote-item__text {
    padding: 0 40px;
}

.keynote-item__image {
    overflow: hidden;
    height: 350px;
}

.keynote-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.keynote-item:hover .keynote-item__image img {
    transform: scale(1.03);
}

.keynote-item__badge {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.keynote-item__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: normal;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.keynote-item__desc {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.keynote-item__lang {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.keynote-item__cta {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.keynote-item__cta:hover {
    color: #1E1A17;
}

/* --- Phase Section (for bygga.html) --- */
.phase-section {
    padding: 80px var(--padding-desktop);
}

.phase-section--white { background: var(--bg); }
.phase-section--cream { background: var(--bg-section); }

.phase-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    align-items: start;
}

.phase-section--reverse .phase-section__inner {
    grid-template-columns: 55% 45%;
}

.phase-section__image img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.phase-section__label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: normal;
}

.phase-section__heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: normal;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.phase-section__subheading {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 2rem;
}

/* --- Bridge Section (cross-links between service pages) --- */
.bridge-section {
    background: var(--bg);
    padding: 120px 2rem;
    text-align: center;
}

.bridge-section__inner {
    max-width: 600px;
    margin: 0 auto;
}

.bridge-section__heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: normal;
    color: var(--text);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.bridge-section__text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: normal;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 4rem;
}

.bridge-section__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- CTA Standard (unified "Hör av dig" section) --- */
.cta-standard {
    padding: 8vw 10vw;
    background: var(--bg-section);
    text-align: center;
}

.cta-standard__inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-standard h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: normal;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.cta-standard p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 6vw 10vw;
    background: var(--charcoal);
    text-align: center;
}

.newsletter-section__inner {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: normal;
    line-height: 0.9;
    margin-bottom: 1rem;
    color: #ffffff;
}

.newsletter-section__text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* (Subpage responsive rules moved to main 768px block below) */


/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__image {
    transform: scale(1.02);
}

.service-card__label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: normal;
}

.service-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    flex: 1;
}


/* ============================================
   CLIENT LOGOS
   ============================================ */

.logos-section {
    padding: 4rem 6vw;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3.5rem;
}

.logos-grid img {
    height: 28px;
    width: auto;
    opacity: 0.35;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logos-grid img:hover {
    opacity: 0.6;
}

/* Client logo (inline on index/startsida) */
.client-logo {
    height: 40px;
    width: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
}

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

/* --- Clients Section (index pages) --- */
.clients-section {
    padding: 5rem 6vw 6rem;
    background: var(--bg);
    text-align: center;
    position: relative;
    z-index: 10;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem 4.5rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- CTA Home Section --- */
.cta-home {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* --- Shift Text (section 2 body text) --- */
.shift-text {
    max-width: 420px;
}

.shift-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.shift-text a {
    font-size: 0.9rem;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
}

/* --- Section Divider (about page team sections) --- */
.section-divider {
    margin-bottom: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--border);
}


/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse > * {
    direction: ltr;
}

.two-col__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
}

.two-col__content h2 {
    font-size: clamp(32px, 4vw, 56px);
    margin-bottom: 30px;
}

.two-col__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}


/* ============================================
   TEAM SECTION
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.team-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
}

.team-card__photo {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 6px;
}

.team-card__title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: normal;
}

.team-card__bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.team-card__contact {
    font-size: 13px;
    color: var(--text-dim);
}

.team-card__contact a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.team-card__contact a:hover {
    color: var(--accent);
}

/* Contact team cards (kontakt page) */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-card {
    display: flex;
    gap: 24px;
    align-items: start;
}

.contact-card__photo {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}

.contact-card__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 4px;
}

.contact-card__title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: normal;
}

.contact-card__info {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.contact-card__info a {
    transition: color var(--transition);
}

.contact-card__info a:hover {
    color: var(--accent);
}

/* --- Team Contact Cards (kontakt page) --- */
.team-contact-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-contact-card__photo-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.team-contact-card__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.team-contact-card__info h3 {
    font-family: 'InAHurry', 'Courier New', Courier, monospace;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: normal;
    margin-bottom: 0.3rem;
}

.team-contact-card__info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}


/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    max-width: 700px;
}

.contact-form h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 16px;
}

.contact-form__intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: normal;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    border-radius: 0;
}

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

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

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

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239B9488' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}


/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.testimonial__quote {
    font-family: var(--font-editorial);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

.testimonial__author {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
}

.testimonial__author strong {
    color: var(--text);
    font-weight: 500;
}


/* ============================================
   COURSE MODULES
   ============================================ */

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.module-card {
    padding: 40px 30px;
    border: 1px solid var(--border);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.module-card__icon {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 0.8;
}

.module-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 12px;
}

.module-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}


/* ============================================
   LECTURE CARDS
   ============================================ */

.lecture {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
    padding: 10vw 0;
    border-bottom: 1px solid var(--border);
}

.lecture:last-child {
    border-bottom: none;
}

.lecture--reverse {
    direction: rtl;
}

.lecture--reverse > * {
    direction: ltr;
}

.lecture__image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0;
}

.lecture__meta {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.lecture__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: normal;
    margin-bottom: 24px;
}

.lecture__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}


/* ============================================
   CONTACT INFO SECTION
   ============================================ */

.contact-section {
    padding: 10vw 0;
    border-top: 1px solid var(--border);
}

.contact-section h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 40px;
}

.contact-section__email {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-section__email a {
    color: var(--text);
    transition: color var(--transition);
}

.contact-section__email a:hover {
    color: var(--accent);
}

.contact-section__people {
    display: flex;
    gap: 60px;
}

.contact-person {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.contact-person strong {
    color: var(--text);
    font-weight: 500;
    display: block;
}

.contact-person a {
    transition: color var(--transition);
}

.contact-person a:hover {
    color: var(--accent);
}

.contact-section__social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-section__social a {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color var(--transition);
}

.contact-section__social a:hover {
    color: var(--accent);
}


/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter {
    padding: 10vw 0;
    background: var(--charcoal);
    text-align: center;
}

.newsletter h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: normal;
    margin-bottom: 16px;
    color: #ffffff;
}

.newsletter__text {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.newsletter__form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0;
}

.newsletter__form input {
    flex: 1;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-radius: 0;
}

.newsletter__form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter__form button {
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: var(--charcoal);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: normal;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    border-radius: 0;
}

.newsletter__form button:hover {
    background: var(--accent);
    color: #ffffff;
}

.newsletter__privacy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: var(--charcoal);
}

.footer__logo img {
    height: 25px;
    opacity: 0.5;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer__social a {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
    padding: 0.8rem 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer__social a:hover {
    color: #ffffff;
}

.footer a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}


/* ============================================
   ADDRESS BLOCK (homepage)
   ============================================ */

.address-section {
    padding: 8vw 0;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.address-block__label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: normal;
}

.address-block p,
.address-block a {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.address-block a {
    transition: color var(--transition);
}

.address-block a:hover {
    color: var(--accent);
}


/* ============================================
   NAV DOTS (Sticky Progress)
   ============================================ */

.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dots__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dots__dot:hover,
.nav-dots__dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* (Nav dots responsive rule moved to main 768px block below) */


/* ============================================
   SCHEDULE CARDS (from workshop)
   ============================================ */

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.schedule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.schedule-card-illustration {
    height: 280px;
    background: #f8f8f6;
    overflow: hidden;
}

.schedule-card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule-card:hover .schedule-card-illustration img {
    transform: scale(1.05);
}

.schedule-card-content {
    padding: 2rem;
}

.schedule-card-time {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.schedule-card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    line-height: 1;
}

.schedule-card-desc {
    font-size: 0.9rem;
    line-height: 1.8;
}


/* ============================================
   HOSTS SECTION (from workshop)
   ============================================ */

.hosts {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 100vh;
}

.hosts-image {
    position: relative;
    overflow: hidden;
}

.hosts-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurnsSoft 30s ease-in-out infinite;
    will-change: transform;
}

.hosts-content {
    padding: 8vw 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hosts-header {
    margin-bottom: 3rem;
}

.hosts-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: normal;
    line-height: 1;
}

.host-card {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.host-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.host-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 0.3rem;
}

.host-role {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.host-bio {
    font-size: 0.9rem;
    max-width: 400px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.host-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.host-links a {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.host-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ============================================
   ABOUT STUDIO SECTION (from workshop)
   ============================================ */

.about-studio {
    padding: 12vw 10vw;
    text-align: center;
}

.about-studio-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 4rem;
    opacity: 0.9;
}

.about-studio-text {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1rem;
    line-height: 1.9;
}

.about-studio-link {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent);
    transition: all 0.4s ease;
}

.about-studio-link:hover {
    background: var(--accent);
    color: white;
}

.about-studio-link span {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.about-studio-link:hover span {
    transform: translateX(5px);
}


/* ============================================
   PULL QUOTES (editorial)
   ============================================ */

.pull-quote {
    font-family: var(--font-editorial);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
    text-align: center;
}

.pull-quote cite {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 2rem;
}


/* ============================================
   INLINE-REPLACEMENT UTILITY CLASSES
   (replaces inline grid styles for responsiveness)
   ============================================ */

/* Two-column split (50/50) */
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.grid-split--short {
    min-height: 80vh;
}

.grid-split--auto {
    min-height: auto;
}

/* Three-column card grid */
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

/* Four-column card grid */
.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Two-column info grid */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* Team member grid (asymmetric) */
.grid-team {
    display: grid;
    gap: 6vw;
    align-items: center;
}

.grid-team--img-left {
    grid-template-columns: 1.2fr 1fr;
}

.grid-team--img-right {
    grid-template-columns: 1fr 1.2fr;
}

/* Section padding (responsive via --padding-desktop) */
.section-padding {
    padding: var(--padding-desktop);
}

/* Split-section content panel */
.split-content {
    padding: var(--padding-desktop);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Split-section image panel */
.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Statement section (full-height centered text) */
.section-statement {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vw var(--padding-desktop);
    text-align: center;
}


/* ============================================
   RESPONSIVE: 1024px
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --padding-desktop: 6vw;
    }

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

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

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

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

    .two-col,
    .page-hero .container,
    .lecture {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-col--reverse,
    .lecture--reverse {
        direction: ltr;
    }

    .address-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section--split,
    .grid-split,
    .grid-split--short {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .grid-split--auto {
        grid-template-columns: 1fr;
    }

    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

    .grid-team--img-left,
    .grid-team--img-right {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-step {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .process-number {
        font-size: clamp(4rem, 12vw, 6rem);
        flex-shrink: 0;
        min-width: 100px;
    }

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

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

    .hosts-image img {
        height: auto;
        animation: none;
    }

    .section-statement {
        min-height: auto;
    }

    /* Contact cards: keep 2-col on tablets */
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Lecture images: slightly smaller */
    .lecture__image {
        height: 350px;
    }

    /* Page hero image: reduce on tablet */
    .page-hero__image {
        height: 400px;
    }

    /* Two-col image: reduce on tablet */
    .two-col__image {
        height: 400px;
    }
}


/* ============================================
   RESPONSIVE: 900px (Tablet Portrait / iPad)
   ============================================ */

@media (max-width: 900px) and (min-width: 769px) {
    /* Header: show burger on tablets too */
    .header__nav {
        display: none;
    }

    .header__lang {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    /* Service cards: keep 2-col but reduce image height */
    .service-card__image {
        height: 300px;
    }

    /* Split sections: stack on tablet portrait */
    .grid-split,
    .grid-split--short {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Team cards: stack photo and info */
    .team-card {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }

    .team-card__photo {
        width: 150px;
        height: 200px;
    }

    /* Hosts section: stack */
    .hosts {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hosts-image {
        max-height: 50vh;
    }

    /* Keynote items: stack */
    .keynote-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .keynote-item--reverse {
        grid-template-columns: 1fr;
    }

    .keynote-item__image {
        order: -1 !important;
        height: 300px;
        margin-bottom: 30px;
    }

    .keynote-item__text,
    .keynote-item--reverse .keynote-item__text {
        padding: 0;
    }

    /* Phase sections: stack */
    .phase-section__inner,
    .phase-section--reverse .phase-section__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Subpage opening: stack */
    .subpage-opening {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }

    .subpage-opening__image {
        height: 350px;
    }
}


/* ============================================
   RESPONSIVE: 768px (Mobile)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --padding-desktop: var(--padding-mobile);
    }

    .header__nav {
        display: none;
    }

    .header__lang {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__logo img {
        height: 30px;
    }

    .header {
        padding: 6vw var(--padding-mobile);
    }

    .header.scrolled {
        padding: 12px var(--padding-mobile);
    }

    .hero__logo {
        width: 200px;
    }

    .hero__title {
        font-size: clamp(3.5rem, 14vw, 6rem);
        line-height: 0.9;
    }

    .hero__subtitle {
        font-size: 0.9rem;
        max-width: 85%;
    }

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

    .service-card__image {
        height: 280px;
    }

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

    .split-content {
        padding: 12vw var(--padding-mobile);
    }

    .split-image {
        min-height: 250px;
        max-height: 50vh;
    }

    .section-statement {
        min-height: auto;
        padding: 15vw var(--padding-mobile);
    }

    .contact-cards,
    .grid-3col,
    .grid-4col,
    .grid-2col {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: 1fr;
    }

    .team-card__photo {
        width: 100%;
        height: 300px;
    }

    .contact-section__people {
        flex-direction: column;
        gap: 30px;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .newsletter__form button {
        width: 100%;
    }

    .page-hero__image {
        height: 300px;
    }

    .two-col__image {
        height: 300px;
    }

    .lecture__image {
        height: 300px;
    }

    .logos-grid {
        gap: 1rem 1.5rem;
    }

    .logos-grid img {
        height: 18px;
    }

    .section {
        padding: 8vw 0;
    }

    /* Disable Ken Burns on mobile for performance */
    .hero__bg {
        animation: none;
        transform: scale(1.05);
    }

    /* Disable image break Ken Burns on mobile */
    .section--image-break img {
        animation: none;
        transform: scale(1.05);
    }

    .section--image-break {
        height: 35vh;
    }

    /* Simplified scroll reveal on mobile: no transforms, just fade */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-dramatic,
    .reveal-stagger,
    .reveal-timeline {
        transform: none !important;
        filter: none !important;
        opacity: 0;
        transition: opacity 0.8s ease;
    }

    .reveal.visible,
    .reveal-left.visible,
    .reveal-right.visible,
    .reveal-scale.visible,
    .reveal-dramatic.visible,
    .reveal-stagger.visible,
    .reveal-timeline.visible {
        opacity: 1;
    }

    /* Process number: no float animation on mobile */
    .process-number {
        animation: none;
    }

    /* Doodle breaks mobile adjustments */
    .doodle-break {
        margin-top: -18vw;
        margin-bottom: -6vw;
    }

    .doodle-break img {
        width: 70%;
        max-width: 320px;
    }

    .doodle-birds {
        margin-top: -12vw;
        margin-bottom: -30vw;
    }

    .doodle-birds img {
        width: 70%;
        max-width: 300px;
    }

    /* Footer mobile */
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    /* About studio mobile */
    .about-studio {
        padding: 10vw 6vw;
    }

    .about-studio-logo {
        max-width: 200px;
        margin-bottom: 2rem;
    }

    .about-studio-text {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    /* Hosts mobile */
    .hosts-content {
        padding: 2rem 1.5rem;
    }

    /* Form mobile: prevent zoom on iOS */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        min-height: 42px;
    }

    /* Client logos responsive */
    .client-logo {
        height: 30px;
    }

    /* Newsletter section mobile */
    .newsletter-section {
        padding: 8vw var(--padding-mobile);
    }

    /* CTA section responsive */
    .grid-split--short {
        min-height: auto;
    }

    /* --- Subpage Components (consolidated) --- */
    .subpage-opening {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .subpage-opening__text {
        text-align: center;
        padding: 130px 1.5rem 40px;
    }

    .subpage-opening__subtitle {
        margin: 0 auto;
    }

    .subpage-opening__image {
        height: 280px;
    }

    .keynote-item {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 50px 0;
    }

    .keynote-item--reverse {
        grid-template-columns: 1fr;
    }

    .keynote-item__image {
        order: -1 !important;
        height: 250px;
        margin-bottom: 30px;
    }

    .keynote-item--reverse .keynote-item__image {
        order: -1;
    }

    .keynote-item__text,
    .keynote-item--reverse .keynote-item__text {
        padding: 0;
    }

    .phase-section {
        padding: 60px var(--padding-mobile);
    }

    .phase-section__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phase-section--reverse .phase-section__inner {
        grid-template-columns: 1fr;
    }

    .phase-section__image img {
        height: 220px;
    }

    .bridge-section {
        padding: 80px 1.5rem;
    }

    .bridge-section__buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-standard {
        padding: 60px var(--padding-mobile);
    }

    /* Fix section-split min-height on mobile */
    .section--split {
        min-height: auto;
    }

    /* Fix hosts min-height on mobile */
    .hosts {
        min-height: auto;
    }

    /* Reduce schedule card illustration on mobile */
    .schedule-card-illustration {
        height: 200px;
    }

    /* Reduce testimonial padding on mobile */
    .testimonial {
        padding: 24px;
    }

    /* Reduce module card padding on mobile */
    .module-card {
        padding: 24px 20px;
    }

    /* Nav dots hidden */
    .nav-dots {
        display: none;
    }

    /* Safe area for notched phones */
    .header {
        padding-left: max(var(--padding-mobile), env(safe-area-inset-left));
        padding-right: max(var(--padding-mobile), env(safe-area-inset-right));
    }

    .mobile-menu {
        padding-bottom: max(15vh, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    /* Clients section responsive */
    .clients-section {
        padding: 4rem var(--padding-mobile);
    }

    .clients-grid {
        gap: 1.5rem 2rem;
    }

    /* Section divider responsive */
    .section-divider {
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }

    /* Team contact cards responsive */
    .team-contact-card {
        flex-wrap: wrap;
    }

    .team-contact-card__photo-wrap {
        width: 100%;
    }

    .team-contact-card__photo {
        width: 100%;
        height: 250px;
    }
}


/* ============================================
   RESPONSIVE: 480px (Small Phones)
   ============================================ */

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 16vw, 4rem);
    }

    .hero-subtitle {
        font-size: 0.85rem;
        max-width: 95%;
    }

    .hero-cta {
        padding: 1rem 2rem;
        font-size: 0.6rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero__title {
        font-size: clamp(2.8rem, 16vw, 4rem);
    }

    .hero__subtitle {
        font-size: 0.85rem;
        max-width: 95%;
    }

    .subpage-opening__title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .service-card__image {
        height: 220px;
    }

    /* Stack newsletter form */
    .newsletter__form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter__form input,
    .newsletter__form button {
        width: 100%;
        text-align: center;
    }

    .newsletter-section {
        padding: 8vw 6vw;
    }

    /* Client logos: smaller on tiny screens */
    .client-logo {
        height: 28px;
    }

    /* Buttons: full width on small phones */
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
    }

    .bridge-section__buttons {
        gap: 1rem;
    }

    /* Contact cards */
    .contact-card {
        flex-direction: column;
    }

    .contact-card__photo {
        width: 100%;
        height: 200px;
    }

    .team-contact-card__photo {
        height: 200px;
    }

    /* Phase sections */
    .phase-section__image img {
        height: 180px;
    }

    /* Keynote items */
    .keynote-item__image {
        height: 200px;
    }

    .schedule-card-illustration {
        height: 160px;
    }

    .testimonial {
        padding: 20px;
    }

    /* Reduce padding */
    .split-content {
        padding: 10vw 5vw;
    }

    .address-grid {
        gap: 20px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
    }

    /* Clients section small phones */
    .clients-section {
        padding: 3rem var(--padding-mobile);
    }

    .clients-grid {
        gap: 1rem 1.5rem;
    }
}


/* ============================================
   RESPONSIVE: Landscape Phones
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: 100vh;
        height: 100svh;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-label {
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .hero-cta {
        margin-top: 0.5rem;
        padding: 0.8rem 2rem;
    }

    /* Section splits: reduce height */
    .grid-split,
    .grid-split--short {
        min-height: auto;
    }

    .section--split {
        min-height: auto;
    }

    /* Mobile menu: scroll in landscape */
    .mobile-menu {
        overflow-y: auto;
        padding-top: 80px;
        justify-content: flex-start;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .nav-dots,
    .cursor,
    body::before {
        display: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-dramatic,
    .reveal-stagger,
    .reveal-timeline {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-dramatic,
    .reveal-stagger,
    .reveal-timeline {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .hero-bg img {
        animation: none;
        transform: scale(1.05);
    }

    .section--image-break img {
        animation: none;
        transform: scale(1.05);
    }

    .hero-label,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero__tagline,
    .hero__title,
    .hero__subtitle,
    .hero__meta,
    .hero__cta,
    .subpage-opening__label,
    .subpage-opening__back,
    .subpage-opening__title,
    .subpage-opening__subtitle,
    .subpage-opening__image {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .process-number {
        animation: none;
    }
}
