/* Cinematic design (preview at /new.html).
   Dark opening (showreel + selected work), then mostly light sections, a sliding
   client-logo strip, a slim coloured sidebar that opens on click, and a full footer.
   Colours come from each site's theme (sidebar colour, button colour, highlight). */

body.cinematic {
    --side-strip: 50px;
    --side-width: 300px;
    --wrap: 1240px;
    --gutter: 56px;
    --cine-accent: var(--card-hover, #fdf800);   /* bright highlight, readable on dark */
    --cine-accent-text: #0b0b0b;
    margin: 0;
    padding-left: var(--side-strip);
    background: #fff;
    transition: padding-left 0.4s cubic-bezier(.2, .8, .2, 1);
    font-family: var(--heading-font, "Roboto", system-ui, sans-serif);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.site-sustainalists.cinematic { --cine-accent: #19c39f; }
body.site-swedenfixer.cinematic { --cine-accent: #5bb2ea; }
.cinematic a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cine-skip { position: absolute; left: -9999px; }
.cine-skip:focus { left: 70px; top: 16px; z-index: 200; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Light and dark bands ---------- */
.cine-band { background: var(--bg); color: var(--text); }
.cine-dark  { --bg: #0b0b0b; --text: #e6e6e6; --strong: #ffffff; --muted: #a3a3a3; --rule: #262626; --panel: #151515; --hl: var(--cine-accent); }
.cine-light { --bg: #ffffff; --text: #2b2b2b; --strong: #111111; --muted: #666666; --rule: #e6e6e6; --panel: #f4f4f2; --hl: #111111; }
.cine-light + .cine-light { border-top: 1px solid #eee; }
.cine-light:nth-of-type(even) { --bg: #f7f7f5; }
.cine-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.cine-band .prose a { color: var(--strong); text-decoration-color: var(--cine-accent); text-decoration-thickness: 2px; }

/* ---------- Sidebar: slim strip, opens to the full sidebar ---------- */
.cine-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: var(--side-strip);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: width 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
    overflow: hidden;
}
.cine-side.is-open { width: var(--side-width); }
/* Big screens: the page slides aside instead of being covered */
body.cinematic.side-is-open { padding-left: var(--side-width); }
.cine-side { transition: width 0.4s cubic-bezier(.2, .8, .2, 1); }
.no-side-anim body.cinematic, .no-side-anim .cine-side, .no-side-anim .cine-side-panel, .no-side-anim .cine-side-strip { transition: none !important; }
.cine-side-strip {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--side-strip);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.2s;
}
.cine-side-open {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 22px 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
/* Sister sites as small tiles in their own colours */
.cine-side-tiles { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 18px; }
.cine-side-tiles a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(255, 255, 255, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cine-side-tiles a:hover, .cine-side-tiles a:focus-visible { transform: scale(1.12); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.cine-side-tiles img { width: 26px; height: 26px; object-fit: contain; }
.cine-side.is-open .cine-side-strip { opacity: 0; pointer-events: none; }
.cine-side-arrow { font-size: 28px; line-height: 1; font-weight: 300; transition: transform 0.2s; }
.cine-side-open:hover .cine-side-arrow { transform: translateX(3px); }
.cine-side-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cine-side-panel {
    width: var(--side-width);
    height: 100%;
    box-sizing: border-box;
    padding: 40px 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s 0.05s, visibility 0s 0.3s;
}
.cine-side.is-open .cine-side-panel { opacity: 1; visibility: visible; transition: opacity 0.3s 0.1s; }
.cine-side-close { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 10px; }
.cine-side-logo img { width: 80px; height: auto; display: block; }
.cine-side-name { margin: 0; }
.cine-side-nav { display: flex; flex-direction: column; border-bottom: 1px solid currentColor; padding: 10px 0 14px; margin: 0 0 8px; }
.cine-side-nav a { text-decoration: none; font-size: 16px; font-weight: 600; padding: 6px 0; }
.cine-side-nav a { position: relative; padding-left: 0; transition: padding-left 0.2s; }
.cine-side-nav a:hover { text-decoration: underline; }
/* the section in view */
.cine-side-nav a.is-active { padding-left: 16px; font-weight: 900; }
.cine-side-nav a.is-active::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: currentColor; }
.cine-footer-col a.is-active { color: #fff; }
.cine-side-text p { margin: 0 0 10px; }
.cine-side-text a { color: var(--sidebar-link); }
.cine-side-phone { margin: 0; }
.cine-side-phone a { text-decoration: none; font-weight: 700; }
.cine-side-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
/* Sister-site logos on small white tiles, so they read on any panel colour */
.cine-side-logos a { display: grid; place-items: center; width: 50px; height: 50px; padding: 6px; box-sizing: border-box; background: #fff; border-radius: 11px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.cine-side-logos a:hover, .cine-side-logos a:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.cine-side-logos img { width: 38px; height: 38px; object-fit: contain; }
.cine-side-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.35); }
.cine-side-backdrop[hidden] { display: none; }

/* ---------- Top right: contact button ---------- */
.cine-top { position: fixed; top: 18px; right: 22px; z-index: 100; display: flex; align-items: center; gap: 12px; }
.cine-top-logo { display: none; }
.cine-menu-toggle { display: none; }

.cine-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 28px 15px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--cine-accent);
    color: var(--cine-accent-text) !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cine-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.cine-btn-small { padding: 10px 20px; font-size: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }

/* ---------- Hero ---------- */
.cine-hero {
    position: relative;
    min-height: 620px;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #000;
}
.cine-hero-poster, .cine-hero-video { position: absolute; inset: 0; }
.cine-hero-poster { width: 100%; height: 100%; object-fit: cover; }
.cine-hero-video { overflow: hidden; pointer-events: none; }
.cine-hero-video iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
    transform: translate(-50%, -50%); border: 0;
}
.cine-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.78) 100%); }
.cine-hero-content { position: relative; padding: 0 var(--gutter) 72px; max-width: 1100px; display: flex; flex-direction: column; gap: 20px; }
.cine-kicker { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hl, var(--cine-accent)); }
.cine-hero .cine-kicker { color: var(--cine-accent); }
.cine-hero h1 { margin: 0; font-size: clamp(60px, 10vw, 150px); line-height: 0.9; font-weight: 900; letter-spacing: -0.045em; color: #fff; }
.cine-subtitle { margin: 0; max-width: 21em; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.cine-lead { max-width: 660px; font-size: clamp(16px, 1.25vw, 18.5px); font-weight: 300; line-height: 1.6; color: #e6e6e6; }
.cine-lead p { margin: 0; }
.cine-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 8px; }
.cine-link { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.cine-link:hover { border-bottom-color: #fff; }

/* ---------- Sections & headings ---------- */
.cinematic .section { margin: 0; padding: 96px 0; scroll-margin-top: 20px; }
.cine-wrap > .section + .section { padding-top: 0; }
.cinematic .section-title {
    font-family: inherit;
    text-align: left;
    color: var(--strong);
    font-weight: 900;
    font-size: calc(54px * var(--heading-scale, 1));
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 30px;
}
.cinematic .section[data-title-align="right"] .section-title { text-align: right; }
.cinematic .section[data-title-align="center"] .section-title { text-align: center; }
.cinematic .box { background: transparent; border: 1px solid var(--rule); border-radius: 8px; color: var(--text); }
.cinematic .section-accordion .box,
.cinematic .section-timeline .box,
.cinematic .section-feature .box,
.cinematic .section-gallery .box { border: 0; padding: 0; }
.cinematic .prose { max-width: 46em; }

/* ---------- Selected work (dark, 2 large tiles per row) ---------- */
.cine-selected { padding-top: 104px; }
.cine-more { margin: 40px 0 0; }
.cine-more a { color: var(--strong); text-decoration: none; border-bottom: 2px solid var(--cine-accent); padding-bottom: 3px; }

/* ---------- Filters: plain words, active one underlined (set explicitly) ---------- */
.cinematic .filters { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: -10px 0 30px; }
.cinematic .filters button {
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    font: inherit;
    font-size: 15px;
    color: var(--muted);
    border-bottom: 2px solid transparent !important;
    cursor: pointer;
    opacity: 1;
}
.cinematic .filters button:hover { color: var(--strong); }
.cinematic .filters button.is-active { color: var(--strong); font-weight: 700; border-bottom-color: var(--cine-accent) !important; }
.cine-light .filters button.is-active { border-bottom-color: #111 !important; }

/* ---------- Project tiles with details on hover ---------- */
.cinematic .work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.cinematic .work-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
.cinematic .work-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; background: none; box-shadow: none; transform: none; }
.cinematic .work-card[hidden] { display: none; }
.cinematic .work-card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #1a1a1a; }
.cinematic .work-card-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; aspect-ratio: auto; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.cinematic .work-card-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cine-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; z-index: 2; }
.work-card-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px 20px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}
.work-card-info .info-top { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cine-accent); }
.work-card-info .info-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; }
.cinematic .work-card:hover .work-card-thumb img,
.cinematic .work-card:focus-visible .work-card-thumb img { transform: scale(1.06); }
.cinematic .work-card:hover .work-card-thumb::after,
.cinematic .work-card:focus-visible .work-card-thumb::after { transform: scaleX(1); }
.cinematic .work-card:hover .work-card-info,
.cinematic .work-card:focus-visible .work-card-info { opacity: 1; }

/* Title area + details box. On hover the image and the box form ONE card
   (same width, joined, outlined, with a shadow) that floats over the content
   below, and the other tiles fade back. */
.cine-light { --card-pop: #ffffff; --card-ring: rgba(0, 0, 0, 0.14); }
.cine-dark  { --card-pop: #222222; --card-ring: rgba(255, 255, 255, 0.16); }
.cinematic .work-card { position: relative; transition: opacity 0.25s, filter 0.25s, transform 0.25s; }
.cinematic .work-card:hover, .cinematic .work-card:focus-visible { z-index: 6; transform: translateY(-4px); }
.cinematic .work-card-thumb { transition: border-radius 0.2s, box-shadow 0.2s; }
.work-card-body { position: relative; transition: background-color 0.2s; }
.cinematic .work-card-content { display: flex; flex-direction: column; gap: 2px; padding: 0; transition: padding 0.2s; }
.cinematic .work-card.is-large .work-card-content { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 14px; }
.cinematic .work-card-title { font-size: 18px; font-weight: 700; color: var(--strong); margin: 0; line-height: 1.25; }
.cinematic .work-card.is-large .work-card-title { font-size: 22px; }
.cinematic .work-card:hover .work-card-title,
.cinematic .work-card:focus-visible .work-card-title { color: var(--strong); text-decoration: none; }
.cinematic .work-card-line { font-size: 13.5px; color: var(--muted); }
.cinematic .work-card.is-large .work-card-title { flex: 1 1 auto; min-width: 0; }
/* The title wins: the client line takes at most a third and wraps if it is long */
.cinematic .work-card.is-large .work-card-line { flex: 0 1 auto; max-width: 34%; text-align: right; line-height: 1.4; }
.work-card-more {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 18px 20px;
    background: var(--card-pop);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.more-roles { font-size: 14.5px; font-weight: 700; color: var(--strong); }
.more-where { font-size: 13.5px; color: var(--muted); }
.more-text {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* the hovered card: image + title area + details joined, outlined and lifted */
.cinematic .work-card:hover .work-card-thumb,
.cinematic .work-card:focus-visible .work-card-thumb {
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 0 1px var(--card-ring);
}
.cinematic .work-card:hover .work-card-body,
.cinematic .work-card:focus-visible .work-card-body {
    background: var(--card-pop);
}
/* outline + shadow of the title area drawn on a layer of its own, cut at the joins
   (cutting the box itself would also cut off the details below) */
.work-card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 1px var(--card-ring), 0 30px 60px rgba(0, 0, 0, 0.35);
    clip-path: inset(0 -80px 0 -80px);
}
.cinematic .work-card:hover .work-card-body::before,
.cinematic .work-card:focus-visible .work-card-body::before { opacity: 1; }
.cinematic .work-card:hover .work-card-content,
.cinematic .work-card:focus-visible .work-card-content { padding: 14px 18px 4px; }
.cinematic .work-card:hover .work-card-more,
.cinematic .work-card:focus-visible .work-card-more {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: 0 0 0 1px var(--card-ring), 0 30px 60px rgba(0, 0, 0, 0.35);
    clip-path: inset(0 -80px -80px -80px);
}
/* the other tiles step back */
.cinematic .work-grid:hover .work-card:not(:hover) { opacity: 0.38; filter: grayscale(0.7); }
@media (hover: none) { .cinematic .work-grid:hover .work-card:not(:hover) { opacity: 1; filter: none; } }

.cinematic .load-more-wrap { margin: 44px 0 0; }
.cinematic .load-more { background: transparent; color: var(--strong); border: 1px solid var(--rule); border-radius: 999px; padding: 13px 30px; font-size: 15px; box-shadow: none; opacity: 1; }
.cinematic .load-more:hover { border-color: var(--strong); }

/* ---------- Client logos: a slowly sliding strip ---------- */
.cine-logos { overflow: hidden; background: #fff; border-bottom: 1px solid #eee; padding: 34px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cine-logos-track { display: flex; width: max-content; animation: cine-marquee 45s linear infinite; }
.cine-logos:hover .cine-logos-track { animation-play-state: paused; }
.cine-logos-list { display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 36px; list-style: none; }
.cine-logos-list li { flex: none; display: flex; align-items: center; height: 44px; }
.cine-logos-list img { height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: 0.65; transition: filter 0.3s, opacity 0.3s; }
.cine-logos-list li:hover img { filter: none; opacity: 1; }
.cine-logos-list span { font-size: 21px; font-weight: 900; letter-spacing: 0.04em; color: #9a9a9a; text-transform: uppercase; white-space: nowrap; }
@keyframes cine-marquee { to { transform: translateX(-50%); } }

/* ---------- About (light) ---------- */
.cine-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.cine-about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.cine-about-text { display: flex; flex-direction: column; gap: 20px; }
.cine-about-text h2 { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; color: var(--strong); }
.cine-about-role { margin: -8px 0 0; font-size: 18px; font-weight: 500; color: var(--muted); }
.cine-about-body { font-size: 16.5px; line-height: 1.7; color: var(--text); max-width: 60ch; }
.cine-about-body p { margin: 0 0 14px; }
.cine-about-body a { color: var(--strong); text-decoration-color: var(--cine-accent); text-decoration-thickness: 2px; }
.cine-stats { display: flex; flex-wrap: wrap; gap: 48px; margin: 10px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.cine-stats div { display: flex; flex-direction: column; gap: 2px; }
.cine-stats dt { font-size: 40px; font-weight: 900; color: var(--strong); letter-spacing: -0.02em; line-height: 1; }
.cine-stats dd { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Productions, timeline, team, gallery, feature ---------- */
.cinematic .accordion details { border-bottom: 1px solid var(--rule); }
.cinematic .accordion details:first-child { border-top: 1px solid var(--rule); }
.cinematic .accordion summary { color: var(--strong); display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; padding: 20px 0; list-style: none; cursor: pointer; }
.cinematic .accordion summary::-webkit-details-marker { display: none; }
.cinematic .accordion summary::before,
.cinematic .accordion details[open] summary::before { content: none; }
.cinematic .accordion summary::after { content: "+"; margin-left: auto; font-weight: 300; font-size: 28px; line-height: 1; color: var(--strong); transition: transform 0.2s; }
.cinematic .accordion details[open] summary::after { transform: rotate(45deg); }
.cinematic .accordion .count { font-size: 13px; color: var(--muted); font-weight: 500; }
.cinematic .prod-list { list-style: none; margin: 0 0 24px; padding: 0; }
.cinematic .prod-list li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.5; color: var(--text); }
.cinematic .prod-list li:first-child { border-top: 0; }
.cinematic .prod-year { color: var(--muted); font-variant-numeric: tabular-nums; }
.cinematic .prod-text strong { color: var(--strong); }
.cinematic .timeline::before { background: var(--rule); width: 2px; margin-left: -1px; }
.cinematic .timeline-when { background: var(--sidebar-bg); color: var(--sidebar-text); width: 52px; height: 52px; font-size: 11px; }
.cinematic .timeline-body h3 { color: var(--strong); font-weight: 700; }
.cinematic .timeline-body p { color: var(--muted); }
.cinematic .team-member { background: var(--panel); }
.cinematic .team-text { color: var(--text); }
.cinematic .team-text h3, .cinematic .team-text h3 a { color: var(--strong); }
.cinematic .feature-box .prose { font-size: 19px; line-height: 1.6; color: var(--text); margin-bottom: 26px; }
.cinematic .feature-image { border-radius: 8px; }
.cinematic .more { color: var(--strong); }
.cinematic .masonry img { border-radius: 3px; }

/* ---------- Contact: big coloured block ---------- */
.cine-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    padding: 96px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important;
    background: var(--button-bg);
    color: var(--button-text);
}
.cine-contact h2 { margin: 0 0 18px; font-size: clamp(52px, 7vw, 96px); line-height: 0.95; font-weight: 900; letter-spacing: -0.045em; }
.cine-contact .prose { color: inherit; }
.cine-contact .contact-form { display: grid; gap: 18px; }
.cine-contact .contact-form label { color: inherit; font-weight: 600; font-size: 15px; display: grid; gap: 4px; }
.cine-contact .contact-form input, .cine-contact .contact-form textarea { background: transparent; color: inherit; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; padding: 10px 2px; font: inherit; font-size: 17px; }
.cine-contact .contact-form input:focus, .cine-contact .contact-form textarea:focus { outline: 2px solid currentColor; outline-offset: 4px; }
.cine-contact .contact-form button { background: #0b0b0b; color: #fff; border: 0; border-radius: 999px; padding: 15px 30px; justify-self: start; box-shadow: none; font: inherit; font-weight: 700; cursor: pointer; }
.cine-contact .form-status { background: rgba(0, 0, 0, 0.12); color: inherit; }

/* ---------- Footer ---------- */
.cine-footer { background: #0b0b0b; color: #bdbdbd; font-size: 15px; }
.cine-footer-grid { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.cine-footer-logo { width: 64px; height: auto; margin-bottom: 14px; }
.site-enno .cine-footer-logo { filter: invert(1); }
.site-swedenfixer .cine-footer-logo { background: #fff; border-radius: 8px; padding: 4px; }
.cine-footer-about p { margin: 0 0 10px; }
.cine-footer-about strong { color: #fff; }
.cine-footer-tagline { color: #8a8a8a; }
.cine-footer-col { display: flex; flex-direction: column; gap: 8px; }
.cine-footer-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cine-accent); }
.cine-footer-col a { text-decoration: none; }
.cine-footer-col a:hover { color: #fff; text-decoration: underline; }
.cine-footer-col span { color: #777; }
.cine-footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter) 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #222; font-size: 13.5px; color: #8a8a8a; }
.cine-footer-bottom a { text-decoration: none; }
.cine-footer-bottom a:hover { color: #fff; }

/* ---------- Project panel & showreel overlay (dark) ---------- */
.cinematic .project-backdrop { background: rgba(0, 0, 0, 0.7); }
.cinematic .project-dialog { background: #151515; color: #e6e6e6; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); max-width: 860px; }
.cinematic .project-nav-btn { background: #222; color: #eee; }
.cinematic .project-close { color: #eee; }
.cinematic .panel-meta { color: #a3a3a3; }
.cinematic .panel-title { color: #fff; }
.cinematic .panel-credits { background: #1c1c1c; border-color: #262626; }
.cinematic .panel-credits h3 { color: #fff; }
.cinematic .panel-credits p { color: #cfcfcf; }
.cinematic .panel-share { color: #a3a3a3; }
.cinematic .panel-share button:hover { color: #fff; }
.cine-watch { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 40px; background: rgba(0, 0, 0, 0.92); }
.cine-watch[hidden] { display: none; }
.cine-watch-frame { position: relative; width: min(1280px, 100%); aspect-ratio: 16 / 9; }
.cine-watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.cine-watch-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ---------- Fade-in while scrolling ---------- */
.js-reveal .cinematic .section { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.js-reveal .cinematic .section.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal .cinematic .section { opacity: 1; transform: none; transition: none; }
    .cine-logos-track { animation: none; flex-wrap: wrap; width: auto; }
    .cine-logos-list[aria-hidden="true"] { display: none; }
    .cinematic .work-card-thumb img, .work-card-info, .cine-btn, .cine-side, body.cinematic, .cine-side-nav a { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    body.cinematic { --gutter: 32px; }
    .cinematic .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cine-about { grid-template-columns: 1fr; gap: 32px; }
    .cine-about-photo { max-width: 460px; }
    .cine-contact { grid-template-columns: 1fr; gap: 32px; }
    .cine-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone: no strip; "Menu" opens the sidebar as a drawer ---------- */
@media (max-width: 760px) {
    body.cinematic { --gutter: 20px; padding-left: 0; }
    .cine-side { width: 0; }
    .cine-side.is-open { width: min(var(--side-width), 86vw); box-shadow: 12px 0 40px rgba(0, 0, 0, 0.3); }
    body.cinematic.side-is-open { padding-left: 0; }
    .cine-side-strip { display: none; }
    .cine-top { left: 0; right: 0; top: 0; padding: 12px 16px; justify-content: flex-end; transition: background 0.3s; }
    .cine-top.is-solid { background: rgba(11, 11, 11, 0.92); }
    .cine-top-logo { display: block; margin-right: auto; }
    .cine-top-logo img { width: 40px; height: auto; display: block; }
    .site-enno .cine-top-logo img { filter: invert(1); }
    .site-swedenfixer .cine-top-logo img { background: #fff; border-radius: 6px; padding: 3px; }
    .cine-top .cine-btn-small { display: none; }
    .cine-menu-toggle { display: inline-flex; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
    .cine-hero-content { padding-bottom: 44px; }
    .cinematic .section { padding: 64px 0; }
    .cinematic .section-title { font-size: calc(36px * var(--heading-scale, 1)); }
    .cinematic .work-grid, .cinematic .work-grid-large { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .cinematic .work-card-content,
    .cinematic .work-card.is-large .work-card-content { flex-direction: column; align-items: flex-start; gap: 2px; }
    .cinematic .work-card-line,
    .cinematic .work-card.is-large .work-card-line { white-space: normal; }
    .cinematic .work-card.is-large .work-card-title { font-size: 20px; }
    .work-card-info { opacity: 1; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75) 100%); padding: 14px; }
    .cinematic .work-card:hover { transform: none; }
    .cinematic .work-card:hover .work-card-thumb { border-radius: 6px; box-shadow: none; }
    .cinematic .work-card:hover .work-card-body { background: none; }
    .cinematic .work-card:hover .work-card-body::before { opacity: 0; }
    .cinematic .work-card:hover .work-card-content { padding: 0; }
    .cinematic .work-card:hover .work-card-more { box-shadow: none; clip-path: none; }
    .work-card-more { position: static; opacity: 1; transform: none; background: none; box-shadow: none; padding: 4px 0 0; pointer-events: auto; }
    .work-card-more .more-text, .work-card-more .more-where { display: none; }
    .more-roles { font-size: 13.5px; font-weight: 500; color: var(--muted); }
    .cine-logos { padding: 24px 0; }
    .cine-logos-list { gap: 44px; }
    .cine-logos-list img { height: 28px; }
    .cine-about-text h2 { font-size: 30px; }
    .cinematic .prod-list li { grid-template-columns: 1fr; gap: 0; }
    .cinematic .prod-year:empty { display: none; }
    .cine-footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; }
    .cine-watch { padding: 12px; }
}

/* ---------- Pages of their own: project, all projects, privacy, 404 ---------- */
.cine-page { padding: 110px 0 90px; min-height: 70vh; }
.cine-page-wrap { max-width: 900px; }
.cine-page-back { margin: 0 0 28px; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.cine-page-back a { color: var(--muted); text-decoration: none; }
.cine-page-back a:hover, .cine-page-back a:focus-visible { color: var(--strong); }
.cine-page h1.section-title { margin-top: 0; }
.cine-page .panel-project { color: var(--text); }
.cine-page .panel-title { font-size: clamp(30px, 4vw, 48px); color: var(--strong); margin: 28px 0 10px; line-height: 1.1; }
.cine-text-page { line-height: 1.7; }
.cine-text-page h2 { font-size: 22px; margin: 2em 0 .5em; color: var(--strong); }
.cine-footer-bottom span a { color: inherit; }

/* ---------- Sister-site tiles: hover fills the strip with that site's colour + a label slides out ---------- */
.cine-side-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--wipe, transparent);
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.5s cubic-bezier(.7, 0, .2, 1);
}
.cine-side-strip > * { position: relative; }
.cine-side-strip { transition: opacity 0.2s, color 0.3s 0.1s; }
.cine-side-strip.is-wiping { color: var(--wipe-text, inherit); }
.cine-side-strip.is-wiping::before { transform: scaleY(1); }
.cine-side-tiles a.is-current { transform: scale(1.12); box-shadow: 0 0 0 2px var(--wipe-text, #fff), 0 6px 16px rgba(0, 0, 0, 0.3); }

.cine-tip {
    position: fixed;
    z-index: 130;
    left: calc(var(--side-strip) + 12px);
    top: 0;
    width: max-content;
    max-width: min(320px, calc(100vw - var(--side-strip) - 32px));
    padding: 14px 18px 15px;
    border-radius: 10px;
    background: var(--tip-bg, #111);
    color: var(--tip-text, #fff);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    clip-path: inset(0 100% 0 0 round 10px);
    opacity: 0;
    transform: translate(-10px, -50%);
    transition: clip-path 0.42s cubic-bezier(.2, .8, .2, 1) 0.08s, opacity 0.2s 0.08s, transform 0.42s cubic-bezier(.2, .8, .2, 1) 0.08s;
}
.cine-tip.is-shown { clip-path: inset(0 0 0 0 round 10px); opacity: 1; transform: translate(0, -50%); }
.cine-tip::before { /* little arrow pointing at the tile */
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
}
.cine-tip strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: 0.01em; }
.cine-tip span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; opacity: 0.88; }
.cine-tip small { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
    .cine-side-strip::before, .cine-tip { transition: none; }
}

/* Logo bar driven by JavaScript: keeps sliding, and visitors can grab and swipe it */
.cine-logos.is-draggable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cine-logos.is-draggable .cine-logos-track { animation: none; will-change: transform; }
.cine-logos.is-dragging { cursor: grabbing; }
.cine-logos img { -webkit-user-drag: none; }

/* Selected work: the tile's video plays silently on hover */
.work-card-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; background: #000; }
.work-card-video iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%) scale(1.02); border: 0; }
.work-card-video.is-playing { opacity: 1; }
.work-card-thumb .work-card-info { z-index: 1; }
.work-card.is-previewing .work-card-info { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.6) 100%); }
.work-card.is-previewing .work-card-thumb img { transform: none; }
.work-card-loading { position: absolute; top: 14px; right: 14px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: card-spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.work-card.is-loading .work-card-loading { opacity: 1; }
@keyframes card-spin { to { transform: rotate(360deg); } }

/* ---------- Language switch (SV · EN · DE) ---------- */
.cine-lang { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(12, 12, 12, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); }
.cine-lang a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: background 0.2s, color 0.2s; }
.cine-lang a:hover, .cine-lang a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.14); }
.cine-lang a.is-current { background: var(--cine-accent); color: #111; }
/* In the side panel: only on phones (on big screens the switch sits top right) */
.cine-lang-panel { display: none; }
@media (max-width: 760px) {
    .cine-top .cine-lang { display: none; }
    .cine-lang-panel { display: inline-flex; margin: 4px 0 6px; background: rgba(0, 0, 0, 0.12); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .cine-lang-panel a { color: inherit; }
}

/* Moving from one tile to the next: the tile you leave lets go at once (no slow fade-out),
   so only one tile ever looks selected. Coming in stays smooth. */
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-more,
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-body,
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-body::before,
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-content,
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-thumb,
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-info,
.cinematic .work-card:not(:hover):not(:focus-visible) .work-card-thumb::after { transition-duration: 0s; }
.cinematic .work-card:not(:hover):not(:focus-visible) { transition: opacity 0.25s, filter 0.25s, transform 0.12s; }

/* Fold-out categories: the + turns into × with a little spring; while closing it turns back already */
.cinematic .accordion summary::after { transition: transform 0.35s cubic-bezier(.3, 1.5, .5, 1); }
.cinematic .accordion details.is-closing summary::after { transform: rotate(0deg); }
.cinematic .accordion summary:hover::after { color: var(--cine-accent-strong, var(--strong)); }
/* The focus frame only for keyboard users, not after a mouse click */
.cinematic .accordion summary:focus:not(:focus-visible) { outline: none; }
.cinematic .accordion summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

/* The same sites at the bottom of the open menu: the bottom of the menu glows in the site's colour, the label slides out beside it */
.cine-side-glows { position: absolute; inset: auto 0 0 0; height: 38%; overflow: hidden; pointer-events: none; }
.cine-side-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--glow) 0%, var(--glow) 22%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), opacity 0.35s;
}
.cine-side-glow.is-in { transform: translateY(0); }
.cine-side-glow.is-out { opacity: 0; transition: opacity 0.5s; }
.cine-side:not(.is-open) .cine-side-glows { display: none; }
@media (prefers-reduced-motion: reduce) { .cine-side-glow { transition: opacity 0.2s; } }
.cine-side-panel { position: relative; }
.cine-side-logos a.is-current { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 2px var(--wipe-text, #fff), 0 8px 18px rgba(0, 0, 0, 0.25); }
.cine-tip.is-above {
    clip-path: inset(100% 0 0 0 round 10px);
    transform: translate(0, calc(-100% + 10px));
    max-width: min(300px, calc(100vw - 24px));
}
.cine-tip.is-above.is-shown { clip-path: inset(0 0 0 0 round 10px); transform: translate(0, -100%); }
.cine-tip.is-above::before { left: var(--arrow-x, 50%); top: auto; bottom: -6px; transform: translateX(-50%) rotate(45deg); }
