/* About page — neutral liquid-glass cards. */
.about-page {
  --glass-ink: #161819;
  --glass-copy: rgba(22, 24, 25, 0.72);
  --glass-muted: rgba(22, 24, 25, 0.5);
  --glass-panel: rgba(219, 223, 225, 0.58);
  --glass-panel-strong: rgba(211, 215, 217, 0.68);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: rgba(41, 50, 56, 0.09);
  min-width: 0;
  overflow-x: clip;
}

.about-page .site-header {
  position: relative;
  z-index: 10;
  padding-bottom: 42px;
}

.about-page main {
  position: relative;
}

.about-page main::before {
  content: "";
  position: absolute;
  inset: -110px 0 -80px;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 18%, rgba(163, 173, 178, 0.16), transparent 30%),
    radial-gradient(circle at 76% 38%, rgba(184, 191, 195, 0.15), transparent 33%),
    radial-gradient(circle at 48% 86%, rgba(151, 161, 166, 0.1), transparent 29%);
  filter: blur(18px);
  pointer-events: none;
}

.about-shell {
  width: 100%;
  max-width: none;
  padding: 0 clamp(24px, 5vw, 92px) 54px;
}

.about-stage,
.about-glass-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(190px, auto) minmax(215px, auto) minmax(106px, auto);
  gap: 16px;
  width: 100%;
  max-width: 1420px;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  transform: none;
  isolation: isolate;
}

.about-blob {
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.19)),
    radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.58), transparent 38%),
    radial-gradient(ellipse at 88% 112%, rgba(255, 255, 255, 0.27), transparent 44%),
    var(--glass-panel);
  color: var(--glass-ink);
  box-shadow:
    0 18px 48px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    inset 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px 0 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.32) brightness(1.06);
  backdrop-filter: blur(24px) saturate(1.32) brightness(1.06);
  transform: none;
  transition: none;
  animation: none;
}

.about-blob::before,
.about-blob::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.about-blob::before {
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(108deg, transparent 14%, rgba(255, 255, 255, 0.14) 46%, transparent 73%);
  opacity: 0.9;
}

.about-blob::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%);
}

.about-blob-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: var(--glass-copy);
  text-shadow: none;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  animation: none;
}

.about-blob h1,
.about-blob h2 {
  margin: 0;
  color: var(--glass-ink);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.about-kicker {
  margin: 0 0 12px;
  color: var(--glass-muted);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.about-blob--profile {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  order: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.18)),
    radial-gradient(ellipse at 13% 0%, rgba(255, 255, 255, 0.65), transparent 40%),
    var(--glass-panel-strong);
}

.profile-content {
  justify-content: center;
  max-width: none;
  padding: clamp(40px, 5vw, 72px);
}

.about-blob .profile-content h1 {
  margin: 0 0 28px;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 0.98;
}

.about-blob .profile-content > p:not(.about-kicker) {
  max-width: 55ch;
  margin: 0 0 16px;
  color: var(--glass-copy);
  font-size: clamp(14px, 1vw, 16.5px);
  font-weight: 400;
  line-height: 1.58;
}

.about-blob .profile-content > p:last-child {
  margin-bottom: 0;
}

.about-blob--intro {
  grid-column: 8 / 13;
  grid-row: 1;
  order: 2;
}

.intro-content {
  justify-content: center;
  padding: clamp(28px, 3vw, 44px);
}

.intro-content h2 {
  max-width: 16ch;
  margin: 0 0 15px;
  font-size: clamp(25px, 2.5vw, 38px);
  line-height: 1.04;
}

.intro-content > p:not(.about-kicker) {
  max-width: 44ch;
  margin: 0;
  color: var(--glass-copy);
  font-size: 14px;
  line-height: 1.55;
}

.about-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.about-inline-links a,
.about-inline-links a:visited,
.link-rail-content a,
.link-rail-content a:visited,
.pages-label {
  color: var(--glass-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.about-inline-links a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  transition: none;
}

.about-inline-links a:hover,
.about-inline-links a:focus-visible {
  background: transparent;
  transform: none;
  opacity: 0.55;
}

.about-blob--location {
  grid-column: 8 / 13;
  grid-row: 2;
  order: 3;
}

.location-content {
  justify-content: center;
  padding: clamp(30px, 3vw, 44px) clamp(36px, 4vw, 58px);
}

.location-copy {
  position: relative;
  z-index: 2;
  width: 64%;
}

.location-content h2 {
  margin: 0 0 14px;
  max-width: 12ch;
  font-size: clamp(28px, 2.6vw, 41px);
  line-height: 1;
}

.location-summary {
  max-width: 29ch;
  margin: 0;
  color: var(--glass-copy);
  font-size: 13.5px;
  line-height: 1.48;
}

.uk-map {
  position: absolute;
  right: 7%;
  top: 50%;
  z-index: 1;
  display: block;
  width: 22%;
  height: 72%;
  object-fit: contain;
  opacity: 0.34;
  filter: grayscale(1) contrast(0.82);
  transform: translateY(-50%);
}

.about-blob--utility {
  grid-row: 3;
  text-decoration: none;
}

.about-blob--legal { grid-column: 1 / 4; }
.about-blob--licensing { grid-column: 4 / 7; }
.about-blob--links { grid-column: 7 / 10; }
.about-blob--pages { grid-column: 10 / 13; }

.utility-content,
.pages-content {
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  text-align: center;
}

.utility-label,
.pages-label {
  display: inline;
  color: var(--glass-ink);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.1;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.pages-content .about-kicker {
  display: block;
  margin-bottom: 5px;
}

.about-blob a:focus-visible,
.about-blob--pages:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (min-width: 761px) and (min-height: 640px) {
  body.about-page.text-page {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body.about-page.text-page main {
    display: block;
  }

  body.about-page.text-page .page-shell {
    width: 100%;
    padding-bottom: 54px;
  }
}

@media (max-width: 1100px) {
  .about-stage,
  .about-glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .about-blob--profile { grid-column: 1 / -1; grid-row: auto; min-height: 430px; }
  .about-blob--intro { grid-column: 1; grid-row: auto; min-height: 260px; }
  .about-blob--location { grid-column: 2; grid-row: auto; min-height: 260px; }
  .about-blob--utility { grid-row: auto; min-height: 100px; }
  .about-blob--legal { grid-column: 1; }
  .about-blob--licensing { grid-column: 2; }
  .about-blob--links { grid-column: 1; }
  .about-blob--pages { grid-column: 2; }

  .profile-content { padding: 56px 62px; }
}

@media (max-width: 760px) {
  .about-page .site-header { padding-bottom: 34px; }

  .about-shell { padding: 0 12px 46px; }

  .about-stage,
  .about-glass-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 10px;
  }

  .about-blob {
    width: 100%;
    min-height: 0;
    border-radius: 24px;
    transform: none;
  }

  .about-blob--profile { grid-column: 1 / -1; order: 1; min-height: 0; }
  .about-blob--intro { grid-column: 1 / -1; order: 2; min-height: 0; }
  .about-blob--location { grid-column: 1 / -1; order: 3; min-height: 0; }
  .about-blob--legal { grid-column: 1; order: 4; min-height: 76px; }
  .about-blob--licensing { grid-column: 2; order: 5; min-height: 76px; }
  .about-blob--links { grid-column: 1; order: 6; min-height: 76px; }
  .about-blob--pages { grid-column: 2; order: 7; min-height: 76px; }

  .profile-content,
  .intro-content,
  .location-content {
    padding: 30px 26px;
  }

  .about-blob .profile-content h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 13vw, 58px);
  }

  .about-blob .profile-content > p:not(.about-kicker) {
    max-width: none;
    font-size: 15px;
  }

  .intro-content h2,
  .location-content h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .location-copy { width: 68%; }
  .uk-map { right: 7%; width: 22%; height: 70%; }

  .utility-content,
  .pages-content { padding: 13px 10px; }

  .utility-label,
  .pages-label { font-size: 16px; }

  .pages-content .about-kicker {
    margin-bottom: 3px;
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .profile-content,
  .intro-content,
  .location-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .location-copy { width: 72%; }
  .uk-map { right: 5%; width: 20%; opacity: 0.28; }
}

:root[data-theme="dark"] .about-page {
  --glass-ink: #ebe9e3;
  --glass-copy: rgba(235, 233, 227, 0.72);
  --glass-muted: rgba(235, 233, 227, 0.48);
  --glass-panel: rgba(42, 43, 42, 0.62);
  --glass-panel-strong: rgba(48, 49, 48, 0.68);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .about-page .logo,
:root[data-theme="dark"] .about-page .site-nav a {
  color: var(--text);
}

:root[data-theme="dark"] .about-page main::before {
  opacity: 0.35;
}

:root[data-theme="dark"] .about-blob {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.06)),
    radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.14), transparent 40%),
    var(--glass-panel);
  box-shadow:
    0 20px 54px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .about-blob--profile {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.065)),
    radial-gradient(ellipse at 13% 0%, rgba(255, 255, 255, 0.14), transparent 40%),
    var(--glass-panel-strong);
}

:root[data-theme="dark"] .uk-map {
  opacity: 0.4;
  filter: grayscale(1) invert(1) contrast(0.78);
}

@media (prefers-reduced-motion: reduce) {
  .about-blob { transform: none !important; transition: none; }
}

@media (forced-colors: active) {
  .about-blob {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    backdrop-filter: none;
  }

  .about-blob::before,
  .about-blob::after {
    display: none;
  }
}
