/* ---------- GitHub-inspired dark theme ---------- */
:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-elevated-2: #1c2129;
  --border: #30363d;
  --border-muted: #21262d;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --fg-subtle: #6e7681;
  --accent: #58a6ff;
  --accent-emphasis: #1f6feb;
  --green: #3fb950;
  --green-subtle: rgba(63, 185, 80, 0.15);
  --orange: #f0883e;
  --purple: #bc8cff;
  --shadow: 0 8px 24px rgba(1, 4, 9, 0.55);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Linux Script Spotlight Reveal (decorative background layer) */
  --code-reveal-color: var(--accent);
  --code-reveal-opacity: 0.035;
  --code-reveal-spot-opacity: 0.6;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-elevated: #f6f8fa;
    --bg-elevated-2: #eef1f4;
    --border: #d0d7de;
    --border-muted: #d8dee4;
    --fg: #1f2328;
    --fg-muted: #59636e;
    --fg-subtle: #6e7781;
    --accent: #0969da;
    --accent-emphasis: #0550ae;
    --green: #1a7f37;
    --green-subtle: rgba(26, 127, 55, 0.12);
    --orange: #bc4c00;
    --purple: #8250df;
    --shadow: 0 8px 24px rgba(140, 149, 159, 0.25);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-emphasis); color: #fff; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Linux Script Spotlight Reveal (decorative, non-interactive) ----------
   The code text itself is always fully transparent. It only becomes visible
   where a background gradient (repainted every frame, trailing the cursor)
   shows through it via background-clip: text — the same "gradient text"
   trick, not CSS masking. Kept in its own isolated stacking context so it
   can never end up compositing above the real page content. */
body {
  isolation: isolate;
}

.bg-code-reveal {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
}

.code-layer {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: none;
  column-width: 240px;
  column-gap: 28px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.code-layer.is-visible {
  opacity: 1;
}

/* Touch/coarse pointers: no pointer to track, hide the layer entirely. */
@media (hover: none), (pointer: coarse) {
  .bg-code-reveal { display: none; }
}

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 296px 1fr;
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
}

.sidebar {
  border-right: 1px solid var(--border-muted);
  padding: 48px 28px;
}

.sidebar__inner {
  position: sticky;
  top: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.avatar-wrap {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-bottom: 4px;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  font-size: 22px;
  font-weight: 650;
  margin: 0;
  line-height: 1.3;
}

.role {
  font-size: 18px;
  font-weight: 300;
  color: var(--fg-muted);
  margin: 0;
}

.role-secondary {
  font-size: 13px;
  color: var(--fg-subtle);
  margin: -8px 0 0;
}
.role-secondary:empty { display: none; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-subtle);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 6px;
}
.status-pill:empty { display: none; }
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.contact-list {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  border-radius: 6px;
  padding: 2px 0;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.contact-item:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: color 0.18s var(--ease);
}
.contact-item:hover svg { color: var(--accent); }

.cv-btn {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cv-btn:hover {
  background: var(--bg-elevated-2);
  border-color: var(--fg-subtle);
  transform: translateY(-1px);
}

.cert-list {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.cert-item svg {
  flex-shrink: 0;
  color: var(--purple);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
}

/* ---------- main / hero ---------- */
.main {
  padding: 48px 40px 80px;
  min-width: 0;
}

.hero__heading {
  font-size: 34px;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 14px;
  max-width: 640px;
  letter-spacing: -0.01em;
}

.hero__text {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 28px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 36px;
  margin-bottom: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__value {
  font-size: 24px;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
}
.stat__label {
  font-size: 13px;
  color: var(--fg-muted);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.skill-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg-muted);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- tiles ---------- */
.tiles {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 28px repeat(3, 1fr);
  gap: 22px;
}

.row-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  user-select: none;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.tile__spotlight {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(88, 166, 255, 0.14), transparent 62%);
  transition: opacity 0.3s ease;
}
.tile:hover .tile__spotlight {
  opacity: 1;
}

.tile:hover,
.tile:focus-visible,
.tile.is-active {
  transform: translateY(-6px) scale(1.035);
  box-shadow: var(--shadow);
  border-color: var(--fg-subtle);
  z-index: 2;
}

.tile__frames {
  position: absolute;
  inset: 0;
}

.tile__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.tile__frame.is-visible {
  opacity: 1;
}

.tile__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(88, 166, 255, 0.12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(188, 140, 255, 0.10), transparent 55%),
    var(--bg-elevated-2);
  color: var(--fg-subtle);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tile:not(.has-images) .tile__placeholder { opacity: 1; }

.tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,4,9,0.05) 0%, rgba(1,4,9,0.05) 40%, rgba(1,4,9,0.82) 100%);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease);
}
.tile:hover .tile__scrim,
.tile.is-active .tile__scrim {
  opacity: 0.9;
}

.tile__title {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  font-size: 17px;
  font-weight: 650;
  color: var(--fg);
  transition: transform 0.45s var(--ease);
  z-index: 1;
}

.tile:not(.has-images) .tile__title {
  color: var(--fg-subtle);
}

.tile:hover .tile__title,
.tile.is-active .tile__title {
  transform: translateY(-30px);
}

.tile__keywords {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease) 0.08s, transform 0.4s var(--ease) 0.08s;
  z-index: 1;
}

.tile:hover .tile__keywords,
.tile.is-active .tile__keywords {
  opacity: 1;
  transform: translateY(0);
}

.tile__kw {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--fg);
  backdrop-filter: blur(6px);
}

.tile__progress {
  position: absolute;
  top: 10px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.tile:hover .tile__progress,
.tile.is-active .tile__progress {
  opacity: 1;
}
.tile__progress span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.tile__progress span::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
}
.tile__progress span.is-done::after { width: 100%; transition: none; }
.tile__progress span.is-active::after { width: 100%; transition: width var(--dur, 1800ms) linear; }

/* ---------- fixed footer (metrics / gallery tiles) ---------- */
.tile-fixed-footer {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}
.tile-fixed-footer__category {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tile-fixed-footer__title {
  font-size: 16px;
  font-weight: 650;
  color: var(--fg);
}

.tile-fixed-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,4,9,0) 0%, rgba(1,4,9,0.15) 45%, rgba(1,4,9,0.88) 100%);
  z-index: 1;
}

.presentation-dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 52px;
  z-index: 2;
  display: flex;
  gap: 5px;
}
.presentation-dots span {
  flex: 1;
  max-width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  transition: background 0.3s var(--ease);
}
.presentation-dots span.is-active {
  background: var(--accent);
}

/* ---------- metrics tile (Kachel 4) ---------- */
.tile--metrics {
  background:
    radial-gradient(circle at 20% 15%, rgba(88, 166, 255, 0.10), transparent 55%),
    var(--bg-elevated);
  padding: 20px 16px 64px;
}

.metrics-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.metrics-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.metrics-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.metrics-slide__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.metrics-slide__value {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
}
.metrics-slide__label {
  font-size: 13.5px;
  color: var(--fg);
  line-height: 1.35;
}
.metrics-slide__detail {
  font-size: 11.5px;
  color: var(--fg-subtle);
}

/* ---------- gallery tile (Kachel 5) ---------- */
.gallery-frames {
  position: absolute;
  inset: 0;
}
.gallery-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.gallery-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- links tile (Kachel 6) ---------- */
.tile--links {
  cursor: default;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

.tile-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.tile-header .tile-fixed-footer__title {
  font-size: 15px;
}

/* ---------- tile type: keywords ---------- */
.tile--keywords {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}

/* The tile face is tight: a 4:3 card leaves ~100px under the header, which is
   exactly four rows of tags. Header margin and gap are tuned to that budget —
   loosening either one clips the last row. */
.tile--keywords .tile-header { margin-bottom: 7px; }

.kw-cloud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.kw-cloud .tile__kw {
  font-size: 10px;
  padding: 2.5px 7px;
  background: var(--bg-elevated-2);
  border-color: var(--border);
  color: var(--fg-muted);
  backdrop-filter: none;
}

/* Same content again, but roomy, inside the lightbox. */
.modal__stage.is-keywords {
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(88, 166, 255, 0.10), transparent 55%),
    var(--bg-elevated);
}
.modal-kw-groups {
  width: 100%;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-kw-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modal-kw-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-kw-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modal-kw-group__items .tile__kw {
  font-size: 12.5px;
  padding: 4px 11px;
  background: var(--bg-elevated-2);
  border-color: var(--border);
  color: var(--fg);
  backdrop-filter: none;
}

@media (max-width: 560px) {
  .modal-kw-groups { padding: 20px; gap: 13px; }
  .modal-kw-group__items .tile__kw { font-size: 11.5px; }
}

.links-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.project-link {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.project-link:hover,
.project-link:focus-visible {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.project-link__icon {
  flex-shrink: 0;
  display: flex;
  color: var(--accent);
}

.project-link__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.project-link__title {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
}
.project-link__desc {
  font-size: 10.5px;
  color: var(--fg-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-link__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--fg-subtle);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.project-link:hover .project-link__arrow,
.project-link:focus-visible .project-link__arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 9, 0.75);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(880px, 92vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13,17,23,0.7);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal__close:hover {
  background: var(--bg-elevated-2);
  transform: rotate(90deg);
}

.modal__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.modal__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.modal__frame.is-visible { opacity: 1; }

.modal__stage.is-advanceable {
  cursor: pointer;
}

.modal__stage.is-metrics {
  background:
    radial-gradient(circle at 20% 15%, rgba(88, 166, 255, 0.10), transparent 55%),
    var(--bg-elevated);
}

.modal-metric-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 48px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal-metric-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.modal-metric-slide .metrics-slide__category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.modal-metric-slide .metrics-slide__value {
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.modal-metric-slide .metrics-slide__label {
  font-size: 18px;
  color: var(--fg);
}
.modal-metric-slide .metrics-slide__detail {
  font-size: 14px;
  color: var(--fg-subtle);
}

.modal__footer {
  padding: 18px 22px 22px;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.modal__title:empty { display: none; }

.modal__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.modal__keywords .tile__kw {
  background: var(--bg-elevated-2);
  color: var(--fg-muted);
  border-color: var(--border);
}

/* Optional call-to-action below the keywords, rendered only for tiles that
   define a "link" in content.js — collapses to nothing everywhere else. */
.modal__cta {
  margin-bottom: 12px;
}
.modal__cta:empty { display: none; }

.modal__cta a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 8px;
  background: var(--accent-emphasis);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
.modal__cta a:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.modal__cta svg { flex-shrink: 0; }

.modal__dots {
  display: flex;
  gap: 6px;
}
.modal__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__dots button.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-muted);
    padding: 32px 24px;
  }
  .sidebar__inner { position: static; align-items: center; text-align: center; }
  .contact-list { align-items: center; }
  .contact-item { justify-content: center; }
  .main { padding: 32px 20px 60px; }
  .tiles { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1180px) {
  .row-label { display: none; }
}
