/* ==========================================================================
   samuelbeek.com — shared stylesheet
   Design tokens and section styles recreated from the original Framer site.
   ========================================================================== */

/* ---- Fonts (self-hosted, see assets/fonts) ---- */
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/eTV1TIK1tbVI9tQPE5TpxxykyU.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/2jDdTaHKlnRPEu6ZhUsMf1p4w.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/VHRbsYRamHXkimxMqvP6Ju7ofw.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/zucotdrRoTFXF4HGJdvfLedG3Ok.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/assets/fonts/vlcgXHhjPOw3oP9tEp2XLY0L7i0.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Playfair Display italic — Google Fonts, self-hosted */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
/* M PLUS Rounded 1c bold — the CloudEMDR display font */
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/assets/fonts/mplus-rounded-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Inter — used inside the "video editor" about widget */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --text: rgb(17, 17, 17);
  --text-gray: rgb(145, 145, 145);
  --bg-gray: rgb(242, 242, 242);
  --bg-offwhite: rgb(250, 250, 250);
  --bg-blue: rgb(212, 237, 255);
  --bg-dark: rgb(27, 27, 29);
  --orange: rgb(255, 72, 27);
  --btn-blue: rgb(163, 200, 255);

  --sans: "Mona Sans", "Helvetica Neue", sans-serif;
  --serif-pp: "PP Editorial New", "Playfair Display", serif;
  --serif-pf: "Playfair Display", serif;
  --rounded: "M PLUS Rounded 1c", "Arial Rounded MT Bold", sans-serif;
  --ui: "Inter", system-ui, sans-serif;

  /* Spring easings generated from the original Framer spring parameters */
  /* stiffness 200, damping 50, mass 1.1 — soft */
  --spring-a: linear(0, 0.0722, 0.2191, 0.3787, 0.5234, 0.6436, 0.7386, 0.8110, 0.8650, 0.9044, 0.9329, 0.9532, 0.9675, 0.9776, 0.9846, 0.9895, 0.9928, 0.9951, 0.9967, 0.9978, 0.9985, 0.9990, 0.9993, 1);
  --spring-a-dur: 748ms;
  /* stiffness 230, damping 45, mass 1 — standard rise-in */
  --spring-b: linear(0, 0.0727, 0.2205, 0.3807, 0.5257, 0.6460, 0.7408, 0.8129, 0.8666, 0.9058, 0.9340, 0.9540, 0.9682, 0.9781, 0.9850, 0.9897, 0.9930, 0.9952, 0.9968, 0.9978, 0.9985, 0.9990, 0.9993, 1);
  --spring-b-dur: 668ms;
  /* stiffness 400, damping 30, mass 1 — bouncy */
  --spring-c: linear(0, 0.0653, 0.2121, 0.3862, 0.5547, 0.7000, 0.8153, 0.9006, 0.9592, 0.9962, 1.0169, 1.0263, 1.0283, 1.0261, 1.0218, 1.0168, 1.0121, 1.0081, 1.0049, 1.0026, 1.0010, 1.0000, 0.9995, 1);
  --spring-c-dur: 460ms;
}

/* ---- Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg-gray);
  transition: background-color 0.8s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.bg-blue { background-color: var(--bg-blue); }
body.bg-dark { background-color: var(--bg-dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---- Appear animations (scroll-triggered, spring easing) ----
   Elements with [data-appear] start hidden and get .in from js/main.js. */
[data-appear] {
  opacity: 0.001;
  transition: opacity var(--spring-b-dur) var(--spring-b), transform var(--spring-b-dur) var(--spring-b);
  transition-delay: var(--appear-delay, 0ms);
}
[data-appear="rise"] { transform: translateY(25px); }
[data-appear="drop"] { transform: translateY(-150px) scale(0.7); transition-duration: var(--spring-c-dur); transition-timing-function: var(--spring-c); }
[data-appear="fade"] { transform: none; transition-duration: var(--spring-a-dur); transition-timing-function: var(--spring-a); }
[data-appear].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-appear] { opacity: 1; transform: none; transition: none; }
}

/* ---- Fixed header ---- */
.site-header {
  position: fixed; top: 24px; right: 40px; z-index: 100;
  display: flex; gap: 8px; align-items: center;
}
.site-header .social {
  display: flex; gap: 8px;
  opacity: 0; transform: translateX(24px) scale(0.96);
  transform-origin: right center;
  transition: opacity 0.25s ease, transform var(--spring-c-dur) var(--spring-c);
  pointer-events: none;
}
.site-header:hover .social,
.site-header:focus-within .social { opacity: 1; transform: none; pointer-events: auto; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-dark); color: #fff;
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--bg-dark); color: #fff;
  font-size: 17px; white-space: nowrap;
}
.pill svg { width: 18px; height: 18px; opacity: 0.85; }
.pill:hover svg { opacity: 1; }
.btn-contact {
  display: inline-block;
  background: var(--btn-blue);
  color: rgb(17, 24, 64);
  font-size: 18px; font-weight: 500;
  padding: 10px 18px; border-radius: 8px;
  border: 1px solid rgba(17, 24, 64, 0.35);
  box-shadow: 0 2px 4px rgba(17, 24, 64, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-contact:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(17, 24, 64, 0.3); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-dark);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg-gray);
  flex-direction: column; justify-content: center; gap: 40px;
  padding: 0 32px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.35s var(--spring-c);
}
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  font-family: var(--serif-pf); font-style: italic; font-weight: 500;
  font-size: 44px; line-height: 1.15; color: var(--text);
  width: max-content;
  transition: opacity 0.2s ease;
}
.mobile-menu-links a:active { opacity: 0.5; }
.mobile-menu-social { display: flex; gap: 10px; align-items: center; }
.mobile-menu-social .pill { height: 48px; }
.mobile-menu-social .icon-btn { width: 48px; height: 48px; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  position: relative; z-index: 2; /* stack overlays the About card while it travels */
}
.hero-name h1 {
  font-size: clamp(64px, 9vw, 122px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
}
.hero-name p { font-size: 20px; margin-top: 8px; }
.hero-welcome {
  position: absolute; bottom: 48px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif-pf); font-style: italic; font-size: 22px;
}

/* Polaroid stack (hero) */
.polaroid-stack { position: relative; width: 330px; height: 370px; margin: 0 auto; will-change: transform; }
/* Styled to mirror the About card's polaroid-frame exactly (borderless photo,
   plain dark cards peeking behind) so the scroll handoff is seamless. */
.polaroid {
  position: absolute; inset: 0;
  border-radius: 12px; overflow: hidden;
  transition: transform var(--spring-c-dur) var(--spring-c);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.polaroid[data-pos="0"] {
  transform: rotate(2deg); z-index: 3;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.polaroid[data-pos="1"] { transform: rotate(3deg) translateX(6px); z-index: 2; background: #2c2450; }
.polaroid[data-pos="2"] { transform: rotate(-4deg); z-index: 1; background: #141414; }
.polaroid[data-pos="1"] img,
.polaroid[data-pos="2"] img { display: none; }

/* ---- About card ---- */
.about { padding: 12vh 0 24vh; }
.about-card {
  max-width: 925px; margin: 0 auto;
  background: #fff; border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.about-body {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px;
  padding: 56px 30px 40px;
}
.about-text h2 { font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 28px; }
.about-text p { font-size: 16px; line-height: 1.55; max-width: 400px; }
.about-media { position: relative; display: grid; place-items: center; }
.about-media .polaroid-frame {
  width: 320px; height: 375px;
  border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transform: rotate(2deg);
  position: relative;
}
.about-media .polaroid-frame::before,
.about-media .polaroid-frame::after {
  /* darker cards peeking out behind, like a stack */
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 12px; background: #141414;
  transform: rotate(-4deg);
}
.about-media .polaroid-frame::after { transform: rotate(3deg) translateX(6px); background: #2c2450; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: opacity 0.3s ease; }

/* Editor toolbar */
.editor-bar {
  display: flex; align-items: center; gap: 22px;
  border-top: 1px solid #e8e8e8;
  padding: 12px 18px;
  font-family: var(--ui); font-size: 13px; color: #333;
}
.editor-bar .tool { display: inline-flex; align-items: center; gap: 6px; color: #222; }
.editor-bar .transport { display: flex; align-items: center; gap: 14px; margin-left: auto; margin-right: auto; }
.editor-bar .t-btn {
  width: 26px; height: 26px; display: grid; place-items: center;
  color: #444; border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.editor-bar .t-btn svg { width: 20px; height: 20px; }
.editor-bar .t-btn:hover { color: #111; background: #eee; }
.editor-bar .t-btn:active { transform: scale(0.92); }
.editor-bar .play {
  width: 34px; height: 34px; border-radius: 50%;
  background: #111; color: #fff; display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.editor-bar .play:hover { transform: scale(1.06); }
.editor-bar .play:active { transform: scale(0.94); }
.editor-bar .play svg { width: 18px; height: 18px; }
.editor-bar .play .icon-pause { display: none; }
.about-card.playing .play .icon-play { display: none; }
.about-card.playing .play .icon-pause { display: block; }
.editor-bar .tool svg { width: 15px; height: 15px; vertical-align: -2px; }
.editor-bar .time { font-size: 16px; color: #111; font-variant-numeric: tabular-nums; }
.editor-bar .time .total { color: #9a9a9a; }
.editor-bar .zoom { display: flex; align-items: center; gap: 8px; }
.editor-bar .zoom svg { width: 15px; height: 15px; }
.editor-bar .zoom .slider { width: 110px; height: 4px; border-radius: 2px; background: #ddd; position: relative; }
.editor-bar .zoom .slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: #4d6aff; border-radius: 2px; }
.editor-bar .zoom .slider::after { content: ""; position: absolute; left: 52%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1px solid #ccc; transform: translateY(-50%); box-shadow: 0 1px 2px rgba(0,0,0,0.15); }

/* Timeline */
.timeline { position: relative; padding: 0 0 26px; background: #fbfbfb; }
.timeline .ruler {
  display: flex; justify-content: space-between;
  padding: 8px 18px 2px; color: #9a9a9a;
  font-family: var(--ui); font-size: 11px;
  border-bottom: 1px dashed #e5e5e5;
}
.timeline .clips { position: relative; height: 158px; margin: 10px 18px 0; }
.clip {
  position: absolute; height: 32px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border-radius: 8px; border: 1px solid rgba(0,0,0,0.25);
  font-size: 17px;
  white-space: nowrap; overflow: hidden;
  transition: filter 0.15s ease;
}
.clip:hover { filter: brightness(0.96); }
.clip.active { outline: 2px solid rgba(0,0,0,0.35); }
.clip-startups   { top: 0;   left: 0%;    width: 71%; background: #f2a9a4; color: #5c2a26; border-color: #d5726b; }
.clip-wetransfer { top: 44px; left: 20%;  width: 40%; background: #f6c397; color: #6b4a1f; border-color: #dd9a55; }
.clip-veed       { top: 88px; left: 67.5%; width: 30%; background: #a9cdf8; color: #274d80; border-color: #6f9fd8; }
.clip-cloudemdr  { top: 132px; left: 0%;  width: 85%; background: #a9dfa4; color: #2c5a28; border-color: #6fb968; }
.clip-schematik  { top: 132px; left: 86.5%; width: 13.5%; background: #cdb9f2; color: #45297a; border-color: #a58ad8; }
.clip svg { width: 15px; height: 15px; flex-shrink: 0; }
.playhead {
  position: absolute; top: -14px; bottom: 0; width: 2px;
  background: #2210f0; pointer-events: none;
  opacity: 0; transition: left 0.25s ease, opacity 0.2s ease;
}
.playhead::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top: 9px solid #2210f0;
}
.about-hint {
  display: flex; justify-content: center; align-items: flex-start; gap: 6px;
  margin-top: 26px; color: #9a9a9a; font-size: 20px;
}
.about-hint svg { margin-top: -6px; }

/* Mobile pagination (hidden on desktop, shown when the timeline is not) */
.about-pager { display: none; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.about-pager .dots { display: flex; gap: 12px; align-items: center; }
.about-pager .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(17, 17, 17, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.about-pager .dot.active { background: var(--text); transform: scale(1.15); }
.about-pager .pager-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text); background: rgba(17, 17, 17, 0.06);
  transition: background 0.2s ease, transform 0.15s ease;
}
.about-pager .pager-arrow:hover { background: rgba(17, 17, 17, 0.12); }
.about-pager .pager-arrow:active { transform: scale(0.92); }

/* ---- CloudEMDR ---- */
/* Big empty sky between the editor and the clouds; the clouds + title then
   sit right on top of the side-hustle text. */
.cloudemdr { padding: 55vh 0 16vh; position: relative; }
.cloudemdr .cloud-sky { position: relative; }
.cloudemdr .cloud-title {
  font-family: var(--rounded); font-weight: 700;
  font-size: clamp(72px, 16vw, 230px);
  letter-spacing: -0.04em; line-height: 1;
  text-align: center;
  color: rgba(17,17,17,0.07);
  transition: color 1s ease;
  position: relative; z-index: 2;
}
.cloudemdr.active .cloud-title { color: var(--text); }
.cloudemdr .clouds { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.cloudemdr .clouds img { position: absolute; opacity: 0; transition: opacity 1.2s ease, transform 1.2s ease; }
.cloudemdr.active .clouds img { opacity: 1; }
.cloud-l { width: 560px; right: 2%; top: -60px; }
.cloud-s { width: 620px; left: -3%; top: -90px; }
.cloud-m { width: 330px; left: 32%; top: 160px; }
.cloudemdr .side-hustle { max-width: 760px; margin: 120px auto 0; padding: 0 40px; position: relative; z-index: 2; }
.cloudemdr .side-hustle h3 { font-size: 24px; font-weight: 500; letter-spacing: 0.1px; margin-bottom: 16px; }
.cloudemdr .side-hustle p { font-size: 20px; line-height: 1.5; max-width: 745px; }
.btn-outline {
  display: inline-block; margin-top: 40px;
  border: 1px solid var(--text); border-radius: 8px;
  padding: 14px 20px; font-size: 17px; color: var(--text);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--text); color: #fff; }

/* ---- Writing ---- */
.writing { padding: 24vh 0 45vh; }
.writing-inner { max-width: 810px; margin: 0 auto; padding: 0 40px; }
.writing h2 {
  font-family: var(--serif-pp); font-style: italic; font-weight: 400;
  font-size: 32px; margin-bottom: 90px;
}
.post { border-bottom: 0; padding: 14px 0; position: relative; }
.post-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.post-title { font-size: 20px; transition: opacity 0.2s ease; }
.post:hover .post-title { opacity: 0.6; }
.post-date { color: var(--text-gray); font-size: 20px; flex-shrink: 0; }
.post-desc { color: var(--text-gray); font-size: 20px; line-height: 1.45; margin-top: 10px; max-width: 760px; }
.post-read {
  display: block; text-align: right;
  font-family: var(--serif-pp); font-style: italic; font-size: 26px;
  margin-top: 10px;
}
.sticker {
  position: absolute; top: -22px; left: -44px;
  background: #f2a0a6; color: #532628;
  font-family: var(--ui); font-weight: 500; font-size: 16px;
  padding: 8px 18px; border-radius: 8px;
  transform: rotate(-8deg);
  box-shadow: 0 2px 3px rgba(0,0,0,0.18);
}
.view-all {
  display: block; text-align: right; margin-top: 60px;
  font-family: var(--serif-pp); font-style: italic; font-size: 28px;
}
.view-all:hover, .post-read:hover { opacity: 0.6; }

/* ---- Zwartelab (dark workshop) ---- */
.zwartelab { padding: 30vh 0 0; color: #fff; }
.zwartelab .room-wrap { position: relative; max-width: 935px; margin: 0 auto; }
.zwartelab .room { display: block; width: 100%; }
.zwartelab .dotmatrix {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, 46%); z-index: 2;
}
.zwartelab .dotmatrix circle { opacity: 0; }
.zwartelab .dotmatrix.lit circle { opacity: 1; transition: opacity 0.05s linear; }
.zwartelab .workshop-text { max-width: 810px; margin: 200px auto 0; padding: 0 40px; }
.zwartelab .workshop-text p { font-size: 24px; line-height: 1.45; color: #fff; margin-bottom: 28px; }
.zwartelab .objects {
  max-width: 800px; margin: 90px auto 0; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.object-tile { position: relative; aspect-ratio: 1; margin: 0; }
.object-tile .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.3s ease;
}
.object-tile:hover .photo { opacity: 1; }
.object-tile .drawing { position: relative; width: 100%; height: 100%; z-index: 1; }
.zwartelab .explore-row { max-width: 935px; margin: 40px auto 0; padding: 0 40px; display: flex; justify-content: flex-end; }
.zwartelab .btn-outline { border-color: #fff; color: #fff; }
.zwartelab .btn-outline:hover { background: #fff; color: var(--text); }

/* ---- Mooie Dingen ---- */
.mooie-pin { height: 300vh; position: relative; }
.mooie-viewport { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.mooie-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: left; z-index: 2;
}
.mooie-title {
  font-family: var(--serif-pp); font-style: italic; font-weight: 400;
  font-size: clamp(64px, 9.5vw, 132px); line-height: 1;
  color: #fff; white-space: nowrap;
}
.mooie-title .ltr { display: inline-block; will-change: transform, opacity; }
.mooie-def { max-width: 435px; margin-top: 70px; color: #fff; }
.mooie-def .lang { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.mooie-def .meaning { color: var(--text-gray); font-size: 18px; margin-bottom: 12px; }
.mooie-def .desc { font-size: 20px; line-height: 1.4; }
.mooie-def .desc strong { font-weight: 700; }
.mooie-center .btn-outline { border-color: var(--orange); color: var(--orange); margin: 44px auto 0; display: block; }
.mooie-center .btn-outline:hover { background: var(--orange); color: #fff; }
.mooie-float {
  position: absolute; z-index: 1;
  opacity: 0; will-change: transform, opacity;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.mooie-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Footer ---- */
.site-footer { padding: 22vh 0 60px; position: relative; }
.footer-inner { max-width: 1300px; margin: 0 auto; padding: 0 50px; }
.site-footer h2 {
  font-family: var(--serif-pf); font-style: italic; font-weight: 600;
  font-size: 40px; margin-bottom: 120px;
}
.footer-lines { display: flex; flex-direction: column; gap: 22px; font-size: 20px; }
.footer-lines .line { display: flex; gap: 6px; }
.footer-lines .line:nth-child(1) { justify-content: flex-start; }
.footer-lines .line:nth-child(2) { justify-content: center; }
.footer-lines .line:nth-child(3) { justify-content: flex-end; }
.footer-lines a, .footer-lines button { position: relative; font-size: inherit; }
/* hover chip: dark sticker that pops up above the link (matches original) */
.chip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  background: rgb(46, 46, 43); color: #fff;
  font-size: 15px; line-height: 1;
  padding: 9px 13px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(8px) rotate(-4deg) scale(0.9);
  transition: opacity 0.2s ease, transform var(--spring-c-dur) var(--spring-c);
}
.has-chip:hover .chip,
.has-chip.copied .chip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(-4deg) scale(1);
}
.footer-meta { display: flex; gap: 28px; margin-top: 160px; font-size: 16px; }

/* ---- Article pages ---- */
.article-page { max-width: 1160px; margin: 0 auto; padding: 40px; }
.back-link {
  font-family: var(--serif-pf); font-style: italic; font-size: 20px; font-weight: 400;
  letter-spacing: -1.5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.back-link:hover { opacity: 0.6; }
.article-header { max-width: 840px; margin: 200px auto 0; }
.article-header h1 {
  font-family: var(--serif-pf); font-style: italic; font-weight: 400;
  font-size: 44px; letter-spacing: -1px; margin-bottom: 18px;
}
.article-meta { color: var(--text-gray); font-size: 18px; display: flex; gap: 12px; align-items: center; }
.article-meta .share { cursor: pointer; }
.article-meta .share:hover { opacity: 0.7; }
.article-content { max-width: 840px; margin: 30px auto 120px; }
.article-content h2 { font-size: 32px; font-weight: 500; margin: 56px 0 20px; }
.article-content h3 { font-size: 24px; font-weight: 500; margin: 44px 0 16px; }
.article-content p { font-size: 20px; line-height: 1.5; margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 28px; margin-bottom: 18px; }
.article-content li { font-size: 20px; line-height: 1.5; margin-bottom: 6px; }
.article-content blockquote {
  border-left: 3px solid #ccc; padding: 4px 0 4px 24px; margin: 36px 0;
  font-size: 22px; line-height: 1.55; color: #333;
}
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { opacity: 0.7; }
.article-content img { border-radius: 12px; margin: 28px 0; }
.article-content iframe { width: 100%; border: 0; border-radius: 14px; margin: 28px 0; }
.article-footer { max-width: 840px; margin: 0 auto 120px; }
.article-footer h3 { font-family: var(--serif-pf); font-style: italic; font-size: 28px; margin-bottom: 16px; }
.to-top {
  position: fixed; right: 44px; bottom: 44px; z-index: 50;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: grid; place-items: center; font-size: 22px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---- Writing index ---- */
.writing-index { max-width: 1330px; margin: 0 auto; padding: 40px 50px; min-height: 90vh; }
.writing-index .page-title {
  font-family: var(--serif-pp); font-style: italic; font-weight: 400;
  font-size: clamp(80px, 12vw, 150px);
  color: rgba(17,17,17,0.16); margin: 200px 0 120px;
}
.writing-index .post-title, .writing-index .post-date { font-size: 20px; }
.writing-index .post { padding: 11px 0; }
.writing-index .footer-meta { margin-top: 30vh; }

/* ---- 404 ---- */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.page-404 h1 { font-family: var(--serif-pp); font-style: italic; font-size: 120px; font-weight: 400; }
.page-404 p { font-size: 20px; margin-top: 16px; }
.page-404 a { text-decoration: underline; text-underline-offset: 4px; margin-top: 24px; display: inline-block; font-size: 20px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; align-items: start; }
  .polaroid-stack { width: 280px; height: 315px; }
  .about-body { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}
@media (max-width: 700px) {
  .container, .writing-inner, .footer-inner { padding: 0 24px; }
  .hero { padding: 100px 24px 0; }
  .hero-name h1 { font-size: 72px; }

  /* Mobile header: hamburger opens a full-screen menu instead of the hover bar */
  .site-header { right: 20px; top: 20px; }
  .hamburger { display: flex; }
  .site-header .social { display: none; }
  .site-header .btn-contact { display: none; }
  .mobile-menu { display: flex; }
  .about-card { margin: 0 16px; }
  .about-body { padding: 32px 22px 8px; }
  .about-text h2 { font-size: 36px; }
  /* On mobile the timeline is too cramped — the original swaps it for
     paginated story cards. Hide the editor chrome, show the dots. */
  .editor-bar, .timeline { display: none; }
  .about-pager { display: flex; }
  .about-media .polaroid-frame { width: 260px; height: 300px; }
  .about-hint { display: none; }
  .writing h2 { margin-bottom: 60px; }
  .sticker { left: -8px; top: -30px; }
  .post-row { flex-wrap: wrap; }
  .mooie-title { white-space: normal; text-align: center; }
  .mooie-def { padding: 0 24px; }
  .site-footer h2 { font-size: 32px; margin-bottom: 70px; }
  .footer-lines { font-size: 18px; }
  .footer-lines .line { flex-wrap: wrap; }
  .article-header { margin-top: 120px; }
  .article-header h1 { font-size: 34px; }
  .to-top { right: 20px; bottom: 20px; width: 52px; height: 52px; }
}
