/* ============================================
   Semyon Kuznetsov — Portfolio
   Light theme only. Inter. Content column 1008px.
   ============================================ */

/* Inter v4.1 (rsms.me/inter), self-hosted variable font. SIL OFL 1.1 —
   see assets/fonts/LICENSE.txt */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "InterVariable";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/InterVariable-Italic.woff2") format("woff2");
}

:root {
  --text: #161515;
  --muted: #999999;
  --muted-2: #6f6f6f;
  --bg: #ffffff;
  --line: #ececec;
  --pill-bg: #d8f1e5;
  --pill-text: #214d39;
  --radius: 16px;
  --radius-sm: 12px;
  --content: 1160px;
  --font: "InterVariable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Background tints, chosen from the header color picker */
:root[data-tint="silver"],
:root[data-tint="tan"],
:root[data-tint="clay"] {
  --muted: rgba(22, 21, 21, 0.5);
  --muted-2: rgba(22, 21, 21, 0.72);
  --line: rgba(22, 21, 21, 0.14);
}

:root[data-tint="silver"] { --bg: #f0ead8; }
:root[data-tint="tan"]    { --bg: #cd9256; --card-border: #dcb389; }
:root[data-tint="clay"]   { --bg: #c16f4f; --card-border: #d49a84; }

:root[data-tint="olive"],
:root[data-tint="navy"] {
  --text: #f3f3f3;
  --muted: rgba(243, 243, 243, 0.55);
  --muted-2: rgba(243, 243, 243, 0.8);
  --line: rgba(243, 243, 243, 0.18);
}

:root[data-tint="olive"] { --bg: #39442b; --card-border: #747c6b; }
:root[data-tint="navy"]  { --bg: #364757; --card-border: #727e89; }

/* On dark backgrounds, flip the dark wordmark to light */
:root[data-tint="olive"] .site-header__mark img,
:root[data-tint="navy"] .site-header__mark img { filter: invert(1); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--pill-bg); color: var(--pill-text); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease;
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  color: var(--text);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--muted); }

.site-header__mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  font-weight: 450;
  letter-spacing: 0.01em;
  user-select: none;
}

.site-header__mark img {
  display: block;
  height: 18px;
  width: auto;
  transition: opacity 0.2s ease;
}

.site-header__mark:hover img { opacity: 0.6; }

.site-header__status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}

/* Location label is hidden at every width. The markup and its translations are
   left in place — delete this rule to bring it back (the responsive rules below
   then resume hiding it on narrow screens). */
.site-header__status .location { display: none; }

/* Background color picker: always-open row of overlapping swatches */

.tint-picker {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  margin-left: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.tint-option {
  width: 26px;
  height: 18px;
  padding: 0;
  flex: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  margin-left: calc(26px / -3); /* overlap by a third of the width */
  box-shadow: 0 0 0 2px var(--bg);
  transition: transform 0.18s ease;
}

.tint-option:first-child { margin-left: 0; }

.tint-option:hover {
  transform: scale(1.18) translateY(-1px);
  z-index: 2;
  position: relative;
}

.tint-option[data-tint="white"]  { background: #ffffff; }
.tint-option[data-tint="silver"] { background: #f0ead8; }
.tint-option[data-tint="tan"]    { background: #cd9256; }
.tint-option[data-tint="clay"]   { background: #c16f4f; }
.tint-option[data-tint="olive"]  { background: #39442b; }
.tint-option[data-tint="navy"]   { background: #364757; }

/* Language switcher: EN/DA pill next to the tint picker */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-option:hover { color: var(--text); }

.lang-option.current {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(22, 21, 21, 0.12);
}

.lang-option__flag {
  display: inline-flex;
  overflow: hidden;
  border-radius: 2px;
}

.lang-option__flag svg { display: block; }

.lang-option:not(.current) .lang-option__flag {
  opacity: 0.55;
  filter: saturate(0.4);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.lang-option:hover .lang-option__flag {
  opacity: 1;
  filter: none;
}

/* ---------- Layout shell ---------- */

.page-shell {
  max-width: calc(var(--content) + 48px);
  margin: 0 auto;
  padding: 96px 24px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 17px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(33, 77, 57, 0.16);
}

.hero__pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa970;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: 24px;
  font-weight: 500;
  margin-top: 20px;
}

.hero__sub {
  margin-top: 10px;
  max-width: 560px;
  color: var(--text);
}

.hero__sub a { color: #3b6ee0; }
.hero__sub a:hover { text-decoration: underline; }

.hero__links {
  display: flex;
  gap: 26px;
  margin-top: 26px;
}

.hero__links a {
  color: var(--text);
  transition: color 0.2s ease;
}

.hero__links a:hover { color: var(--muted); }

/* ---------- Sections ---------- */

.page-section { padding-top: 132px; }

/* Framed sections — white card on the tinted page background */
.page-frame {
  padding: 44px 52px 48px;
  margin-top: 64px;
  background: #ffffff;
  color: #161515;
  border-radius: 24px;
  border: 1px solid rgba(22, 21, 21, 0.08);
  /* keep inner text/elements on the light palette on every tint */
  --text: #161515;
  --muted: #999999;
  --muted-2: #6f6f6f;
  --line: #ececec;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.section-head h2 { font-size: 16px; font-weight: 500; }

.section-head .count {
  font-size: 13px;
  color: var(--muted);
  transform: translateY(-4px);
}

/* ---------- Project grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
}

.card {
  display: block;
  background: #ffffff;
  color: #161515;
  border-radius: 20px;
  padding: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--card-border, rgba(22, 21, 21, 0.08));
  transition: transform 0.25s ease, border-color 0.4s ease;
  /* keep inner text/elements on the light palette on every tint */
  --text: #161515;
  --muted: #999999;
  --muted-2: #6f6f6f;
  --line: #ececec;
}

.card:hover {
  transform: translateY(-3px);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  overflow: hidden;
  background: rgba(22, 21, 21, 0.04);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.card:hover .card__media img { transform: scale(1); }

.card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* transform matches the cover image zoom so the crossfade blends
     identically-scaled frames instead of jumping in size */
  /*transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);*/
  pointer-events: none;
}

.card:hover .card__media video { transform: scale(1); }

.card.video-playing .card__media video { opacity: 1; }

.card__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  /* the hover video is appended after this element, so without a layer of its
     own the CTA would be painted underneath it on cards that have a video */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card:hover .card__cta { opacity: 1; transform: translateY(0); }

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0 16px;
}

.card__head h3 { font-size: 16px; font-weight: 600; color: #161515; }

.card__logo {
  height: 20px;
  width: auto;
  flex: none;
}

.card__meta {
  margin-top: 3px;
  padding: 0 16px;
  font-size: 14px;
  color: #6f6f6f;
}

.card__tags {
  margin-top: 2px;
  padding: 0 16px;
  font-size: 14px;
  color: #999999;
}

/* Comma separator: hugs the preceding tag, breathes only on its right. */
.card__tags .sep { margin: 0 4px 0 0; }

.card__desc {
  margin-top: 10px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #6f6f6f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Career path ---------- */

.career { border-top: 1px solid var(--line); }

.career__row {
  display: grid;
  grid-template-columns: 28px 1.2fr 1.6fr 0.9fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.career__lead {
  width: 28px;
  align-self: center;
}

.career__row--labels {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.career__company { font-weight: 500; }

.career__role { color: var(--muted-2); }

.career__period {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.career__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* Expandable career rows */

.career__row--expandable { cursor: pointer; }

.career__row--expandable:hover .career__company { color: var(--muted-2); }

.career__row--expandable:focus-visible {
  outline: 2px solid var(--pill-text);
  outline-offset: 2px;
}

.career__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: transform 0.3s ease, background 0.2s ease;
}

.career__row--expandable:hover .career__chevron { background: rgba(22, 21, 21, 0.06); }

.career__row--expandable.open .career__chevron { transform: rotate(180deg); }

.career__details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.career__details-inner { padding: 6px 0 24px 44px; }

.career__details h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 18px;
}

.career__details h4:first-child { margin-top: 0; }

.career__details p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 780px;
}

.career__details ul {
  margin-top: 8px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 780px;
}

.career__details ul li::marker { color: var(--muted); }

.career__row--edu { align-items: start; }

/* Education table: wider Degree column so long degree names stay on one line */
#education .career__row {
  grid-template-columns: 28px 1.5fr 1.7fr 0.5fr;
}

.edu-detail {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.edu-detail--dark { color: var(--text); }

/* ---------- Contact ---------- */

.contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h2 { font-size: 24px; font-weight: 500; }

.contact p {
  margin-top: 12px;
  max-width: 480px;
  color: var(--muted-2);
}

.contact__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(33, 77, 57, 0.16);
}

.contact__links { display: flex; gap: 22px; }

.contact__links a { transition: color 0.2s ease; }
.contact__links a:hover { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: calc(var(--content) + 48px);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Case pages ---------- */

.case {
  max-width: 832px;
  margin: 0 auto;
  background: #ffffff;
  color: #161515;
  border-radius: 24px;
  padding: 44px 56px 56px;
  border: 1px solid rgba(22, 21, 21, 0.08);
  /* keep inner text on the light palette regardless of the page tint */
  --text: #161515;
  --muted: #999999;
  --muted-2: #6f6f6f;
  --line: #ececec;
}

/* On the default white background the card blends in — drop its border */
:root:not([data-tint]) .case,
:root:not([data-tint]) .about,
:root:not([data-tint]) .page-frame { border-color: transparent; }

/* Project cards are white on a white page, so their border is the only thing
   separating them. The tinted themes get contrast from the background itself,
   so only the default needs the heavier line — same weight as --line there. */
:root:not([data-tint]) { --card-border: rgba(22, 21, 21, 0.14); }

.case-wide { max-width: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--text); }

.case__logo {
  height: 32px;
  width: auto;
  margin-bottom: 20px;
}

.case h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Scoped under .case so it outranks the later `.case p` rule, which is more
   specific than a bare class and would otherwise force the lede back to 16px. */
.case .case__lede {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
}

.case__list {
  margin-top: 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.case__list li::marker { color: var(--muted); }

.resource-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
}

.resource-links .resource-link { margin-top: 0; }

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
  color: #3b6ee0;
}

.resource-link:hover { text-decoration: underline; }

.resource-link__icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.resource-link__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case__facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 12px 48px;
  margin-top: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case__fact .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.case__fact .value { font-size: 15px; font-weight: 500; }

.case section { margin-top: 72px; }

.case h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.case h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.case p { margin-top: 12px; font-size: 16px; line-height: 1.6; }

.case ul {
  margin-top: 12px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.case ul li::marker { color: var(--muted); }

.case section ol {
  margin-top: 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.case section ol li::marker { color: var(--muted); }

/* Certificates: two landscape stacked left, one portrait right */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 620px;
  margin: 28px auto 0;
}

.case .cert-grid figure { margin: 0; }

.cert-grid__col {
  display: grid;
  gap: 12px;
  align-content: space-between;
}

.cert-grid__tall,
.cert-grid__tall img { height: 100%; }

.cert-grid__tall img { object-fit: cover; }

@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-grid__tall img { height: auto; }
}

.pair-caption {
  margin-top: 10px !important;
  font-size: 13px !important;
  color: var(--muted);
  text-align: center;
}

.case p a,
.case li a { color: #3b6ee0; }

.case p a:hover,
.case li a:hover { text-decoration: underline; }

.case .note {
  font-size: 14px;
  color: var(--muted);
  background: rgba(22, 21, 21, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 20px;
}

/* Same box, full text colour: for a line that is a highlight rather than a caveat. */
.case .note--strong { color: var(--text); font-size: 15px; }

.case figure { margin: 28px 0 0; }

.case figure img {
  width: 100%;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.case figure img:not(.is-static):hover { opacity: 0.92; }

/* Opted out of the lightbox — plain illustration, nothing to open */
.case figure img.is-static {
  cursor: default;
  transition: none;
}

/* Silent looping video reel — no lightbox, so no zoom cursor */
.case figure video { width: 100%; }

/* The reel stays inside the case column, like every other figure */

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(22, 21, 21, 0.92);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.open { opacity: 1; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
}

.case figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 2×2 tile of result screens */
.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.case .figure-grid figure { margin: 0; }

@media (max-width: 640px) {
  .figure-grid { grid-template-columns: 1fr; }
}

/* Tall images capped in height, centered */
.figure--h800 img,
.figure--h600 img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.figure--h800 img { max-height: 800px; }

.figure--h600 img { max-height: 600px; }

/* Pair with mismatched ratios: equal height, natural (differing) widths, no crop */
.figure-pair--equal {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.figure-pair--equal figure {
  flex-basis: 0;
  flex-grow: var(--ratio, 1);
  min-width: 0;
}

.figure-pair--equal img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .figure-pair--equal { flex-direction: column; }
  .figure-pair--equal figure { flex-grow: 0; }
}

.case .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.case .stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.case .stat b { display: block; font-size: 22px; font-weight: 600; }

.case .stat span { font-size: 13px; color: var(--muted-2); }

.case-nav {
  margin-top: 96px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.case-nav a { color: var(--muted-2); transition: color 0.2s ease; }
.case-nav a:hover { color: var(--text); }

/* ---------- About page ---------- */

.about {
  max-width: 832px;
  margin: 0 auto;
  background: #ffffff;
  color: #161515;
  border-radius: 24px;
  padding: 56px 64px 64px;
  border: 1px solid rgba(22, 21, 21, 0.08);
  --text: #161515;
  --muted: #999999;
  --muted-2: #6f6f6f;
  --line: #ececec;
}

.about__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.about__block { margin-top: 48px; }

.about__block:first-of-type { margin-top: 0; }

.about__block h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.about__block p {
  font-size: 16px;
  line-height: 1.65;
}

.about__grid { display: block; margin-top: 48px; }

.about__grid .about__block:first-of-type { margin-top: 0; }

.about__cta { margin-top: 72px; }

.btn-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa970;
  animation: pulse 2s infinite;
}

@media (max-width: 760px) {
  .about__title { font-size: 26px; margin-bottom: 40px; }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header__mark { display: none; }
  /* Make room for the language switcher: drop the decorative location label */
  .site-header__status .location { display: none; }
}

@media (max-width: 700px) {
  .site-header__status .tint-picker { display: none; }
}

@media (max-width: 640px) {
  .page-shell { padding: 96px 20px 72px; }
  .page-section { padding-top: 96px; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Keep the language switcher reachable on phones: nav and switcher don't fit
     on one 360px row, so the switcher wraps onto a second line below the nav. */
  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 10px 20px;
    gap: 4px 10px;
  }
  .site-nav { flex: 1 1 100%; gap: 16px; }
  .site-nav a { font-size: 14px; white-space: nowrap; }
  .site-header__status { flex: 0 0 auto; margin-left: auto; }
  .site-header__status > :not(.lang-switcher) { display: none; }
  .lang-switcher { margin-left: 0; }
  .career__row,
  #education .career__row { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .career__lead { display: none; }
  .career__details-inner { padding-left: 0; }
  .career__row--labels { display: none; }
  .career__period { text-align: left; font-size: 14px; }
  .case__facts { grid-template-columns: repeat(2, auto); }
  .figure-pair { grid-template-columns: 1fr; }
  .case h1 { font-size: 26px; }
  .site-footer__inner { flex-direction: column; }
}

/* Danish nav labels are longer than the English ones — tighten the row so it
   still fits on one line on the narrowest phones. */
@media (max-width: 400px) {
  .site-header__inner { padding: 10px 16px; }
  .site-nav { gap: 11px; }
  .site-nav a { font-size: 13px; }
}
