/* ================================================================
   Solarpunk theme · for every page
   ----------------------------------------------------------------
   Light mode = Solarpunk by day, dark mode = Solarpunk by night.
   Loaded after each page's own styles, so these colours win.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  --bg-rgb: 250, 245, 233;      /* warm paper */
  --fg-rgb: 35, 52, 43;         /* deep moss ink */
  --sp-accent: 74, 138, 92;     /* leaf green */
  --sp-glow: 255, 205, 120;     /* sun */
  --sp-sky-top: rgba(159, 211, 230, 0.55);
  --sp-sky-mid: rgba(253, 231, 196, 0.35);
  --sp-strip: rgba(98, 150, 96, 0.30);
}

html.dark-mode {
  --bg-rgb: 15, 24, 34;         /* night teal */
  --fg-rgb: 236, 232, 218;      /* moonlit paper */
  --sp-accent: 140, 205, 150;
  --sp-glow: 255, 210, 122;     /* lamp light */
  --sp-sky-top: rgba(58, 53, 96, 0.55);
  --sp-sky-mid: rgba(26, 40, 66, 0.35);
  --sp-strip: rgba(120, 170, 150, 0.16);
}

html {
  background-color: rgb(var(--bg-rgb));
  background-image: linear-gradient(to bottom, var(--sp-sky-top), var(--sp-sky-mid) 28vh, transparent 60vh);
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-color 2.4s ease, color 2.4s ease;
}

/* A small Solarpunk skyline along the bottom of every page. */
body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--sp-strip);
  -webkit-mask: url('/solarpunk-skyline.svg') no-repeat center bottom / 100% 100%;
  mask: url('/solarpunk-skyline.svg') no-repeat center bottom / 100% 100%;
  pointer-events: none;
  z-index: -1;
  transition: background 0.9s ease;
}

/* Friendlier, rounder feel. */
h1,
.tile-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.tile {
  border-radius: 14px;
}

.tile:not(.tile-photo):hover {
  border-color: rgba(var(--sp-accent), 0.55);
  background-color: rgba(var(--sp-accent), 0.06);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(var(--sp-accent), 0.9);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(var(--sp-accent), 0.25);
}

/* ── Home: the Solarpunk scene ───────────────────────────────────── */

.sp-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 70vh;
  min-height: 360px;
  overflow: hidden;
}

/* the scene melts into the page (a mask, so there is no edge while day turns to night) */
.sp-hero {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}

/* Top and bottom picture of the main pages: layers side by side in depth.
   Nearer layers are wider, so they travel further when you change page
   (script.js sets size and position). */
.sp-land .sp-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  will-change: transform;
  transition: transform 1.7s cubic-bezier(0.55, 0, 0.25, 1);
}
.sp-land .sp-layer svg { display: block; width: 100%; height: 100%; }
.sp-land.no-glide .sp-layer { transition: none; }
@media (prefers-reduced-motion: reduce) { .sp-land .sp-layer { transition: none; } }

.sp-scene {
  --sky-a: #9fd3e6; --sky-b: #cfe8e6; --sky-c: #fde4c0;
  --hill-far: #b9d7a8; --hill-mid: #98c486; --hill-near: #79ad66;
  --house-a: #f6ecd9; --house-b: #ead8b8; --house-c: #dbe9d4;
  --roof: #6aa35a; --leaf: #5c9a4f; --leaf-2: #7cb867; --trunk: #8a6a4a;
  --solar: #3f5f86; --solar-line: #9bb7d6;
  --win: #bfdde6; --win-lit: #bfdde6;
  --glass: rgba(220, 240, 245, 0.75); --glass-line: #8fb7a8;
  --cloud: #ffffff; --tower: #f3f0e8;
}

html.dark-mode .sp-scene {
  --sky-a: #0c1526; --sky-b: #1b2346; --sky-c: #3d3566;
  --hill-far: #22364a; --hill-mid: #1c3038; --hill-near: #16262b;
  --house-a: #2b3a4f; --house-b: #314159; --house-c: #2a4040;
  --roof: #2f5142; --leaf: #21402f; --leaf-2: #2b4f3a; --trunk: #3b3328;
  --solar: #1b2944; --solar-line: #2f4568;
  --win: #1e293b; --win-lit: #ffd27a;
  --glass: rgba(255, 214, 140, 0.28); --glass-line: #5d7f6c;
  --cloud: #4b4f78; --tower: #9aa3b5;
}

/* Day ↔ night: slow and one thing after another (sky first, then sun/moon,
   then lights and stars), instead of everything at once. */
.sp-scene * {
  transition: fill 2.4s ease, stroke 2.4s ease, stop-color 2.4s ease, opacity 1.6s ease, transform 3.2s cubic-bezier(0.45, 0, 0.25, 1), filter 2.4s ease;
}
html.dark-mode .sp-scene .night-only { transition-delay: 1.4s; transition-duration: 2.2s; }
html:not(.dark-mode) .sp-scene .day-only { transition-delay: 1.2s; transition-duration: 2s; }
html.dark-mode .sp-scene .night-only, html:not(.dark-mode) .sp-scene .day-only { transition-property: opacity; }
.sp-scene .win.lit:nth-of-type(3n) { transition-delay: 1.1s; }
.sp-scene .win.lit:nth-of-type(3n+1) { transition-delay: 1.7s; }
.sp-scene .win.lit:nth-of-type(3n+2) { transition-delay: 2.3s; }
.sp-scene .lamp, .sp-scene .bulb { transition-delay: 1.5s; }

/* Dusk/dawn: a warm glow on the horizon and a soft shadow sweep while it changes. */
.sp-dusk-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0;
  background: linear-gradient(100deg, rgba(20, 16, 40, 0) 0%, rgba(20, 16, 40, 0.28) 35%, rgba(255, 150, 90, 0.16) 60%, rgba(20, 16, 40, 0) 100%);
  background-size: 300% 100%; background-position: 100% 0; }
html.sp-dusk .sp-dusk-layer { animation: sp-dusk 3.2s ease-in-out; }
@keyframes sp-dusk { 0% { opacity: 0; background-position: 100% 0; } 35% { opacity: 1; } 100% { opacity: 0; background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { html.sp-dusk .sp-dusk-layer { animation: none; } }

.sp-scene .sky-a { stop-color: var(--sky-a); }
.sp-scene .sky-b { stop-color: var(--sky-b); }
.sp-scene .sky-c { stop-color: var(--sky-c); }
.sp-scene .hill-far { fill: var(--hill-far); }
.sp-scene .hill-mid { fill: var(--hill-mid); }
.sp-scene .hill-near { fill: var(--hill-near); }
.sp-scene .house-a { fill: var(--house-a); }
.sp-scene .house-b { fill: var(--house-b); }
.sp-scene .house-c { fill: var(--house-c); }
.sp-scene .roof { fill: var(--roof); }
.sp-scene .leaf { fill: var(--leaf); }
.sp-scene .leaf-2 { fill: var(--leaf-2); }
.sp-scene .trunk { fill: var(--trunk); }
.sp-scene .solar { fill: var(--solar); }
.sp-scene .solar-line { stroke: var(--solar-line); }
.sp-scene .win { fill: var(--win); }
.sp-scene .win.lit { fill: var(--win-lit); }
.sp-scene .glass { fill: var(--glass); }
.sp-scene .glass-line { stroke: var(--glass-line); }
.sp-scene .cloud { fill: var(--cloud); }
.sp-scene .tower { fill: var(--tower); stroke: var(--tower); }

/* Sun sets, moon rises. */
.sp-scene .sun { transform: translateY(0); }
.sp-scene .moon { transform: translateY(480px); }
html.dark-mode .sp-scene .sun { transform: translateY(480px); }
html.dark-mode .sp-scene .moon { transform: translateY(0); }

.sp-scene .night-only { opacity: 0; }
html.dark-mode .sp-scene .night-only { opacity: 1; }
html.dark-mode .sp-scene .day-only { opacity: 0; }

html.dark-mode .sp-scene .win.lit { filter: drop-shadow(0 0 5px rgba(255, 200, 110, 0.9)); }

/* Slow life: blades turn, clouds drift, stars and fireflies breathe. */
.sp-scene .blades {
  transform-box: fill-box;
  transform-origin: center;
  animation: sp-spin 14s linear infinite;
}
.sp-scene .blades.slow { animation-duration: 19s; }
.sp-scene .drift { animation: sp-drift 70s ease-in-out infinite alternate; }
.sp-scene .drift.b { animation-duration: 95s; animation-delay: -30s; }
.sp-scene .star { animation: sp-twinkle 3.6s ease-in-out infinite; }
.sp-scene .star:nth-child(3n) { animation-delay: -1.2s; }
.sp-scene .star:nth-child(3n+1) { animation-delay: -2.4s; }
.sp-scene .fly { animation: sp-float 5s ease-in-out infinite; }
.sp-scene .fly:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
.sp-scene .fly:nth-child(3n) { animation-duration: 7.5s; animation-delay: -4s; }

@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-drift { from { transform: translateX(-60px); } to { transform: translateX(80px); } }
@keyframes sp-twinkle { 50% { opacity: 0.35; } }
@keyframes sp-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(8px, -14px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-scene .blades, .sp-scene .drift, .sp-scene .star, .sp-scene .fly { animation: none; }
  .sp-scene * { transition: none; }
}

/* Home: the video now sits below the text (where the photo was).
   Its top edge melts into the page (soft blur + fade); by night it is
   dimmer and cooler, by day a little brighter. */
.home-video-lower {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 56vh;
  min-height: 280px;
  margin-top: 3rem;
  overflow: hidden;
}

.home-video-lower video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) saturate(1.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  transition: filter 1.2s ease;
}

html.dark-mode .home-video-lower video {
  filter: brightness(0.62) saturate(0.8) hue-rotate(-8deg);
}

/* (no backdrop blur: it left a hard edge at the top; the soft mask does the blend) */

/* Floating turbines, distant city, sky train. */
.sp-scene { --city: #cfe0dd; --city-green: #b5d3a6; --city-lit: transparent; --rail: #c9c3b4; --tram: #f4efe4; --thrust: rgba(255, 190, 110, 0.55); --nozzle: #8d96a8; --pod-light: #6fcf97; }
html.dark-mode .sp-scene { --city: #2a3358; --city-green: #2b4a46; --city-lit: #ffd27a; --rail: #3a4560; --tram: #44506b; --thrust: rgba(140, 220, 255, 0.75); --nozzle: #6b7590; --pod-light: #8be9ff; }
.sp-scene .city { fill: var(--city); }
.sp-scene .city-green { fill: var(--city-green); }
.sp-scene .city-lit { fill: var(--city-lit); }
.sp-scene .city-line { stroke: var(--city); }
.sp-scene .rail-line { stroke: var(--rail); }
.sp-scene .rail-post { fill: var(--rail); }
.sp-scene .tram-body { fill: var(--tram); }
.sp-scene .thrust { fill: var(--thrust); transform-box: fill-box; transform-origin: top center; animation: sp-thrust 0.9s ease-in-out infinite alternate; }
.sp-scene .nozzle { fill: var(--nozzle); }
.sp-scene .pod-light { fill: var(--pod-light); animation: sp-twinkle 2.4s ease-in-out infinite; }
.sp-scene .antenna { stroke: var(--nozzle); }
.sp-scene .hover { animation: sp-hover 6s ease-in-out infinite; }
.sp-scene .hover.slow { animation-duration: 8s; animation-delay: -3s; }
.sp-scene .tram { animation: sp-tram 42s linear infinite; }
@keyframes sp-hover { 50% { transform: translateY(-10px); } }
@keyframes sp-thrust { from { transform: scaleY(0.75); opacity: 0.7; } to { transform: scaleY(1.15); opacity: 1; } }
@keyframes sp-tram { from { transform: translateX(0); } to { transform: translateX(1900px); } }
@media (prefers-reduced-motion: reduce) {
  .sp-scene .hover, .sp-scene .thrust, .sp-scene .tram, .sp-scene .pod-light { animation: none; }
}

@media (max-width: 480px) {
  .sp-hero { height: 58vh; min-height: 300px; }
  .home-video-lower { height: 44vh; min-height: 220px; }
}

/* Cozy lab town: wood, doors, lamps, lanterns, string lights, docking. */
.sp-scene { --wood: #d3a774; --wood-dark: #b4844f; --door: #8a5a3a; --lamp: #f6e9bd; --bulb: #f3ead2; --lantern: #6d6a63; --pad: #c9c3b4; }
html.dark-mode .sp-scene { --wood: #4b3c33; --wood-dark: #3c2f28; --door: #241c1a; --lamp: #ffd27a; --bulb: #ffd27a; --lantern: #3c4257; --pad: #3a4560; }
.sp-scene .wood { fill: var(--wood); }
.sp-scene .wood-dark { fill: var(--wood-dark); }
.sp-scene .door { fill: var(--door); }
.sp-scene .lamp { fill: var(--lamp); }
.sp-scene .bulb { fill: var(--bulb); }
html.dark-mode .sp-scene .bulb, html.dark-mode .sp-scene .lamp { filter: drop-shadow(0 0 4px rgba(255, 200, 110, 0.95)); }
.sp-scene .lantern-post { fill: var(--lantern); }
.sp-scene .lantern-glow { fill: rgba(255, 210, 122, 0.22); }
.sp-scene .pad { fill: var(--pad); }
.sp-scene .smoke { animation: sp-smoke 7s ease-in-out infinite; }
@keyframes sp-smoke { 50% { transform: translate(6px, -6px); opacity: 0.6; } }

/* By night the turbines can't fly on sun power: they land on their pads,
   nozzle off, blades still turn slowly in the night wind. */
html.dark-mode .sp-scene .hover { animation: none; transform: translateY(var(--dock)); }
html.dark-mode .sp-scene .thrust { opacity: 0; }
html.dark-mode .sp-scene .blades { animation-duration: 30s; }

/* ── Below the video: a second, techier sky ─────────────────────── */
.sp-sky2 {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 115vh;
  min-height: 640px;
  margin-top: -14vh;            /* reaches up under the video's fading edge */
  overflow: hidden;
  z-index: 0;
}
/* only Home has the video above it to reach under */
body:not(.on-home) .sp-sky2 { margin-top: 0; }
.sp-sky2 {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}
.home-video-lower { z-index: 1; }
.home-video-lower video {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.14) 12%, rgba(0,0,0,0.32) 19%, rgba(0,0,0,0.58) 27%, rgba(0,0,0,0.84) 36%, #000 46%, #000 70%, rgba(0,0,0,0.6) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.14) 12%, rgba(0,0,0,0.32) 19%, rgba(0,0,0,0.58) 27%, rgba(0,0,0,0.84) 36%, #000 46%, #000 70%, rgba(0,0,0,0.6) 82%, transparent 100%);
}

.sp-scene .aurora { opacity: 0; mix-blend-mode: screen; }
html.dark-mode .sp-scene .aurora { opacity: 0.55; animation: sp-aurora 12s ease-in-out infinite alternate; }
@keyframes sp-aurora { from { transform: translateX(-30px) scaleY(0.9); } to { transform: translateX(40px) scaleY(1.1); } }
.sp-scene .orbit { stroke: var(--city); }
.sp-scene .sat { animation: sp-sat 26s linear infinite; }
@keyframes sp-sat { from { transform: translateX(-120px); } to { transform: translateX(1800px); } }
.sp-scene .ship { animation: sp-drift 60s ease-in-out infinite alternate; }
.sp-scene .ship-body { fill: var(--house-a); }
.sp-scene .const { stroke: rgba(255, 246, 220, 0.35); }
.sp-scene .dish { fill: var(--tower); }
.sp-scene .beam { stroke: var(--pod-light); opacity: 0; }
html.dark-mode .sp-scene .beam { opacity: 0.7; animation: sp-twinkle 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sp-scene .aurora, .sp-scene .sat, .sp-scene .ship, .sp-scene .smoke { animation: none; }
}

/* Night: docked turbines burn nothing. */
html.dark-mode .sp-scene .thrust { animation: none; opacity: 0; }

/* Big satellite bobs; dishes send signal dashes up to it, it pings back. */
.sp-scene .bob { animation: sp-bob 5.5s ease-in-out infinite; }
@keyframes sp-bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.sp-scene .signal { stroke: var(--pod-light); opacity: 0.45; animation: sp-signal 1.6s linear infinite; }
html.dark-mode .sp-scene .signal { opacity: 0.8; }
@keyframes sp-signal { to { stroke-dashoffset: -36; } }
.sp-scene .ping { stroke: var(--pod-light); transform-box: fill-box; transform-origin: center; animation: sp-ping 2.6s ease-out infinite; }
@keyframes sp-ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.sp-scene .kite { animation: sp-hover 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sp-scene .bob, .sp-scene .signal, .sp-scene .ping, .sp-scene .kite { animation: none; }
}

/* Flying birds: they cross the sky and flap their wings. */
.sp-scene .bird { stroke: #5b6b78; }
.sp-scene .bird-fly { animation: sp-birdfly 40s linear infinite; }
.sp-scene .bird-bob { animation: sp-birdbob 0.55s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes sp-birdfly { from { transform: translate(0, 0); } 50% { transform: translate(900px, -30px); } to { transform: translate(1800px, 10px); } }
@keyframes sp-birdbob { from { transform: scaleY(1); } to { transform: scaleY(-0.6); } }
@media (prefers-reduced-motion: reduce) { .sp-scene .bird-fly, .sp-scene .bird-bob { animation: none; } }

/* ── The village at the bottom of every other page ─────────────── */
.sp-village {
  display: block;
  width: 100vw;
  position: relative;
  z-index: -1;               /* behind the content: the sky reaches up behind tiles and text */
  margin: -32vh 0 0 calc(50% - 50vw);
  height: calc(clamp(340px, 38vw, 600px) + 32vh);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}
.sp-village[hidden] { display: none; }
.sp-village { overflow: hidden; }
/* depth layers: each its own picture, moved on the graphics card */
.sp-village .v-layer { position: absolute; top: 0; bottom: -16px; left: -56px; right: -56px; will-change: transform; }
.sp-village .v-layer svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; will-change: transform, opacity; }
html.has-village body { padding-bottom: 0 !important; }
html.has-village body::after { display: none; }

.sp-scene .v-sign { fill: #3b2a1e; }
.sp-scene .v-eye { fill: #e8ff9a; }
.sp-scene .v-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: v-wag 1.8s ease-in-out infinite; }
@keyframes v-wag { 50% { transform: rotate(-14deg); } }
.sp-scene .v-gear { animation: sp-spin 9s linear infinite; }
.sp-scene .v-disco { animation: sp-spin 6s linear infinite; }
.sp-scene .v-rays { transform-box: view-box; animation: v-sway 5s ease-in-out infinite alternate; }
@keyframes v-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.sp-scene .v-plane { animation: v-plane 22s ease-in-out infinite; }
@keyframes v-plane { 0% { transform: translate(-700px, 60px); } 50% { transform: translate(300px, -10px) rotate(-6deg); } 100% { transform: translate(1300px, 40px); } }
.sp-scene .v-led { fill: #6fcf97; animation: v-blink 1.1s steps(2) infinite; }
.sp-scene .v-led.b { fill: #e2b84b; animation-duration: 1.7s; }
@keyframes v-blink { 50% { opacity: 0.2; } }
.sp-scene .v-robot { animation: v-roll 14s ease-in-out infinite alternate; }
@keyframes v-roll { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
@media (prefers-reduced-motion: reduce) {
  .sp-scene .v-tail, .sp-scene .v-gear, .sp-scene .v-disco, .sp-scene .v-rays, .sp-scene .v-plane, .sp-scene .v-led, .sp-scene .v-robot { animation: none; }
}

.sp-scene .v-shoot { animation: v-shoot 9s ease-in infinite; opacity: 0; }
@keyframes v-shoot { 0%, 88% { transform: translate(0, 0); opacity: 0; } 90% { opacity: 1; } 100% { transform: translate(420px, 140px); opacity: 0; } }

/* Home views (Projects / Articles / Contact): content sits right above the village. */
html.has-village .view-panel {
  min-height: 0;
  justify-content: flex-start;
  padding-bottom: 0;
}
#view-projects .tile-list {
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  #view-projects .tile-list { grid-template-columns: 1fr; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .sp-scene .v-shoot { animation: none; } }

/* Tiles stay readable on the sky. */
html.has-village .tile:not(.tile-photo) {
  background-color: rgba(var(--bg-rgb), 0.84); /* no blur: blur over a moving sky stutters */
}

/* Navbar: no grey bar – it fades out into the sky, day and night, smoothly. */
.navbar {
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.82), rgba(var(--bg-rgb), 0.45) 70%, rgba(var(--bg-rgb), 0)) !important;
  border-bottom-color: transparent !important;
  -webkit-backdrop-filter: blur(3px) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  transition: background 2.4s ease, color 2.4s ease !important;
}
body.home-active .navbar:not(:hover) {
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.35), rgba(var(--bg-rgb), 0)) !important;
}

/* "I build websites" line on the home page: a small, friendly highlight. */
.home-offer {
  border-left: 3px solid rgba(122, 173, 102, 0.7);
  padding-left: 0.9rem;
}

/* Projects / Articles / Contact: content right under the town picture, like on Home. */
.view-panel:not(.home-panel) {
  min-height: 0;
  justify-content: flex-start;
  padding: 3rem 1.5rem 2rem;
}

/* The four main pages lie side by side: all in one cell, the active one in view,
   the others waiting to the left or right. Changing page slides instead of jumping. */
.views {
  display: grid;
  overflow-x: clip;
  transition: height 1.7s cubic-bezier(0.55, 0, 0.25, 1);
}
.views > .view {
  display: block;
  grid-area: 1 / 1;
  align-self: start;
  transition: transform 1.7s cubic-bezier(0.55, 0, 0.25, 1), opacity 1.1s ease, visibility 0s linear 0s;
}
.views > .view-left,
.views > .view-right {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 1.7s cubic-bezier(0.55, 0, 0.25, 1), opacity 0.9s ease, visibility 0s linear 1.7s;
}
.views > .view-left { transform: translateX(-55vw); }
.views > .view-right { transform: translateX(55vw); }
.views.no-glide, .views.no-glide > .view { transition: none; }
.sp-sky2 { transition: margin-top 1.7s cubic-bezier(0.55, 0, 0.25, 1); }
@media (prefers-reduced-motion: reduce) {
  .views, .views > .view, .views > .view-left, .views > .view-right, .sp-sky2 { transition: none; }
}
