:root {
  --bg: #0c0c0e;
  --bg-alt: #131316;
  --text: #f2f0ea;
  --text-dim: #9a978f;
  --accent: #ffcc33;
  --ua-blue: #0057b7;
  --ua-yellow: #ffd700;
  --tile-border: #232226;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  /* fixed height, independent of font metrics — keeps the row from
     shifting a few px when the custom web font swaps in after the
     fallback font's initial paint */
  min-height: 52px;
}

.logo {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-contact {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.2;
  white-space: nowrap;
}

.lang-toggle {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 3px;
  width: 92px;
  height: 36px;
  padding: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.lang-option {
  flex: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
  pointer-events: none;
}

.lang-toggle[data-lang="en"] .lang-option[data-value="en"] {
  background: var(--ua-blue);
  color: #ffffff;
}

.lang-toggle[data-lang="uk"] .lang-option[data-value="uk"] {
  background: var(--ua-yellow);
  color: #1a1a1a;
}

.lang-thumb {
  display: none;
}

.lang-toggle[data-lang="uk"] .lang-thumb {
  transform: translateX(100%);
}

/* shown only when the site is switched to Ukrainian (html[lang] is kept in
   sync by applyLanguage() in script.js) — for notes relevant only to UA
   readers, e.g. a translation disclaimer that doesn't apply in English. */
.uk-only {
  display: none;
}

html[lang="uk"] .uk-only {
  display: block;
}

/* ---------- main / tagline ---------- */

main {
  flex: 1;
  padding: 0 clamp(20px, 5vw, 56px) 28px;
}

.tagline {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 17px);
}

/* ---------- page nav (People ↔ Evidence tabs) ---------- */

.page-nav {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}

.page-nav-link {
  padding: 8px 18px;
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.page-nav-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

/* Tiles 9/10/15/16 form the OMDK logo montage (a 2x2 image split across
   four tiles) and need to render as an unbroken 2x2 block. Since the
   People page (index.html) now shows only a 12-tile subset (not the full
   1-24 run), plain document-order auto-placement no longer lines them up
   on its own — pin all four explicitly and let the other 8 tiles on that
   page auto-place around the fixed block, filling every remaining cell
   with none left over. Pinned to the two center columns (3-4 of 6) so the
   montage sits in the middle of the grid instead of off to one side.
   (This selector only ever matches on the page that actually includes
   tiles 9/10/15/16 in its subset — currently the People page — so it's a
   no-op anywhere else, including the grid--mini nav strip on tile-N.html
   pages, which always renders the full 1-24 run and lines the montage up
   naturally without any pinning.) */
.grid:not(.grid--mini) .tile[data-tile="9"] { grid-row: 1; grid-column: 3; }
.grid:not(.grid--mini) .tile[data-tile="10"] { grid-row: 1; grid-column: 4; }
.grid:not(.grid--mini) .tile[data-tile="15"] { grid-row: 2; grid-column: 3; }
.grid:not(.grid--mini) .tile[data-tile="16"] { grid-row: 2; grid-column: 4; }

/* Same idea, second copy: tiles 5/6/17/18 form a matching OMDK logo
   montage on the Evidence & Theory page (page2.html) — these were the
   four page-2 tiles left with generic placeholder photos instead of real
   sourced ones, reusing the exact same quadrant images as the page-1
   montage above. */
.grid:not(.grid--mini) .tile[data-tile="5"] { grid-row: 1; grid-column: 3; }
.grid:not(.grid--mini) .tile[data-tile="6"] { grid-row: 1; grid-column: 4; }
.grid:not(.grid--mini) .tile[data-tile="17"] { grid-row: 2; grid-column: 3; }
.grid:not(.grid--mini) .tile[data-tile="18"] { grid-row: 2; grid-column: 4; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }

  /* Re-pinned for the 4-column breakpoint, centered in columns 2-3. */
  .grid:not(.grid--mini) .tile[data-tile="9"] { grid-row: 2; grid-column: 2; }
  .grid:not(.grid--mini) .tile[data-tile="10"] { grid-row: 2; grid-column: 3; }
  .grid:not(.grid--mini) .tile[data-tile="15"] { grid-row: 3; grid-column: 2; }
  .grid:not(.grid--mini) .tile[data-tile="16"] { grid-row: 3; grid-column: 3; }

  .grid:not(.grid--mini) .tile[data-tile="5"] { grid-row: 2; grid-column: 2; }
  .grid:not(.grid--mini) .tile[data-tile="6"] { grid-row: 2; grid-column: 3; }
  .grid:not(.grid--mini) .tile[data-tile="17"] { grid-row: 3; grid-column: 2; }
  .grid:not(.grid--mini) .tile[data-tile="18"] { grid-row: 3; grid-column: 3; }
}

/* clickable tiles render as <a> instead of <div> — reset link styling and
   make sure it still behaves as a normal block grid item */
a.tile {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* smaller version of the grid used at the top of tile-N.html pages, so
   people can browse to other tiles without leaving the detail page.
   Deliberately kept at 6 columns (same as the main homepage grid, not its
   own 8/4 column count) — tiles 9/10/15/16 are laid out as a 2x2 block
   that only lines back up into one image at exactly 6 columns, so this
   mini strip needs to match the homepage's column count or the montage
   falls apart when browsing from a tile-N.html page. Below 1100px the
   homepage grid itself drops columns (and the montage is no longer
   aligned there either), so there's nothing to stay in sync with — this
   strip instead keeps 6 columns and a small max-width all the way down,
   so it stays a compact nav strip instead of ballooning into oversized
   tiles that push the actual page content below the fold. */
.grid--mini {
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: 420px;
  margin: 0 auto 28px;
}

@media (max-width: 480px) {
  .grid--mini { grid-template-columns: repeat(4, 1fr); max-width: 280px; }
}

/* Mini-grid tiles are far too small (~90px) for overlay text or fallback
   captions to stay legible, so all custom text overlays (front and back —
   e.g. the "Coming soon" placeholders) and the fallback caption are hidden
   in this strip; full text still shows normally on the homepage grid and
   in the profile section. */
.grid--mini .tile-overlay,
.grid--mini .text-overlay .tile-caption {
  display: none;
}

@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 700px) {
  .header-tagline { display: none; }
}

@media (max-width: 560px) {
  .header-contact { display: none; }
}

/* ---------- tile ---------- */

.tile {
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.tile-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: var(--radius);
  border: 1px solid var(--tile-border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

/* Each face gets its own explicit resting/flipped angle rather than
   relying on a rotated parent + a locally-rotated child cancelling out.
   That nested-rotation composition is the "textbook" flip-card recipe, but
   some browser/GPU combos mis-render the settled 360deg state (the back
   face only flashes into view mid-transition, never staying visible) —
   almost certainly a floating point / compositing quirk. Rotating each
   face directly to an explicit target avoids relying on that cancellation
   entirely and is more broadly reliable. */
.tile-front {
  transform: rotateY(0deg);
  background:
    linear-gradient(150deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35)),
    linear-gradient(135deg, hsl(var(--h1), 62%, 40%), hsl(var(--h2), 62%, 22%));
}

.tile-inner.flipped .tile-front {
  transform: rotateY(180deg);
}

/* <video> elements notoriously ignore backface-visibility:hidden in several
   browsers, so the front video can bleed through (mirrored) over the back
   face. Force-hide it explicitly whenever the card is flipped, as a
   reliable fallback that doesn't depend on that browser behavior. */
.tile-inner.flipped .tile-front video.tile-photo {
  visibility: hidden;
}

.tile-back {
  transform: rotateY(180deg);
}

.tile-inner.flipped .tile-back {
  transform: rotateY(360deg);
}

.tile-back.photo-back {
  background:
    linear-gradient(150deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35)),
    linear-gradient(135deg, hsl(var(--h3), 62%, 40%), hsl(var(--h4), 62%, 22%));
}

/* scrim behind the bottom-aligned title/caption text, so it stays legible
   over bright or busy source photos regardless of their own contents */
.tile-front::before,
.tile-back.photo-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.tile-back.text-back {
  background: var(--bg-alt);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

/* fallback: front photo dimmed + caption, used when no back photo exists */
.tile-back.text-overlay {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.tile-back.text-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.78));
  z-index: 1;
}

.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.tile-index {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tile-caption {
  position: relative;
  z-index: 2;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.4;
  color: #ffffff;
}

/* subtle lift on flip */
.tile-inner:hover,
.tile-inner.flipped {
  filter: brightness(1.03);
}

/* ---------- custom text overlays (see TILE_OVERLAYS in script.js) ---------- */

.tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  padding: 12px;
  pointer-events: none;
}

.tile-overlay span {
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 14px rgba(0,0,0,0.55);
  max-width: 100%;
}

.tile-overlay.pos-top-left     { align-items: flex-start; justify-content: flex-start; text-align: left; }
.tile-overlay.pos-top-center   { align-items: flex-start; justify-content: center;      text-align: center; }
.tile-overlay.pos-top-right    { align-items: flex-start; justify-content: flex-end;    text-align: right; }
.tile-overlay.pos-center-left  { align-items: center;     justify-content: flex-start;  text-align: left; }
.tile-overlay.pos-center       { align-items: center;     justify-content: center;      text-align: center; }
.tile-overlay.pos-center-right { align-items: center;     justify-content: flex-end;    text-align: right; }
.tile-overlay.pos-bottom-left  { align-items: flex-end;   justify-content: flex-start;  text-align: left; }
.tile-overlay.pos-bottom-center{ align-items: flex-end;   justify-content: center;      text-align: center; }
.tile-overlay.pos-bottom-right { align-items: flex-end;   justify-content: flex-end;    text-align: right; }

/* ---------- tile detail pages (tile-N.html) ---------- */

.detail-main {
  flex: 1;
  padding: 0 clamp(20px, 5vw, 56px) 56px;
}

.back-link {
  display: inline-block;
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}

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

.profile {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  border: 1px solid var(--tile-border);
}

.profile-name {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
}

.profile-bio {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

/* secondary name line (e.g. the Russian spelling under the main name) —
   always rendered on its own line below via a <br> in the name string */
.profile-name-alt {
  display: block;
  margin-top: 4px;
  font-size: 0.55em;
  font-weight: 400;
  color: var(--text-dim);
}

/* ---------- media / sources page (e.g. tile-10.html) ---------- */

.media-page {
  max-width: 720px;
  margin: 0 auto;
}

.media-page > h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
}

.media-intro {
  margin: 0 0 36px;
  color: var(--text-dim);
  line-height: 1.6;
}

.citation {
  padding: 22px 0;
  border-top: 1px solid var(--tile-border);
}

.citation:last-child {
  padding-bottom: 0;
}

.citation h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.citation-meta {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}

.citation blockquote,
.media-page blockquote {
  margin: 0 0 10px;
  padding-left: 16px;
  border-left: 2px solid var(--ua-yellow);
  color: var(--text);
  line-height: 1.6;
}

.citation-translation {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.citation-summary {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.6;
}

.fact-list {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.fact-list li.citation-summary {
  margin: 0 0 8px;
  padding-left: 18px;
  position: relative;
}

.fact-list li.citation-summary::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ua-yellow);
}

.citation-link {
  display: inline-block;
  color: var(--ua-yellow);
  font-size: 14px;
  text-decoration: none;
}

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

.media-page h3 {
  margin: 32px 0 12px;
  font-size: 18px;
}

/* ---------- dated timeline entries (e.g. tile-5.html) ---------- */

.timeline {
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 2px solid var(--tile-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 22px;
}

.timeline-item:last-child {
  padding-bottom: 4px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ua-yellow);
}

.timeline-date {
  margin: 0 0 6px;
  color: var(--ua-yellow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-item .citation-summary {
  margin: 0 0 8px;
}

.timeline-item .citation-meta {
  margin: 0;
}

.export-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.export-list li {
  padding: 10px 0;
  border-top: 1px solid var(--tile-border);
}

.export-list li:last-child {
  border-bottom: 1px solid var(--tile-border);
}

.references-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}

.references-table th,
.references-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--tile-border);
  vertical-align: top;
}

.references-table th {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.references-table td:last-child {
  white-space: nowrap;
}

/* ---------- sources & archives page (sources.html) ---------- */
.sources-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.sources-summary {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 28px;
}

.sources-count {
  color: var(--text);
  font-weight: 700;
}

.sources-table-wrap {
  overflow-x: auto;
  margin: 0 0 40px;
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
}

.sources-table-wrap .references-table {
  margin: 0;
  min-width: 640px;
}

.sources-table-wrap .references-table td:last-child {
  white-space: normal;
}

.sources-table-wrap .references-table th,
.sources-table-wrap .references-table td {
  border-bottom: 1px solid var(--tile-border);
}

.sources-table-wrap .references-table tr:last-child td {
  border-bottom: none;
}

.sources-table-wrap .citation-link {
  word-break: break-all;
}

.sources-pages {
  color: var(--text-dim);
  font-size: 12.5px;
}

.sources-blocked-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.sources-blocked-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--tile-border);
}

.sources-blocked-list li:last-child {
  border-bottom: none;
}

/* photo + caption block — see the example on tile-4.html */
.photo-block {
  margin: 0 0 28px;
}

.photo-block-img,
.photo-block-placeholder {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--tile-border);
}

/* clickable photos open an enlarged view — see .lightbox-overlay below */
.photo-block-img,
.profile-photo {
  cursor: zoom-in;
}

.photo-block-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a30, #17171a);
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* variant for screenshots that must stay uncropped (e.g. Telegram post
   captures where cropping a fixed 4:3 box would cut off the timestamp) —
   shows the whole image at its own aspect ratio instead of cover-cropping */
.photo-block-img--full {
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}

/* further cap for tall portrait document scans (e.g. the decree on
   tile-7.html) — --full alone still stretches to the full 480px column
   width, which makes a tall A4-shaped scan tower over the surrounding
   text; this keeps it readable without dominating the page.
   width/height:auto + a max-height alongside max-width (rather than
   relying on --full's aspect-ratio:auto to just scale off the capped
   width) is what actually keeps very tall crops — think a phone
   screenshot with a 3:1 aspect ratio — from still rendering 800px+ tall;
   capping width alone only helped moderately tall ones. */
.photo-block-img--doc {
  width: auto;
  height: auto;
  max-width: 280px;
  max-height: 420px;
  background: #fff;
}

.photo-block-caption {
  max-width: 480px;
  margin: 10px auto 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* two photo-blocks side by side, for direct visual comparisons (e.g.
   writing-style screenshots on tile-10.html) — wraps to stacked on
   narrow viewports since each figure just shrinks to its flex-basis */
.photo-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 28px;
}

.photo-compare .photo-block {
  flex: 1 1 240px;
  margin: 0;
  min-width: 0;
}

.photo-compare .photo-block-img,
.photo-compare .photo-block-placeholder,
.photo-compare .photo-block-caption {
  max-width: 100%;
}

/* photos placed side by side for comparison often have very different
   native aspect ratios (a wide group shot next to a tall phone
   screenshot) — left to scale by their own ratio, they end up wildly
   different heights and the row looks unaligned. Give every image in a
   comparison row the same height and letterbox it (object-fit: contain,
   no cropping) so the row reads as one aligned set regardless of source
   shape, and so captions land at the same line underneath each photo. */
.photo-compare .photo-block-img {
  height: 260px;
  max-height: none;
  width: 100%;
  object-fit: contain;
  background: var(--bg);
  border: none;
}

/* featured explainer video — a wider, more prominent centerpiece than the
   standard photo-block, for a video that carries the whole story on its
   own (e.g. tile-12.html's tent-lie walkthrough) */
.story-video-block {
  margin: 8px 0 32px;
}

.story-video {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: auto;
  margin: 0 auto;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.story-video-caption {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* a logo image used in place of the auto profile-photo at the top of a
   detail page (paired with the tile's entry in detail.js's skipPhoto list) */
.page-logo {
  display: block;
  max-width: 320px;
  width: 100%;
  margin: 0 auto 28px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 8px;
}

/* ---------- assessment block (site's own analysis, distinct from citations — see tile-7.html) ---------- */

.assessment {
  margin: 40px 0 0;
  padding: 24px clamp(18px, 4vw, 28px);
  background: var(--bg-alt);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
}

.assessment > h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.assessment-intro {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.assessment-point {
  padding: 18px 0;
  border-top: 1px solid var(--tile-border);
}

.assessment-point:first-of-type {
  padding-top: 0;
  border-top: none;
}

.assessment-point h4 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.assessment-point p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.assessment-links {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.assessment-links li {
  margin: 0 0 4px;
}

.assessment-links a {
  color: var(--ua-yellow);
  text-decoration: none;
}

.assessment-links a:hover {
  text-decoration: underline;
}

.assessment-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--tile-border);
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 10px clamp(20px, 5vw, 56px) 18px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

/* About Us page: most of its screenshots are tall portrait phone crops,
   which the standard 480px-wide .photo-block-img scales up to (since
   width:100% stretches to the container regardless of the image's native
   size) — resulting in some photos rendering 900px+ tall. Cap both
   dimensions here instead, scoped to this page only via its .about-page
   wrapper class on <main>, so no other tile page's sizing is affected. */
.about-page .photo-block-img,
.about-page .photo-block-placeholder {
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 420px;
  aspect-ratio: auto;
}

.about-page .photo-block-caption {
  max-width: 320px;
}

/* the three "posing with the flag" photos on About Us wildly differ in
   native aspect ratio (landscape, tall portrait, wide landscape) — left to
   flex-wrap by their own size, they wrap unevenly with a lone third image
   stranded on its own row. Force a fixed 3-column grid instead, with each
   photo cropped to a shared aspect ratio, so the triptych reads as one
   deliberate row instead of a ragged pile. */
.about-page .photo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-page .photo-trio .photo-block {
  min-width: 0;
}

.about-page .photo-trio .photo-block-img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-page .photo-trio .photo-block-caption {
  max-width: none;
}

@media (max-width: 640px) {
  .about-page .photo-trio {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto 28px;
  }
}

/* ---------- photo lightbox ---------- */
/* full-screen enlarged view, opened by clicking any .photo-block-img or
   .profile-photo — see setupLightbox() in script.js */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(10, 10, 12, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: clamp(10px, 3vw, 24px);
  right: clamp(10px, 3vw, 24px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
