/* About panel, shared by every page. A light sheet slides in from the reading end over a dimmed page,
   in the same type and palette as the rest of the site. */
.about { position: fixed; inset: 0; z-index: 90;
  --a-ink: #0E0F10; --a-paper: #E8E7E3; --a-muted: #5A5B59; --a-line: rgba(14, 15, 16, .16); --a-blue: #3559F0;
  --a-crisp: cubic-bezier(.625, .05, 0, 1);
  font-family: "Schibsted Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; }
.about[hidden] { display: none; }
.about-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 10, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .5s var(--a-crisp); }
.about-sheet { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(620px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--a-paper); color: var(--a-ink); box-shadow: 0 0 80px rgba(0, 0, 0, .35);
  padding: max(28px, env(safe-area-inset-top)) max(clamp(20px, 4vw, 44px), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) clamp(20px, 4vw, 44px);
  display: grid; align-content: start; gap: 28px;
  transform: translateX(100%); transition: transform .65s var(--a-crisp); }
[dir="rtl"] .about-sheet { transform: translateX(-100%); }
.about.is-open .about-backdrop { opacity: 1; }
.about.is-open .about-sheet { transform: none; }
.about-close { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 18px/1 system-ui, sans-serif; color: var(--a-ink); background: none; border: 1px solid var(--a-line); cursor: pointer;
  transition: background-color .4s var(--a-crisp), color .4s var(--a-crisp); }
.about-close:hover { background: var(--a-ink); color: var(--a-paper); }
.about-close:focus-visible, .about a:focus-visible, .about button:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 3px; }

/* Header: the monogram, then the name and roles on one side and the email + Copy facing them on the other. */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mark mark" "name mail" "roles roles" "links links" "pdf pdf";
  column-gap: 24px; row-gap: 6px; align-items: end; padding-top: 8px; }
.about-mark, .about-photo { grid-area: mark; }
.about-head h2 { grid-area: name; }
.about-head .about-roles { grid-area: roles; }
.about-head .about-links { grid-area: links; margin-top: 10px; }
.about-head .about-pdf { grid-area: pdf; margin-top: 10px; }
.about-head .mailcopy { grid-area: mail; align-self: end; margin: 0; }
@media (max-width: 520px) {
  .about-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mark" "name" "roles" "mail" "links" "pdf"; }
  .about-head .mailcopy { margin-top: 12px; }
}
.about-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border: 1px solid var(--a-ink); border-radius: 50%; font-size: 18px; font-weight: 500; letter-spacing: .04em; }
.about-photo { width: 96px; height: 96px; margin-bottom: 10px; border-radius: 50%; object-fit: cover; }
.about h2 { margin: 0; font: 600 clamp(30px, 5vw, 44px)/1.05 "Schibsted Grotesk", "Noto Kufi Arabic", system-ui, sans-serif; letter-spacing: -.03em; }
.about-roles { margin: 0; color: var(--a-muted); }
.about-bio { margin: 0; font-size: 17px; line-height: 1.6; max-width: 46ch; }
.about-block { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--a-line); }
/* Section headings sit above the 15px lines under them, in the display face. */
.about h3 { margin: 0; font: 600 19px/1.25 "Schibsted Grotesk", "Noto Kufi Arabic", system-ui, sans-serif; letter-spacing: -.01em; color: var(--a-ink); }
.about ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 14px; font-size: 15px; }
.about-y { font: 12px/1.8 "IBM Plex Mono", ui-monospace, monospace; color: var(--a-blue); font-variant-numeric: tabular-nums; }
.about p { margin: 0; }
.about-pdf { font: 11px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--a-ink); border-radius: 999px;
  background: none; color: var(--a-ink); cursor: pointer; text-decoration: none; transition: background-color .4s var(--a-crisp), color .4s var(--a-crisp); }
.about-pdf:hover { background: var(--a-ink); color: var(--a-paper); }
.about-pdf { justify-self: start; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.about-links a { color: var(--a-ink); }
[dir="rtl"] .about h2, [dir="rtl"] .about h3 { letter-spacing: 0; }
[dir="rtl"] .about h3 { line-height: 1.5; }
[dir="rtl"] .about h2 { line-height: 1.35; font-weight: 700; }
@media (max-width: 420px) { .about li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .about-sheet, .about-backdrop { transition: none; } }

/* The button that opens it, in each top bar. */
.about-btn { font: 12px/1 "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace; letter-spacing: .04em; color: inherit; /* as written: "Lebenslauf", not all caps */
  padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(242, 241, 238, .35); background: rgba(14, 15, 16, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; transition: background-color .4s var(--a-crisp, ease), color .4s var(--a-crisp, ease); }
.about-btn:hover { background: #F2F1EE; color: #0E0F10; }
[dir="rtl"] .about-btn { letter-spacing: 0; }

/* Email + Copy: one component, used in the CV panel and in every footer, so it looks and behaves the same. */
/* Copy always sits on the same line as the address, in every language ("Kopieren" is the longest). */
.mailcopy { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-top: 10px; direction: ltr; }
[dir="rtl"] .mailcopy { justify-content: flex-end; }
.mailcopy-mail { font: 600 15px/1.3 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: -.01em; color: inherit; text-decoration: none; overflow-wrap: anywhere; min-width: 0;
  border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 30%, transparent); transition: color .4s, border-color .4s; }
.mailcopy-mail:hover { color: #3559F0; border-bottom-color: currentColor; }
.mailcopy-btn { font: 11px/1 "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace; letter-spacing: .06em; padding: 8px 12px; flex: none; white-space: nowrap; border: 1px solid currentColor; border-radius: 999px;
  background: none; color: inherit; cursor: pointer; transition: background-color .4s, color .4s; }
.mailcopy-btn:hover { background: #0E0F10; border-color: #0E0F10; color: #F2F1EE; }
.mailcopy-btn:focus-visible, .mailcopy-mail:focus-visible { outline: 2px solid #3559F0; outline-offset: 3px; }
@media (max-width: 520px) { .mailcopy { gap: 8px; } .mailcopy-mail { font-size: 14px; } .mailcopy-btn { padding: 8px 10px; } }
@media (max-width: 370px) { .mailcopy-mail { font-size: 13px; } }
