@font-face {
  font-family: Manrope;
  src: url('assets/manrope-regular.ttf');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: JetBrains;
  src: url('assets/jetbrains-mono.ttf');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: Syne;
  src: url('assets/syne.ttf');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #090c10;
  --bg-alt: #0c1017;
  --surface: #11161f;
  --surface-raised: #161d28;
  --surface-code: #0b0f16;
  --ink: #f1f5f9;
  --ink-secondary: #cbd5e1;
  --muted: #94a3b8;
  --line: #1e2736;
  --edge: #2a3649;
  --edge-hover: #435674;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --focus: #7dd3fc;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: JetBrains, Consolas, "Liberation Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font: 16px/1.7 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 7vw, 96px);
}

.mono, .eyebrow {
  font: 12px/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 500;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

html:not(.enhanced) [data-js-only] {
  display: none !important;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 12, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  display: grid;
  place-items: center;
  font: 700 14px var(--mono);
  color: var(--ink);
  letter-spacing: -0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.brand-text small {
  font: 11px var(--mono);
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.desktop-nav a {
  position: relative;
  padding: 8px 2px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a.is-current {
  color: var(--ink);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: width 0.2s ease, opacity 0.15s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-current::after {
  width: 100%;
  opacity: 1;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.languages {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 8px;
  gap: 2px;
}

.languages button {
  font: 600 12px var(--mono);
  min-width: 38px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.languages button:hover {
  color: var(--ink);
}

.languages button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  column-gap: clamp(32px, 4.5vw, 56px);
  row-gap: 40px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--edge);
  background: var(--surface);
  flex-shrink: 0;
}

.hero-identity-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-person-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 560px;
}

.hero-credential {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  margin-top: 22px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}

.hero-credential:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.credential-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.credential-icon svg {
  width: 20px;
  height: 20px;
}

.credential-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.credential-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.credential-copy span {
  font: 12px var(--mono);
  color: var(--muted);
}

.credential-arrow {
  margin-left: auto;
  font: 16px var(--mono);
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.hero-credential:hover .credential-arrow {
  transform: translateX(3px);
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  background: var(--ink);
  color: #090d14;
  border: 1px solid #ffffff;
}

.button.primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--edge);
}

.button.secondary:hover {
  border-color: var(--edge-hover);
  background: #1d2636;
}

.button.ghost {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--line);
}

.button.ghost:hover {
  color: var(--ink);
  border-color: var(--edge);
  background: var(--surface);
}

/* Workbench Panel (Hero Right) */
.workbench-panel {
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  background: var(--surface-code);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.workbench-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #101622;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.workbench-file {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}

.window-dots i:nth-child(1) { background: #475569; }
.window-dots i:nth-child(2) { background: #334155; }
.window-dots i:nth-child(3) { background: #1e293b; }

.wb-filename {
  font: 600 12px var(--mono);
  color: var(--ink-secondary);
}

.workbench-tabs {
  display: flex;
  gap: 4px;
  background: #090d14;
  padding: 3px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.workbench-tabs button {
  font: 500 11px var(--mono);
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.workbench-tabs button:hover {
  color: var(--ink);
}

.workbench-tabs button.active {
  background: var(--surface-raised);
  color: var(--accent-strong);
}

.workbench-body {
  padding: 20px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wb-code-view pre {
  margin: 0;
  font: 12.5px/1.75 var(--mono);
  color: #e2e8f0;
  overflow-x: auto;
}

.ln {
  display: inline-block;
  width: 28px;
  color: #475569;
  user-select: none;
}

.kw { color: #7dd3fc; font-weight: 600; }
.str { color: #6ee7b7; }
.num { color: #fcd34d; }
.fn { color: #c4b5fd; }
.cm { color: #64748b; font-style: italic; }

.wb-section-title {
  font: 600 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

.wb-fiscal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wb-fiscal-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wb-fiscal-tag {
  display: inline-block;
  font: 600 11px var(--mono);
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.wb-fiscal-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.wb-fiscal-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.wb-spec-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.wb-spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.wb-spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wb-spec-row dt {
  font: 500 12px var(--mono);
  color: var(--muted);
}

.wb-spec-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.workbench-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #0d121b;
  border-top: 1px solid var(--line);
  font: 11px var(--mono);
  color: var(--muted);
}

/* Hero Stats Strip */
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.stat-item .mono {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Section Headings */
.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin-top: 10px;
}

.section-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px var(--mono);
  color: var(--accent-strong);
  min-height: 38px;
  transition: color 0.2s;
}

.text-link:hover {
  color: #ffffff;
}

/* About Section */
.about {
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 40px;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (min-width: 901px) {
  .about-identity {
    position: sticky;
    top: 96px;
  }
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.about-profile img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--edge);
  flex-shrink: 0;
}

.about-profile strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.about-profile span {
  display: block;
  font-size: 13px;
  color: var(--accent-strong);
  margin-top: 3px;
}

.profile-loc {
  display: block;
  font: 11.5px var(--mono);
  color: var(--muted);
  margin-top: 4px;
}

.experience-strip {
  display: grid;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.experience-strip > div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-strip > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.experience-strip .mono {
  font-size: 11px;
  color: var(--muted);
}

.experience-strip strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 2px;
}

.experience-strip p {
  font-size: 13px;
  color: var(--ink-secondary);
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}

.about-copy > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}

.about-copy .about-lead {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}

.career-card,
.edu-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
}

.career-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.career-card-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.career-company {
  display: block;
  font-size: 14px;
  color: var(--accent-strong);
  margin-top: 3px;
}

.career-date {
  padding: 4px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11.5px;
}

.career-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.edu-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.sap-domain {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.sap-domain h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.sap-domain p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-top: 8px;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.domain-tags li {
  font: 600 12px var(--mono);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 6px 12px;
}

/* Skills Section (4-Domain Bento) */
.skills-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.skill-panel-wrap {
  margin-top: 36px;
}

.skills-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-domain-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.domain-code {
  display: inline-block;
  font: 600 11px var(--mono);
  color: var(--accent-strong);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.domain-card-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.domain-card-head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.skill-chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font: 500 12.5px var(--mono);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
}

/* Projects Section */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 32px 0 28px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
}

.project-filters button {
  min-height: 40px;
  padding: 8px 14px;
  font: 600 12.5px var(--mono);
  color: var(--muted);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.project-filters button:hover {
  color: var(--ink);
}

.project-filters button.active {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#project-count {
  margin-left: auto;
  padding-right: 12px;
  font: 12px var(--mono);
  color: var(--muted);
}

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

.project-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
}

.project-card[data-project-id="vorazi"],
.project-card[data-project-id="abap"] {
  grid-column: span 6;
}

.project-grid.filtered .project-card {
  grid-column: span 6;
}

.project-grid.filtered[data-results="1"] .project-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.project-card[hidden] {
  display: none !important;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--edge-hover);
}

.project-visual {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: var(--surface-code);
  border-bottom: 1px solid var(--line);
}

.project-card[data-project-id="vorazi"] .project-visual,
.project-card[data-project-id="abap"] .project-visual {
  height: 290px;
}

.project-grid.filtered[data-results="1"] .project-visual {
  height: 100%;
  min-height: 300px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.project-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: rgba(11, 15, 22, 0.92);
  border: 1px solid var(--edge);
  color: var(--ink);
  border-radius: 6px;
  padding: 5px 10px;
  font: 600 10.5px var(--mono);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.visual-badge.badge-live {
  border-color: rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.browser-frame {
  height: 100%;
  padding: 18px 18px 0;
  background: #141b26;
  display: flex;
  flex-direction: column;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #1e2736;
  border: 1px solid #334155;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font: 11px var(--mono);
  color: var(--ink-secondary);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.browser-https {
  font-size: 10px;
  color: var(--muted);
}

.browser-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-inline: 1px solid #334155;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.code-art {
  height: 100%;
  padding: 18px 20px 44px;
  background: #0b0f17;
  display: flex;
  flex-direction: column;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
}

.code-file {
  color: var(--ink);
  font-weight: 600;
}

.code-lang {
  color: var(--muted);
}

.code-art pre {
  margin: 0;
  font: 11.5px/1.65 var(--mono);
  color: #e2e8f0;
  overflow: hidden;
}

.project-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-kicker {
  font: 600 11px var(--mono);
  color: var(--accent-strong);
  letter-spacing: 0.04em;
}

.project-copy h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 10px;
}

.project-copy > p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 20px;
}

.tags span {
  font: 500 11px var(--mono);
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.project-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.details-btn {
  font: 600 12.5px var(--mono);
  color: var(--ink);
  padding: 7px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  border-radius: 6px;
  min-height: 36px;
  transition: border-color 0.15s, background 0.15s;
}

.details-btn:hover {
  border-color: var(--accent);
  background: #1d2636;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.action-link {
  font: 600 12.5px var(--mono);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  transition: color 0.15s;
}

.action-link.primary-link {
  color: var(--accent-strong);
}

.action-link:hover {
  color: #ffffff;
}

.project-divider {
  grid-column: 1 / -1;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.divider-head h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.divider-head p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 680px;
}

/* Certifications & Qualifications */
.certifications {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.milestones-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 36px;
  align-items: start;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cert-top .mono {
  color: var(--accent-strong);
  font-weight: 600;
}

.cert-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.cert-badge-icon svg {
  width: 24px;
  height: 24px;
}

.cert-card h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

.cert-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.milestone-list article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.milestone-list article:first-child {
  padding-top: 0;
}

.milestone-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.milestone-list .mono {
  font-size: 11px;
  color: var(--accent-strong);
  font-weight: 600;
}

.milestone-list h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 8px;
}

.milestone-list p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* Contact Section */
.contact-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4.5vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
}

.contact-copy h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  margin: 12px 0 16px;
}

.contact-copy > p:not(.eyebrow):not(.copy-status) {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.copy-status {
  min-height: 22px;
  font: 600 12px var(--mono);
  color: var(--emerald);
  margin-top: 10px;
}

.contact-email {
  display: inline-block;
  font: 500 13px var(--mono);
  color: var(--muted);
  margin-top: 4px;
}

.contact-email:hover {
  color: var(--ink);
}

.project-brief {
  padding: 26px;
  background: var(--surface-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
}

.project-brief h3 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 10px;
  color: var(--ink);
}

.brief-intro {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-top: 10px;
}

.brief-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.brief-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.brief-number {
  font: 600 11px var(--mono);
  color: var(--accent-strong);
  min-width: 22px;
  margin-top: 2px;
}

.brief-list h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.brief-list p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 3px;
}

.brief-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  border-top: 1px solid var(--edge);
  padding-top: 12px;
  font: 600 12.5px var(--mono);
  color: var(--accent-strong);
}

.brief-reference:hover {
  color: #ffffff;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.social-row a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.social-row a:hover {
  border-color: var(--edge-hover);
  background: var(--surface-raised);
}

.social-row a span:last-child {
  margin-left: auto;
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font: 12px var(--mono);
  color: var(--muted);
}

.footer-mode {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-mode i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

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

/* Modal Dialog */
dialog {
  border: 1px solid var(--edge);
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  width: min(760px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

dialog::backdrop {
  background: rgba(5, 8, 13, 0.8);
  backdrop-filter: blur(8px);
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

.dialog-close {
  pointer-events: auto;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--edge-hover);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.dialog-visual {
  max-height: 310px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.dialog-visual img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.dialog-visual .browser-frame {
  height: 310px;
}

.dialog-visual .code-art {
  height: 270px;
}

.dialog-body {
  padding: 32px;
}

.dialog-body h2 {
  font-size: 28px;
  margin: 8px 0 14px;
}

.dialog-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.dialog-section {
  margin-top: 22px;
}

.dialog-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.dialog-section p,
.dialog-section ul {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.dialog-section ul {
  padding-left: 20px;
  margin: 0;
}

.dialog-section li {
  padding: 3px 0;
}

.dialog-credit {
  margin-top: 18px;
  font: 12px var(--mono);
  color: var(--muted);
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .milestones-grid,
  .contact-top {
    grid-template-columns: 1fr;
  }
  .project-card,
  .project-card[data-project-id="vorazi"],
  .project-card[data-project-id="abap"] {
    grid-column: span 6;
  }
  .project-card:last-child {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px;
  }
  .desktop-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 6px;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .desktop-nav::-webkit-scrollbar {
    display: none;
  }
  .skills-bento {
    grid-template-columns: 1fr;
  }
  .wb-fiscal-grid {
    grid-template-columns: 1fr;
  }
  .wb-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .project-grid,
  .project-grid.filtered[data-results="1"] .project-card {
    grid-template-columns: 1fr;
  }
  .project-card,
  .project-card[data-project-id="vorazi"],
  .project-card[data-project-id="abap"],
  .project-card:last-child,
  .project-grid.filtered .project-card {
    grid-column: auto;
  }
  .heading-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }
  .workbench-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .workbench-tabs {
    width: 100%;
  }
  .workbench-tabs button {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
