/* =========================================================
   Beyond work: one big board to wander around.
   Builds on ../css/style.css (fonts, buttons, sr-only).
   The world is a large canvas moved with translate + scale (board.js);
   each thing looks like what it is: framed paintings, pinned clay photos,
   sheets of writing, newspaper clippings, theatre tickets and photo prints.
   ========================================================= */
.board-page {
  --bg: #f6efe2;
  --surface: #fffaf1;
  --text: #241f2c;
  --text-2: #463d4d;
  --muted: #6a6070;
  --border: rgba(36, 31, 44, 0.12);
  --focus: #b8860b;
  --sun: #f2b630;
  --sun-deep: #8a5a00;
  --leaf: #5b7f3a;

  position: fixed; inset: 0; overflow: hidden;
  background: var(--bg); color: var(--text);
}
.board-page ::selection { background: rgba(242, 182, 48, 0.35); }

/* ---------------- top bar (floats over the board) ---------------- */
.bd-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 28px); pointer-events: none;
}
.bd-top > * { pointer-events: auto; }
.bd-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 250, 241, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -10px rgba(60, 40, 10, 0.45), 0 0 0 1px var(--border);
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.bd-back span { transition: transform 0.2s var(--ease-out); }
.bd-back:hover span { transform: translateX(-3px); }

/* ---------------- the viewport and the world ---------------- */
.bd-viewport {
  position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(1400px 700px at 80% -10%, rgba(242, 182, 48, 0.18), transparent 60%),
    var(--bg);
}
.bd-viewport::before {   /* dotted paper that moves and scales with the board (board.js sets the vars) */
  content: ""; position: absolute; inset: 0; width: auto; height: auto; z-index: 0; opacity: 1; filter: none; animation: none; transform: none; pointer-events: none;
  background-image: radial-gradient(rgba(120, 90, 50, 0.16) 1.2px, transparent 1.5px);
  background-size: var(--dot, 22px) var(--dot, 22px);
  background-position: var(--dx, 0) var(--dy, 0);
}
.bd-viewport::after { content: none; }   /* the home page decorates main; the board is a main too */
.bd-viewport:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus); }
.bd-viewport.is-dragging { cursor: grabbing; }
.bd-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }

/* every piece on the board */
.bd-item {
  position: absolute; left: 0; top: 0; width: var(--w); margin: 0;
  transform: translate(var(--x), var(--y)) rotate(var(--r, 0deg));
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out);
  filter: drop-shadow(0 10px 14px rgba(70, 45, 15, 0.16));
}
.bd-item:hover { transform: translate(var(--x), calc(var(--y) - 6px)) rotate(0deg) scale(1.015); filter: drop-shadow(0 22px 26px rgba(70, 45, 15, 0.24)); z-index: 2; }
.bd-item img { width: 100%; height: auto; display: block; pointer-events: none; -webkit-user-drag: none; }
.bd-item img.is-loading { opacity: 0; filter: blur(14px); }
.bd-item img { transition: opacity 0.6s ease, filter 0.8s ease; }

/* handwritten zone labels, so you always know where you are */
.bd-zone {
  position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap;
  transform: translate(var(--x), var(--y)) rotate(-2deg);
  font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--sun-deep);
}
.bd-zone::after { content: ""; display: block; width: 70%; height: 8px; margin-top: 2px; background: rgba(242, 182, 48, 0.45); border-radius: 6px; transform: skewX(-12deg); }

/* ---------------- the middle: name + the sunflower that follows you ---------------- */
.bd-hello { text-align: center; filter: none; }
.bd-hello:hover { transform: translate(var(--x), var(--y)); filter: none; }
.bd-hello h1 { font-size: 4.6rem; letter-spacing: -0.02em; line-height: 1; }
.bd-hello p { margin-top: 14px; font-size: 1.3rem; color: var(--text-2); }
.bd-sun { width: 190px; margin: 0 auto 6px; }
.bd-sun svg { width: 100%; height: auto; display: block; overflow: visible; }
.sf-stem { fill: none; stroke: var(--leaf); stroke-width: 7; stroke-linecap: round; }
.sf-leaf { fill: #6f9446; transform-origin: 111px 238px; animation: sf-leaf 5s ease-in-out infinite; }
.sf-leaf-l { transform-origin: 110px 262px; animation-delay: -2.5s; }
.sf-head { transform-origin: 110px 150px; transition: transform 0.6s var(--ease-out); }
.sf-petals ellipse { fill: var(--sun); stroke: #e09a12; stroke-width: 1; }
.sf-petals ellipse:nth-child(even) { fill: #f7c94e; }
.sf-disk { fill: #6b4423; }
.sf-face { transition: transform 0.4s var(--ease-out); }
.sf-seeds circle { fill: #4a2d15; }
.sf-eye { fill: #1d140c; }
.sf-smile { fill: none; stroke: #1d140c; stroke-width: 2.4; stroke-linecap: round; }
@keyframes sf-leaf { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }

/* ---------------- paintings: framed, with a mat ---------------- */
.bd-painting .frame { padding: 16px; background: linear-gradient(135deg, #7a5230, #5a3a1f 40%, #7a5230); border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18); }
.bd-painting .mat { padding: 22px; background: #fbf8f1; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18); }
.bd-painting .mat img { aspect-ratio: 3 / 4; object-fit: contain; }   /* fixed shape, so the wall lays out before the pictures arrive */

/* ---------------- clay: photos pinned with a strip of tape ---------------- */
.bd-clay .print { position: relative; padding: 12px 12px 40px; background: #fff; }
.bd-clay .print img { aspect-ratio: 4 / 5; object-fit: cover; }
.bd-clay .print::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(242, 214, 140, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* ---------------- travel: a photo print and where it was taken ---------------- */
.bd-travel .print { padding: 10px 10px 0; background: #fff; }
.bd-travel .print img { aspect-ratio: 3 / 4; object-fit: cover; }
.bd-travel .place { display: flex; align-items: center; gap: 6px; padding: 9px 4px 11px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; line-height: 1.2; color: var(--text); }
.bd-travel .place svg { width: 15px; height: 15px; flex: none; color: #c0563c; }

/* ---------------- writing: sheets of paper, the whole piece on the wall ---------------- */
.bd-sheet .paper {
  position: relative; padding: 34px 36px 40px; background: #fffdf7;
  background-image: linear-gradient(90deg, transparent 52px, rgba(214, 90, 90, 0.22) 52px 54px, transparent 54px),
                    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 110, 170, 0.12) 31px 32px);
  background-position: 0 0, 0 22px;
}
.bd-sheet .paper::before { content: ""; position: absolute; left: 50%; top: -14px; width: 26px; height: 26px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #ff8a6a, #c0392b 70%); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25); }
.bd-sheet .kind { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-deep); padding-left: 26px; }
.bd-sheet h3 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1.15; padding-left: 26px; margin: 2px 0 18px; color: var(--text); }
.bd-sheet .words { padding-left: 26px; font-family: var(--font-display); font-size: 1.08rem; line-height: 32px; color: var(--text-2); }
.bd-sheet .words p + p { margin-top: 32px; }
.bd-poem .words { white-space: pre-line; font-style: italic; }

/* ---------------- articles: newspaper clippings that link to Medium ---------------- */
.bd-article .clip { padding: 0 0 22px; background: #f1ebde; clip-path: polygon(0 1%, 6% 0, 14% 1%, 24% 0, 36% 1%, 48% 0, 60% 1%, 72% 0, 84% 1%, 94% 0, 100% 1%, 100% 98%, 92% 100%, 80% 99%, 66% 100%, 52% 99%, 38% 100%, 24% 99%, 10% 100%, 0 99%); }
.bd-article.is-featured .clip { background: #fbf6ec; }
.bd-article .clip img { aspect-ratio: 16 / 9; object-fit: cover; }
.bd-article .clip-body { padding: 16px 22px 0; }
.bd-article .clip-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bd-article.is-featured .clip-tag { color: var(--sun-deep); }
.bd-article h3 { margin-top: 6px; font-size: 1.45rem; line-height: 1.2; font-weight: 600; }
.bd-article.is-featured h3 { font-size: 1.85rem; }
.bd-article .clip-sub { margin-top: 8px; font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.4; color: var(--text-2); }

/* the link on articles and tickets: the only thing on the board you click */
.bd-cta { margin-top: 16px; }   /* the look is the site's .btn .btn-primary */
.bd-cta svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.bd-cta:hover svg { transform: translate(2px, -2px); }

/* ---------------- theatre: a ticket ---------------- */
.bd-theatre .ticket { display: grid; grid-template-columns: 1fr; background: #7c2230; color: #fbeee0; border-radius: 10px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) , radial-gradient(circle 12px at 100% 62%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.bd-theatre .ticket img { aspect-ratio: 16 / 9; object-fit: cover; }
.bd-theatre .ticket-body { padding: 18px 24px 22px; border-top: 2px dashed rgba(251, 238, 224, 0.35); }
.bd-theatre .ticket-kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #f2c46d; }
.bd-theatre h3 { margin-top: 6px; font-size: 1.7rem; line-height: 1.15; color: #fff7ec; }
.bd-theatre .ticket-meta { margin-top: 4px; font-size: 0.92rem; color: rgba(251, 238, 224, 0.75); }

/* ---------------- floating controls ---------------- */
.bd-hint {
  position: fixed; left: 50%; bottom: 26px; z-index: 15; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.88rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); transition: opacity 0.5s, transform 0.5s var(--ease-out); pointer-events: none;
}
.bd-hint-hand { display: inline-block; animation: bd-wave 1.8s ease-in-out infinite; }
@keyframes bd-wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.bd-hint.is-gone { opacity: 0; transform: translate(-50%, 12px); }

.bd-zoom {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: 22px; z-index: 15; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px; background: rgba(255, 250, 241, 0.94); box-shadow: 0 8px 20px -12px rgba(60, 40, 10, 0.5), 0 0 0 1px var(--border);
}
.bd-zoom button { min-width: 36px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.bd-zoom button:hover { background: rgba(242, 182, 48, 0.2); }
.bd-zoom .bd-z-fit { font-size: 0.82rem; font-weight: 600; border-left: 1px solid var(--border); border-radius: 0 999px 999px 0; padding: 0 14px; }
.bd-z-level { min-width: 46px; text-align: center; font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--muted); }

.bd-far {
  position: fixed; left: 50%; top: 50%; z-index: 15; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--sun-deep); text-align: center; animation: bd-pop 0.4s var(--ease-out);
}
.bd-far[hidden] { display: none; }
@keyframes bd-pop { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.bd-noscript { position: fixed; inset: 40% 0 auto; text-align: center; }

@media (max-width: 980px) { .bd-hint { bottom: 82px; } }
@media (max-width: 640px) {
  .bd-zoom .bd-z-fit { padding: 0 10px; }
}

/* stories: tighter paragraphs on plain paper (with the margin line), so a long story stays a comfortable height */
.bd-story .paper { background-image: linear-gradient(90deg, transparent 52px, rgba(214, 90, 90, 0.22) 52px 54px, transparent 54px); }
.bd-story .words { line-height: 1.75; }
.bd-story .words p + p { margin-top: 14px; }

/* ---------------- the site nav on the board: a slim paper-glass bar that always stays ---------------- */
.bd-top.site-nav {
  --nav-panel: #fffaf1; --nav-line: var(--border);
  pointer-events: auto; padding: 8px clamp(16px, 3vw, 28px); min-height: 56px;
  background: rgba(255, 250, 241, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border); color: var(--text);
}
.bd-top .nav-logo { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; text-decoration: none; color: inherit; }
.bd-top .nav-main { margin-left: auto; }
.bd-top .nav-links a[aria-current] { color: var(--sun-deep); }
.bd-top .nav-links .nav-contact:hover { background: rgba(242, 182, 48, 0.18); }
@media (max-width: 760px) { .bd-top .nav-menu { margin-left: auto; } .bd-top .nav-main { margin-left: 0; } }

/* the half-underwater name on the paper bar: deeper water, darker waterline */
.bd-top .nm { --water: #3f5f9e; }
.bd-top .nm::after { background: linear-gradient(90deg, transparent, rgba(36, 31, 44, 0.45), transparent); }
