:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --surface-soft: #fbfbfa;
  --text: #252525;
  --muted: #4b5563;
  --line: #dedede;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.06);
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8f1ff;
  --radius: 14px;
  --max-width: 1180px;
  --header-offset: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

section[id] { scroll-margin-top: var(--header-offset); }

.site-header {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 20px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav a:hover { background: var(--blue-soft); color: var(--blue); }

.nav a:focus-visible,
.brand:focus-visible,
.button:focus-visible,
.link-list a:focus-visible,
.site-footer a:focus-visible,
.back-link:focus-visible,
a.project-card:focus-visible,
.info-card-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero {
  width: min(880px, calc(100% - 32px));
  margin: 74px auto 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 1;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.lead {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(18px, 2vw, 22px);
  color: #343434;
  text-wrap: balance;
}

.hero-text {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 86px;
}

.section-head { margin-bottom: 24px; }

.section-head h2,
.feature-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-head p:not(.eyebrow) {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--muted);
}

.center { text-align: center; }
.center p:not(.eyebrow) { margin-inline: auto; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 72px;
}

.stats-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stats-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stats-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card,
.info-card,
.detail-section,
.detail-meta-grid div {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.info-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c9d8ff;
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .info-card { transition: none; }
  .project-card:hover,
  .info-card:hover { transform: none; }
}

.card-cover {
  width: 100%;
  height: 208px;
  object-fit: cover;
  background: var(--surface-soft);
  border-bottom: 1px solid #ececec;
}

.card-cover-contain {
  object-fit: contain;
  padding: 22px;
}

.card-cover-poster {
  padding: 10px;
  background: #fff;
}

.card-body { padding: 20px; }

.project-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.card-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.card-body h4 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.card-body p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.project-card .tags {
  margin-top: auto;
  padding-top: 4px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.feature-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 34px;
}

.feature-image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.feature-content { padding: 10px 0; }

.feature-content p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #383838;
  font-size: 18px;
  line-height: 1.65;
  max-width: 52ch;
}

.feature-content .button-row { justify-content: flex-start; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: #333;
  font-weight: 750;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { border-color: #c4c4c4; background: var(--surface-soft); }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.timeline {
  margin: 0;
  padding-left: 18px;
}

.timeline li {
  margin: 8px 0;
  line-height: 1.55;
  padding-left: 2px;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.link-list a {
  color: var(--blue);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.link-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p { margin: 0; }

.site-footer a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover { color: var(--blue); }

/* Project detail pages */

.project-detail {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 86px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 48px 0 28px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-header { margin-bottom: 26px; }

.detail-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.detail-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 650;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.detail-meta-grid div {
  padding: 16px;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.image-placeholder {
  position: sticky;
  top: 94px;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--surface-soft), #eef4ff);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.detail-media {
  position: sticky;
  top: 94px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.detail-image--contain {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.detail-image--dashboard {
  object-position: left top;
}

.detail-content {
  display: grid;
  gap: 22px;
}

.detail-section {
  padding: 22px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.detail-section p {
  margin: 0;
  line-height: 1.65;
  color: #383838;
}

.detail-section p + p { margin-top: 12px; }

.detail-list {
  margin: 0;
  padding-left: 20px;
}

.detail-list li {
  margin: 6px 0;
  line-height: 1.55;
}

.doc-placeholder {
  padding: 20px;
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

  .feature-section,
  .contact-grid,
  .detail-layout { grid-template-columns: 1fr; }

  .feature-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
  .feature-content p:not(.eyebrow) { max-width: none; }
  .image-placeholder,
  .detail-media { position: static; }
}

@media (max-width: 640px) {
  :root { --header-offset: 16px; }

  .site-header {
    position: static;
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
    width: min(var(--max-width), calc(100% - 24px));
    margin-top: 12px;
  }

  .nav {
    width: 100%;
    justify-content: stretch;
    gap: 4px;
  }

  .nav a {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding-inline: 8px;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    margin-top: 46px;
    width: min(880px, calc(100% - 24px));
  }

  .hero-actions,
  .button-row { align-items: stretch; }
  .hero-actions .button,
  .button-row .button { width: 100%; }

  .section {
    width: min(var(--max-width), calc(100% - 24px));
    margin-bottom: 64px;
  }

  .stats-strip,
  .card-grid,
  .detail-meta-grid { grid-template-columns: 1fr; }

  .card-cover { height: 190px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: min(var(--max-width), calc(100% - 24px));
  }

  .project-detail {
    width: min(var(--max-width), calc(100% - 24px));
    margin-bottom: 64px;
  }

  .back-link { margin-top: 32px; }
  .image-placeholder { min-height: 220px; }
}


.info-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #c9d8ff;
}


.info-card .card-cover-profile {
  max-height: 260px;
}


.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.lang-btn {
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .lang-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-btn {
    flex: 1;
  }
}


/* v11 FVE installed project additions */
html[lang="en"] [data-lang-view="cs"],
html[lang="cs"] [data-lang-view="en"] {
  display: none !important;
}

.project-card--featured {
  border-color: rgba(34, 197, 94, 0.28);
}

.project-card--featured .card-cover {
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 197, 94, 0.10), transparent 18rem),
    #fff;
}

.fve-page {
  --green: #15803d;
  --green-soft: #ecfdf3;
  --green-line: #bbf7d0;
  --amber: #d97706;
  --amber-soft: #fff7ed;
}

.fve-detail-hero h1 {
  max-width: 900px;
}

.status-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.status-banner p { margin: 4px 0 0; color: #2f3a44; }
.status-banner strong { display: block; font-size: 18px; line-height: 1.35; }
.status-banner--ok { border-color: var(--green-line); background: linear-gradient(135deg, var(--green-soft), #fff); }
.status-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 24px;
}

.fve-meta-grid { grid-template-columns: repeat(4, 1fr); }

.fve-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 22px;
}

.fve-lead-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fve-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fve-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.fve-visual-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.fve-visual-card img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.fve-visual-card figcaption {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid #edf0f3;
}

.fve-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}

.fve-stats-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.fve-stats-grid span,
.fve-stats-grid small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.fve-stats-grid strong {
  display: block;
  margin: 8px 0 3px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.fve-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.fve-chain span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 750;
  font-size: 14px;
}

.fve-chain b {
  color: var(--blue);
  font-size: 18px;
}

.fve-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.06em;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green, #15803d);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.detail-section--ok {
  border-color: var(--green-line);
  background: linear-gradient(135deg, var(--green-soft), #fff 55%);
}

.detail-section--next {
  border-color: #fed7aa;
  background: linear-gradient(135deg, var(--amber-soft), #fff 55%);
}

.public-note {
  margin-top: 22px;
  border-color: #fed7aa;
  background: linear-gradient(135deg, var(--amber-soft), #fff);
}

.fve-gallery-section { margin-top: 22px; }
.fve-section-head { margin-bottom: 18px; }
.fve-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.fve-section-head p:not(.eyebrow) { max-width: 760px; }

.fve-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fve-gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.fve-gallery-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: #c9d8ff;
}

.fve-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.fve-gallery-grid span {
  display: block;
  padding: 10px 12px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 940px) {
  .fve-meta-grid,
  .fve-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fve-overview-grid,
  .fve-info-grid { grid-template-columns: 1fr; }
  .fve-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .status-banner { grid-template-columns: 1fr; }
  .fve-meta-grid,
  .fve-stats-grid,
  .fve-gallery-grid { grid-template-columns: 1fr; }
  .fve-chain { align-items: stretch; }
  .fve-chain span { width: 100%; text-align: center; }
  .fve-chain b { width: 100%; text-align: center; }
}

/* v13 conservative merge additions for new pages only */
.hero--wide { width: min(980px, calc(100% - 32px)); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 0;
  max-width: 860px;
}
.hero-badges span,
.detail-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-size: 13px;
  font-weight: 800;
}
.stats-strip--four { grid-template-columns: repeat(4, 1fr); }
.card-grid--portfolio { align-items: stretch; }
.feature-section--docs { align-items: stretch; }
.feature-image--soft img { padding: 0; background: #fff; }
.contact-grid--wide { align-items: stretch; }
.about-card .card-cover-profile { object-fit: cover; object-position: top center; }
.timeline--clean { list-style: none; padding-left: 0; }
.timeline--clean li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}
.timeline--clean li:last-child { border-bottom: 0; }
.timeline--clean strong { color: var(--blue); }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.roadmap-grid--detail { margin-bottom: 28px; }
.roadmap-column {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.roadmap-column h3 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.035em;
}
.roadmap-column ul { margin: 0; padding-left: 20px; }
.roadmap-column li { margin: 10px 0; line-height: 1.55; }
.detail-header--split {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
}
.detail-header--split h1 { max-width: 860px; }
.meta-grid--four { grid-template-columns: repeat(4, 1fr); }
.project-overview-grid .fve-visual-card img {
  min-height: 360px;
  max-height: 520px;
}
.architecture-flow { margin-top: 4px; }
.public-note { margin-top: 28px; }
.public-note h2 { color: #92400e; }
.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.doc-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.doc-card h3 { margin: 0 0 8px; font-size: 19px; }
.doc-card p { margin: 0; color: var(--muted); }

@media (max-width: 940px) {
  .stats-strip--four,
  .roadmap-grid,
  .doc-card-grid,
  .meta-grid--four { grid-template-columns: repeat(2, 1fr); }
  .detail-header--split { flex-direction: column; }
}

@media (max-width: 640px) {
  .stats-strip--four,
  .roadmap-grid,
  .doc-card-grid,
  .meta-grid--four { grid-template-columns: 1fr; }
  .timeline--clean li { grid-template-columns: 1fr; gap: 2px; }
  .hero-badges { justify-content: flex-start; }
}


/* v14 field-note additions: preserve existing previews, add richer public-safe documentation */
.note-grid,
.lesson-grid,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.note-card,
.lesson-card,
.ops-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.note-card h3,
.lesson-card h3,
.ops-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.note-card p,
.lesson-card p,
.ops-card p { margin: 0; color: var(--muted); }
.note-meta {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-size: 12px;
  font-weight: 900;
}
.field-note-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.field-note-strip a,
.field-note-strip div {
  padding: 16px;
  min-height: 120px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.field-note-strip strong { display: block; margin-bottom: 7px; }
.field-note-strip span { color: var(--muted); font-size: 14px; }
.status-matrix {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.status-matrix th,
.status-matrix td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.status-matrix th { background: var(--surface-soft); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.status-matrix tr:last-child td { border-bottom: 0; }
.project-card--new-note { border-color: rgba(245, 158, 11, 0.30); }
.project-card--new-note .card-topline span:first-child { background: var(--amber-soft); color: #92400e; border-color: #fed7aa; }
@media (max-width: 940px) {
  .note-grid,
  .lesson-grid,
  .ops-grid,
  .field-note-strip { grid-template-columns: repeat(2, 1fr); }
  .status-matrix { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .note-grid,
  .lesson-grid,
  .ops-grid,
  .field-note-strip { grid-template-columns: 1fr; }
}

.card-cover--signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  border-bottom-color: rgba(255,255,255,.12);
  overflow: hidden;
  position: relative;
}

.card-cover--signal::before,
.project-signal::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 68px rgba(255,255,255,.03);
}

.card-cover--signal span {
  position: relative;
  z-index: 1;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.07em;
}

.card-cover--signal small {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.signal--recovery { background: linear-gradient(135deg, #263b6c, #7c3aed); }
.signal--distribution { background: linear-gradient(135deg, #263238, #b45309); }
.signal--lighting { background: linear-gradient(135deg, #725500, #eab308); }

.project-card--august { border-color: rgba(37, 99, 235, .25); }
.project-card--design { border-color: rgba(180, 83, 9, .30); }
.project-card--design .card-topline span:first-child { background: #fff7ed; color: #9a3412; }

.project-signal {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.project-signal div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.project-signal strong {
  display: block;
  font-size: clamp(52px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -.08em;
}

.project-signal span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

@media (max-width: 640px) {
  .project-signal { min-height: 240px; }
}

/* Project case studies: extend the original portfolio components. */
.case-section { margin-top: 22px; }
.case-tags { margin: 0 0 24px; }
.case-figure { margin: 24px 0; }
.case-figure img { width: 100%; height: auto; max-height: 540px; object-fit: contain; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.case-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.case-links { justify-content: flex-start; }
.table-scroll { overflow-x: auto; }
.detail-section code { overflow-wrap: anywhere; }
.case-section .detail-meta-grid { margin-bottom: 18px; }
#workshop .card-cover { aspect-ratio: 16 / 10; object-fit: cover; }
#workshop a[href*="3d-printing"] .card-cover { object-fit: contain; background: white; }
.lang-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.case-figure img { width: auto; margin-inline: auto; }
.case-figure { max-width: 1000px; margin-inline: auto; }

@media (max-width: 480px) {
  .site-header .nav { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .site-header .nav a { padding: 7px; }
}

/* Professional portfolio: content hierarchy and case studies. */
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--text); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.anchor-alias { display: block; scroll-margin-top: 110px; }
.hero--profile { max-width: 980px; width: calc(100% - 40px); margin-top: 76px; margin-bottom: 74px; }
.hero--profile h1 { font-size: clamp(46px, 6.8vw, 80px); letter-spacing: -.065em; }
.hero-alias { display: block; font-size: 18px; font-weight: 600; letter-spacing: .015em; color: var(--muted); margin-top: 15px; }
.hero--profile .lead { font-size: clamp(23px, 3vw, 30px); font-weight: 650; line-height: 1.3; margin-top: 22px; }
.hero--profile .hero-text { max-width: 670px; font-size: 17px; }
.hero-social { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--blue); font-weight: 700; text-decoration: none; }
.hero-social:hover { text-decoration: underline; text-underline-offset: 4px; }
.career-proof { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); margin: 42px auto 0; padding-top: 24px; max-width: 800px; }
.career-proof > span { padding: 0 18px; display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
.career-proof > span + span { border-left: 1px solid var(--line); }
.career-proof strong { font-size: 21px; color: var(--text); line-height: 1.3; margin-bottom: 5px; letter-spacing: -.035em; }
.portfolio-page .section { margin-bottom: 76px; }
.portfolio-page .section-head h2 { font-size: clamp(30px,3.8vw,43px); }
.selected-grid { gap: 20px; }
.project-card--case { border-radius: 15px; }
.project-card--case .card-body { padding: 24px; }
.case-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.case-number { color: var(--blue); font-variant-numeric: tabular-nums; font-size: 12px; }
.project-card--case h3 { font-size: 24px; line-height: 1.2; min-height: 58px; margin-bottom: 14px; }
.project-card--case .project-summary { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.project-card--case .project-outcome { margin: auto 0 20px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.project-outcome strong { display: block; color: var(--blue-dark); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.skill-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.skill-tags li { margin: 0; padding: 4px 8px; border-radius: 5px; background: #eff3f9; color: #34445c; font-size: 12px; font-weight: 600; line-height: 1.45; }
.project-card--case .card-link { justify-content: space-between; width: 100%; margin-top: 22px; }
.project-card--case:hover .card-link { color: var(--blue-dark); }
.section-head--compact h2 { font-size: clamp(27px,3vw,36px) !important; }
.project-group { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; scroll-margin-top: 100px; }
.project-group summary { cursor: pointer; padding: 20px 24px; font-size: 17px; font-weight: 700; list-style-position: inside; }
.project-group summary::marker { color: var(--blue); font-size: 13px; }
.project-group summary > span:first-child { margin-left: 7px; }
.project-group summary:hover { background: var(--surface-soft); }
.group-count { float: right; font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 3px; }
.project-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; padding: 0 24px; }
.project-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 0; text-decoration: none; border-top: 1px solid var(--line); }
.project-row > span:first-child { min-width: 0; }
.project-row strong { font-size: 16px; line-height: 1.35; }
.project-row > span:last-child { color: var(--blue); font-size: 20px; }
.project-row-desc { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.project-row:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.profile-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: start; }
.profile-image { width: 100%; max-width: 490px; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.profile-story h3 { margin: 24px 0 14px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.profile-story h3 > span { font-size: 16px; color: var(--muted); font-weight: 500; }
.profile-story p { margin: 0 0 16px; color: var(--muted); }
.text-link { display: inline-block; color: var(--blue-dark); font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.career-history h3 { margin: 0 0 22px; font-size: 20px; }
.career-timeline { list-style: none; margin: 0; padding: 0; }
.career-timeline li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.career-timeline li:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.career-timeline time { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--blue-dark); }
.career-company { font-size: 12px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; color: var(--muted); }
.career-timeline h4 { margin: 3px 0 5px; font-size: 18px; line-height: 1.35; }
.career-timeline p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.skills-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.skill-card { min-width: 0; display: flex; flex-direction: column; border-top: 2px solid #c6d4e9; background: white; padding: 22px; border-radius: 0 0 12px 12px; }
.skill-card:first-child { border-color: var(--blue); background: #edf3fd; }
.skill-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--blue-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.skill-card-top p { margin: 0; }
.skill-card h3 { margin: 17px 0 11px; font-size: 22px; letter-spacing: -.035em; line-height: 1.25; }
.skill-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.skill-card .skill-tags { margin-top: auto; margin-bottom: 20px; }
.skill-card .text-link { align-self: flex-start; }
.contact-panel { padding: 34px 38px; background: #eaf1fc; border: 1px solid #d5e1f3; border-radius: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 32px; }
.contact-panel h2 { margin: 0; font-size: clamp(27px,3vw,38px); letter-spacing: -.045em; line-height: 1.2; }
.contact-panel p:not(.eyebrow) { max-width: 640px; color: var(--muted); margin-bottom: 0; }
.contact-panel .button-row { margin: 0; }
.case-page .detail-header { max-width: 940px; }
.case-page .detail-status { max-width: 820px; font-weight: 400; font-size: 18px; }
.case-state { display: inline-flex; font-size: 12px; font-weight: 700; color: #176543; background: #eaf5ef; border: 1px solid #cee6d8; border-radius: 999px; padding: 5px 11px; margin-top: 18px; }
.case-result { padding: 22px 26px; border-left: 3px solid var(--blue); background: #edf3fd; margin-bottom: 24px; }
.case-result h2 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--blue-dark); }
.case-result p { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.5; max-width: 900px; }
.case-brief { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.case-work { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; margin-bottom: 24px; }
.case-page .detail-section { box-shadow: none; }
.implementation-list { padding-left: 20px; margin: 0; }
.implementation-list li { margin: 0 0 16px; padding-left: 5px; line-height: 1.65; }
.implementation-list li:last-child { margin-bottom: 0; }
.implementation-list li::marker { color: var(--blue-dark); font-weight: 700; }
.case-diagram { margin: 0; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 14px; align-content: center; }
.case-diagram img { width: 100%; height: auto; object-fit: contain; }
.case-diagram figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.case-conclusion, .case-tools { margin-bottom: 24px; }
.case-tools .text-link { margin-top: 20px; }
.case-related { margin-top: 36px; }
.case-related h2 { font-size: 20px; letter-spacing: -.025em; }
.case-related > div { display: flex; flex-wrap: wrap; gap: 12px; }
.related-link { min-height: 44px; display: inline-flex; align-items: center; gap: 18px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 650; text-decoration: none; background: white; }
.related-link:hover { border-color: var(--blue); color: var(--blue-dark); }
@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-layout { gap: 30px; }
  .contact-panel { grid-template-columns: 1fr; gap: 22px; }
  .contact-panel .button-row { justify-content: flex-start; }
}
@media (max-width: 880px) {
  :root { --header-offset: 132px; }
  .site-header { display: grid; grid-template-columns: minmax(0,1fr) auto; border-radius: 18px; gap: 5px 16px; padding: 10px 14px; }
  .site-header .nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .site-header .lang-switcher { grid-row: 1; grid-column: 2; width: auto; }
  .hero--profile { margin-top: 48px; }
  .profile-layout { grid-template-columns: 1fr; gap: 40px; }
  .profile-story { display: flow-root; }
  .profile-image { float: right; width: 42%; margin: 0 0 15px 28px; }
  .profile-story h3 { margin-top: 0; }
  .case-work { grid-template-columns: 1fr; }
  .case-diagram img { max-height: 340px; }
}
@media (max-width: 640px) {
  :root { --header-offset: 20px; }
  .site-header { position: static; width: calc(100% - 24px); gap: 6px 10px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 11px; }
  .lang-btn { min-width: 32px; min-height: 36px; padding: 0 8px; font-size: 12px; }
  .site-header .nav { gap: 2px; flex-wrap: nowrap; }
  .site-header .nav a { font-size: 12px; padding: 8px 4px; flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  .hero--profile { width: calc(100% - 32px); margin-top: 40px; margin-bottom: 48px; }
  .hero--profile .eyebrow { font-size: 10px; letter-spacing: .05em; }
  .hero--profile h1 { font-size: clamp(42px,11vw,64px); }
  .hero--profile .hero-text { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-social { justify-content: center; width: 100%; }
  .career-proof { gap: 15px 8px; grid-template-columns: 1fr; margin-top: 24px; padding-top: 22px; }
  .career-proof > span { padding: 0; flex-direction: row; justify-content: center; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .career-proof > span + span { border: 0; }
  .career-proof strong { font-size: 16px; margin: 0; }
  .portfolio-page .section { margin-bottom: 54px; }
  .selected-grid, .skills-grid, .case-brief, .project-list { grid-template-columns: 1fr; }
  .project-card--case h3 { min-height: 0; }
  .case-kicker { margin-bottom: 16px; }
  .project-card--case .card-body { padding: 22px; }
  .project-group summary { padding: 17px 16px; font-size: 15px; }
  .group-count { display: block; float: none; margin-left: 24px; padding-top: 3px; }
  .project-list { padding: 0 18px; }
  .profile-image { float: none; width: 100%; margin: 0 0 24px; }
  .career-timeline li { gap: 12px; grid-template-columns: 44px minmax(0,1fr); }
  .career-timeline h4 { font-size: 17px; }
  .contact-panel { padding: 25px 22px; }
  .contact-panel .button-row { width: 100%; }
  .case-result { padding: 20px; }
  .case-result p { font-size: 18px; }
  .case-page .detail-header h1 { font-size: 36px; }
  .case-diagram { padding: 8px; }
}
@media print {
  .site-header,.hero-actions,.hero-social,.back-link,.skip-link,.site-footer { display: none; }
  body { background: white; font-size: 11pt; }
  .hero--profile { margin-top: 0; }
  .section,.project-detail { width: 100%; margin-bottom: 25px; }
  .project-card,.skill-card,.career-timeline li { break-inside: avoid; box-shadow: none; }
  .project-group:not([open]) { display: none; }
  .contact-panel { background: white; }
}

/* Display the unchanged source photograph without the surrounding LinkedIn UI. */
.profile-portrait { position: relative; width: 160px; height: 160px; overflow: hidden; border-radius: 50%; margin: 0 0 24px; box-shadow: 0 0 0 6px white, 0 5px 20px rgba(0,0,0,.06); }
.profile-portrait .profile-image { position: absolute; width: 595px; height: 340px; max-width: none; top: -28px; left: -65px; border: 0; border-radius: 0; margin: 0; float: none; }

/* v21: keep project visuals alongside the introductory story. */
.case-page .detail-header { max-width:none; display:grid; grid-template-columns:1.12fr .88fr; align-items:center; gap:42px; }
.case-page .detail-header h1 { font-size:clamp(36px,4vw,54px); }
.case-page .detail-header .detail-status { font-size:16px; line-height:1.6; }
.case-hero-figure { margin:0; padding:0; overflow:hidden; border:1px solid #dce4ee; border-radius:17px; background:#fff; }
.case-hero-figure img { width:100%; height:auto; }
.case-hero-figure figcaption { margin:0; padding:10px 14px; font-size:10px; color:#64748b; text-align:center; border-top:1px solid #e8ecf2; }
.case-page .case-work { display:block; }
.case-page .implementation-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.case-page .implementation-list li { margin:0; font-size:14px; line-height:1.7; padding-right:10px; }
@media(max-width:800px) {
 .case-page .detail-header { gap:24px; grid-template-columns:1.1fr .9fr; }
 .case-page .detail-header h1 { font-size:36px; }
 .case-page .detail-header .detail-status { font-size:14px; }
 .case-page .implementation-list { grid-template-columns:1fr; gap:15px; }
}
@media(max-width:640px) {
 .case-page .detail-header { grid-template-columns:1fr; gap:25px; }
 .case-page .detail-header h1 { font-size:34px; }
 .case-hero-figure { max-width:100%; }
}

/* November project evidence. */
.case-state--prototype { color:#86551e; background:#fcf2df; border-color:#eddcb5; }
.november-detail { margin-bottom:24px; }
.november-detail p { line-height:1.7; }
.project-evidence { margin:18px 0 22px; }
.project-evidence img { width:100%; max-width:900px; height:auto; margin-inline:auto; border:1px solid #e1e6ed; border-radius:12px; }
.project-evidence figcaption { max-width:820px; margin:12px auto 0; color:#64748b; font-size:12px; line-height:1.6; }
.november-case .case-hero-figure figcaption { line-height:1.6; }


/* The .net identity connects the individual project disciplines. */
.brand-name{display:flex;flex-direction:column;line-height:1.05;letter-spacing:-.03em;font-size:19px}
.brand-name>span{font-size:9px;letter-spacing:.11em;text-transform:uppercase;font-weight:600;margin-top:5px;color:#6b817b}
.brand-mark{background:#234f53}
@media(max-width:640px){.brand-name{font-size:17px}.brand-name>span{font-size:8px;letter-spacing:.08em}}
