/* ============================================================================
   PORTFOLIO — WALDEMAR CHROBOK
   3 brutalist variants + dark/light via CSS custom props
   ============================================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

/* ============================================================================
   FONTS
   ============================================================================ */
:root {
  --font-display: "Space Grotesk", "Neue Haas Grotesk Display", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", "Playfair Display", Georgia, serif;
}

/* ============================================================================
   VARIANT A — MONO / YELLOW (default)
   black & white with industrial yellow accent, heavy Space Grotesk
   ============================================================================ */
html[data-variant="mono"] {
  --bg: #F4F2ED;
  --bg-alt: #ECE9E1;
  --fg: #0A0A08;
  --fg-muted: #6B6860;
  --fg-soft: #9A978E;
  --line: #0A0A08;
  --line-soft: #1A1A1620;
  --accent: #E6FF00;
  --accent-fg: #0A0A08;
  --card: #FFFFFF;
  --card-hover: #FAFAF5;
  --shadow: 6px 6px 0 #0A0A08;
  --shadow-sm: 3px 3px 0 #0A0A08;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --display-weight: 700;
  --corner: 0;
  --border-w: 1.5px;
}
html[data-variant="mono"][data-theme="dark"] {
  --bg: #0A0A08;
  --bg-alt: #141410;
  --fg: #F4F2ED;
  --fg-muted: #9A978E;
  --fg-soft: #5A5750;
  --line: #F4F2ED;
  --line-soft: #F4F2ED30;
  --accent: #E6FF00;
  --accent-fg: #0A0A08;
  --card: #141410;
  --card-hover: #1C1C18;
  --shadow: 6px 6px 0 #E6FF00;
  --shadow-sm: 3px 3px 0 #E6FF00;
}

/* ============================================================================
   VARIANT B — EDITORIAL / RED
   warm paper, serif display, red accent, swiss
   ============================================================================ */
html[data-variant="editorial"] {
  --bg: #EFE8DD;
  --bg-alt: #E4DCCE;
  --fg: #1A0F0A;
  --fg-muted: #6B5A4E;
  --fg-soft: #A09484;
  --line: #1A0F0A;
  --line-soft: #1A0F0A30;
  --accent: #DC2818;
  --accent-fg: #FEFCF6;
  --card: #FBF6EB;
  --card-hover: #F5EFE0;
  --shadow: 0 0 0 0 transparent;
  --shadow-sm: 0 0 0 0 transparent;
  --font-display: "Instrument Serif", "Playfair Display", Georgia, serif;
  --display-weight: 400;
  --corner: 0;
  --border-w: 1px;
}
html[data-variant="editorial"][data-theme="dark"] {
  --bg: #1A120B;
  --bg-alt: #221810;
  --fg: #EFE8DD;
  --fg-muted: #A09484;
  --fg-soft: #5C5248;
  --line: #EFE8DD;
  --line-soft: #EFE8DD30;
  --accent: #FF4F3A;
  --accent-fg: #1A0F0A;
  --card: #221810;
  --card-hover: #2A1F16;
}

/* ============================================================================
   VARIANT C — DARK TECHNO / NEON
   pure black, neon green, mono everywhere, terminal
   ============================================================================ */
html[data-variant="techno"] {
  --bg: #050506;
  --bg-alt: #0B0B0D;
  --fg: #E6E6E9;
  --fg-muted: #707076;
  --fg-soft: #3A3A3E;
  --line: #2A2A2E;
  --line-soft: #1A1A1E;
  --accent: #00FF94;
  --accent-fg: #050506;
  --card: #0B0B0D;
  --card-hover: #111113;
  --shadow: 0 0 0 1px #00FF94, 0 0 40px -10px #00FF9470;
  --shadow-sm: 0 0 0 1px #00FF94;
  --font-display: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 500;
  --corner: 0;
  --border-w: 1px;
}
html[data-variant="techno"][data-theme="light"] {
  --bg: #E8E8EA;
  --bg-alt: #DCDCE0;
  --fg: #050506;
  --fg-muted: #505056;
  --fg-soft: #9A9AA0;
  --line: #050506;
  --line-soft: #0505061A;
  --accent: #00A862;
  --accent-fg: #FFFFFF;
  --card: #F4F4F6;
  --card-hover: #EDEDF0;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.pf-root {
  min-height: 100vh;
  background: var(--bg);
}

/* ============================================================================
   HEADER
   ============================================================================ */
.pf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-w) solid var(--line);
}
.pf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 32px;
}
.pf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.pf-logo-mark {
  background: var(--fg);
  color: var(--bg);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
}
html[data-variant="techno"] .pf-logo-mark {
  background: var(--accent);
  color: var(--accent-fg);
}
.pf-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.pf-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pf-nav a {
  position: relative;
  color: var(--fg-muted);
  transition: color 0.2s;
  padding: 4px 0;
}
.pf-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf-nav a:hover { color: var(--fg); }
.pf-nav a:hover::before { width: 100%; }
.pf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-lang {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border: var(--border-w) solid var(--line);
  transition: border-color 0.2s;
}
.pf-lang .on { color: var(--fg); font-weight: 600; }
.pf-lang .sep { color: var(--fg-soft); }
.pf-lang:hover { border-color: var(--accent); }
.pf-theme {
  width: 38px; height: 38px;
  border: var(--border-w) solid var(--line);
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}
.pf-theme:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }

@media (max-width: 900px) {
  .pf-header-inner { padding: 14px 20px; }
  .pf-nav { display: none; }
}

/* ============================================================================
   HERO
   ============================================================================ */
.pf-hero {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 48px 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.pf-hero-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: var(--border-w) solid var(--line-soft);
  padding-bottom: 14px;
  margin-bottom: 48px;
}
.pf-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse { color: var(--accent); animation: pulse 1.8s ease-in-out infinite; }

.pf-hero-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  flex: 1;
}
@media (max-width: 1100px) {
  .pf-hero-main { grid-template-columns: 1fr; }
}

.pf-hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: var(--fg);
}
html[data-variant="editorial"] .pf-hero-title {
  font-style: italic;
  letter-spacing: -0.02em;
}
html[data-variant="techno"] .pf-hero-title {
  letter-spacing: -0.05em;
}
.pf-line { display: block; }
.pf-line-alt {
  color: var(--fg);
  display: flex;
  align-items: baseline;
}
html[data-variant="mono"] .pf-line-alt {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0 0.1em;
  margin-left: -0.05em;
  width: fit-content;
}
html[data-variant="editorial"] .pf-line-alt {
  color: var(--accent);
}
html[data-variant="techno"] .pf-line-alt {
  color: var(--accent);
}
.pf-period {
  color: var(--accent);
}
html[data-variant="mono"] .pf-line-alt .pf-period { color: var(--accent-fg); }

.pf-hero-role {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.pf-slash { color: var(--accent); font-weight: 600; }

.pf-hero-tagline {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 720px;
  color: var(--fg);
}
.pf-tagline-line {
  display: block;
}
.pf-tagline-line:nth-child(2) {
  color: var(--fg-muted);
}
html[data-variant="editorial"] .pf-hero-tagline { font-style: italic; }

.pf-hero-intro {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.pf-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: var(--border-w) solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
  position: relative;
  background: var(--card);
  color: var(--fg);
}
.pf-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}
html[data-variant="editorial"] .pf-btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.pf-btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--line);
}
html[data-variant="techno"] .pf-btn-primary {
  box-shadow: 0 0 0 1px var(--accent);
}
.pf-btn-arrow { transition: transform 0.2s; }
.pf-btn:hover .pf-btn-arrow { transform: translate(2px, -2px); }

/* HERO PHOTO */
.pf-hero-photo {
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
@media (max-width: 1100px) {
  .pf-hero-photo { justify-self: start; max-width: 320px; }
}
.pf-photo-frame {
  position: relative;
  border: var(--border-w) solid var(--line);
  background: var(--card);
  transition: transform 0.3s;
}
html[data-variant="mono"] .pf-photo-frame::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--accent);
  z-index: -1;
}
html[data-variant="editorial"] .pf-photo-frame {
  border-color: var(--accent);
}
html[data-variant="techno"] .pf-photo-frame {
  box-shadow: 0 0 0 1px var(--accent), 0 0 60px -10px var(--accent);
}
.pf-photo-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}
html[data-variant="mono"] .pf-photo-frame img {
  filter: grayscale(1) contrast(1.1);
}
html[data-variant="techno"] .pf-photo-frame img {
  filter: grayscale(0.7) contrast(1.15) hue-rotate(-10deg);
}
.pf-photo-label {
  padding: 14px 16px;
  border-top: var(--border-w) solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.pf-photo-label-row {
  display: flex;
  justify-content: space-between;
}
.pf-photo-label-row.sub {
  color: var(--fg-muted);
  margin-top: 4px;
}

/* STATS */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: var(--border-w) solid var(--line);
}
.pf-stat {
  padding: 24px 20px;
  border-right: var(--border-w) solid var(--line-soft);
}
.pf-stat:last-child { border-right: 0; }
.pf-stat-n {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 6px;
}
html[data-variant="editorial"] .pf-stat-n { font-style: italic; }
.pf-stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
@media (max-width: 720px) {
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-stat:nth-child(2) { border-right: 0; }
}

.pf-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.pf-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--fg-muted);
  position: relative;
  overflow: hidden;
}
.pf-scroll-line::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 20px;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -20px; }
  100% { left: 40px; }
}

/* ============================================================================
   SECTIONS (shared)
   ============================================================================ */
.pf-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 48px;
  border-top: var(--border-w) solid var(--line);
}
@media (max-width: 900px) {
  .pf-section { padding: 80px 20px; }
}
.pf-section-header {
  margin-bottom: 64px;
  max-width: 900px;
}
.pf-section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
html[data-variant="editorial"] .pf-section-tag {
  color: var(--fg-muted);
}
.pf-section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 20px;
}
html[data-variant="editorial"] .pf-section-title {
  font-style: italic;
  font-weight: 400;
}
.pf-section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.5;
}
.pf-section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pf-section-title-row .pf-section-title { margin-bottom: 0; }
.pf-section-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.pf-section-link:hover { color: var(--accent); }

/* ============================================================================
   EXPERIENCE / TIMELINE
   ============================================================================ */
.pf-timeline {
  display: flex;
  flex-direction: column;
}
.pf-job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: var(--border-w) solid var(--line-soft);
  transition: background 0.2s;
  position: relative;
}
.pf-job:hover { background: var(--bg-alt); margin: 0 -24px; padding: 40px 24px; }
.pf-job:last-child { border-bottom: var(--border-w) solid var(--line-soft); }
.pf-job-featured {
  background: var(--card);
  border-top-color: var(--accent);
}
html[data-variant="mono"] .pf-job-featured {
  border-top-width: 3px;
}
html[data-theme="dark"] .pf-job-featured {
  background: transparent;
}
.pf-job-period {
  font-family: var(--font-mono);
}
.pf-job-dates {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.pf-job-duration {
  font-size: 12px;
  color: var(--fg-muted);
}
.pf-job-body {}
.pf-job-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pf-job-company {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}
html[data-variant="editorial"] .pf-job-company { font-style: italic; }
.pf-job-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--accent-fg);
}
.pf-job-role {
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 6px;
  font-weight: 500;
}
.pf-job-loc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.pf-job-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 680px;
}
.pf-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border: var(--border-w) solid var(--line-soft);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  transition: all 0.15s;
}
.pf-tag:hover { border-color: var(--accent); color: var(--accent); }
.pf-tag-sm { font-size: 10px; padding: 3px 7px; }

/* Grouped job (multiple roles at one company) */
.pf-job-group .pf-job-company {
  margin-bottom: 24px;
}
.pf-job-subroles {
  display: flex;
  flex-direction: column;
}
.pf-job-subrole {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
}
.pf-job-subrole-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;
}
.pf-job-subrole-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pf-job-subrole-line {
  width: 1px;
  flex: 1;
  background: var(--line-soft);
  margin-top: 6px;
}
.pf-job-subrole-body {
  padding-bottom: 28px;
}
.pf-job-subrole:last-child .pf-job-subrole-body {
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .pf-job { grid-template-columns: 1fr; gap: 16px; }
  .pf-job:hover { margin: 0; padding: 40px 0; }
}

/* ============================================================================
   PROJECTS
   ============================================================================ */
.pf-projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.pf-project {
  border: var(--border-w) solid var(--line);
  background: var(--card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
  min-height: 280px;
}
.pf-project:hover {
  background: var(--card-hover);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-sm);
}
.pf-project-xl { grid-column: span 6; }
.pf-project-lg { grid-column: span 4; }
.pf-project-md { grid-column: span 3; }
.pf-project-sm { grid-column: span 2; }
@media (max-width: 1100px) {
  .pf-project-xl, .pf-project-lg { grid-column: span 6; }
  .pf-project-md { grid-column: span 3; }
}
@media (max-width: 720px) {
  .pf-projects-grid { grid-template-columns: 1fr; }
  .pf-project { grid-column: span 1 !important; min-height: auto; }
}

.pf-project-xl { min-height: 320px; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pf-project-xl .pf-project-title,
.pf-project-xl .pf-project-num { color: var(--accent); }
.pf-project-xl .pf-project-desc,
.pf-project-xl .pf-project-sub,
.pf-project-xl .pf-project-year { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.pf-project-xl .pf-tag { border-color: color-mix(in srgb, var(--bg) 30%, transparent); color: color-mix(in srgb, var(--bg) 85%, transparent); }
.pf-project-xl:hover { background: var(--fg); }

html[data-theme="dark"] .pf-project-xl { background: var(--card); color: var(--fg); border-color: var(--line); }
html[data-theme="dark"] .pf-project-xl .pf-project-title,
html[data-theme="dark"] .pf-project-xl .pf-project-num { color: var(--accent); }
html[data-theme="dark"] .pf-project-xl .pf-project-desc,
html[data-theme="dark"] .pf-project-xl .pf-project-sub,
html[data-theme="dark"] .pf-project-xl .pf-project-year { color: var(--fg-muted); }
html[data-theme="dark"] .pf-project-xl .pf-tag { border-color: var(--line); color: var(--fg-muted); }
html[data-theme="dark"] .pf-project-xl:hover { background: var(--card-hover); }
html[data-theme="dark"] .pf-project-xl .pf-project-foot { border-top-color: var(--line-soft); }

.pf-project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pf-project-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.pf-project-status {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-project-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
.pf-project-body { flex: 1; }
.pf-project-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 6px;
}
html[data-variant="editorial"] .pf-project-title { font-style: italic; }
.pf-project-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.pf-project-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.pf-project-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: var(--border-w) solid var(--line-soft);
}
.pf-project-xl .pf-project-foot { border-top-color: color-mix(in srgb, var(--bg) 20%, transparent); }
.pf-project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pf-project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================================
   SKILLS
   ============================================================================ */
.pf-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: var(--border-w) solid var(--line-soft);
  border-left: var(--border-w) solid var(--line-soft);
}
@media (max-width: 900px) { .pf-skills-grid { grid-template-columns: 1fr; } }
.pf-skill-group {
  padding: 32px;
  border-right: var(--border-w) solid var(--line-soft);
  border-bottom: var(--border-w) solid var(--line-soft);
  transition: background 0.2s;
}
.pf-skill-group:hover { background: var(--bg-alt); }
.pf-skill-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.pf-skill-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.pf-skill-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
html[data-variant="editorial"] .pf-skill-title { font-style: italic; }
.pf-skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-skill-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  border: var(--border-w) solid var(--line-soft);
  color: var(--fg);
  background: var(--card);
  transition: all 0.15s;
}
.pf-skill-chip:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ============================================================================
   GITHUB
   ============================================================================ */
.pf-github-loading, .pf-github-error, .pf-github-empty {
  padding: 60px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-muted);
  border: var(--border-w) dashed var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pf-github-error a { color: var(--accent); margin-left: 8px; }
.pf-loader {
  width: 16px; height: 16px;
  border: 2px solid var(--line-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pf-repos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: var(--border-w) solid var(--line-soft);
  border-left: var(--border-w) solid var(--line-soft);
}
@media (max-width: 900px) { .pf-repos { grid-template-columns: 1fr; } }
.pf-repo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 24px 28px;
  border-right: var(--border-w) solid var(--line-soft);
  border-bottom: var(--border-w) solid var(--line-soft);
  transition: background 0.2s;
  align-items: start;
}
.pf-repo:hover { background: var(--bg-alt); }
.pf-repo:hover .pf-repo-arrow { transform: translate(3px, -3px); color: var(--accent); }
.pf-repo-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  padding-top: 4px;
}
.pf-repo-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 6px;
  word-break: break-word;
}
html[data-variant="editorial"] .pf-repo-name { font-style: italic; }
.pf-repo-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.pf-repo-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  align-items: center;
  flex-wrap: wrap;
}
.pf-repo-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pf-repo-lang {
  padding: 2px 8px;
  background: var(--accent);
  color: var(--accent-fg);
  letter-spacing: 0.04em;
}
.pf-repo-arrow {
  color: var(--fg-muted);
  transition: transform 0.2s, color 0.2s;
  padding-top: 4px;
}

/* ============================================================================
   CONTACT / FOOTER
   ============================================================================ */
.pf-section-contact {
  padding-bottom: 0;
}
.pf-contact-inner {
  margin-bottom: 80px;
}
.pf-contact-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 20px;
}
html[data-variant="editorial"] .pf-contact-title { font-style: italic; }
.pf-contact-sub {
  font-size: 20px;
  color: var(--fg-muted);
  margin-bottom: 56px;
  max-width: 520px;
}
.pf-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: var(--border-w) solid var(--line);
  border-left: var(--border-w) solid var(--line);
}
@media (max-width: 720px) { .pf-contact-grid { grid-template-columns: 1fr; } }
.pf-contact-card {
  position: relative;
  padding: 32px 32px 40px;
  border-right: var(--border-w) solid var(--line);
  border-bottom: var(--border-w) solid var(--line);
  transition: background 0.2s;
  display: block;
}
.pf-contact-card:hover { background: var(--accent); color: var(--accent-fg); }
.pf-contact-card:hover .pf-contact-arrow { transform: translate(8px, 0); }
.pf-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.pf-contact-card:hover .pf-contact-label { color: var(--accent-fg); opacity: 0.7; }
.pf-contact-value {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  color: var(--fg);
  word-break: break-all;
}
.pf-contact-card:hover .pf-contact-value { color: var(--accent-fg); }
html[data-variant="editorial"] .pf-contact-value { font-style: italic; }
.pf-contact-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--fg-muted);
  transition: transform 0.25s, color 0.2s;
}
.pf-contact-card:hover .pf-contact-arrow { color: var(--accent-fg); }

.pf-footer {
  border-top: var(--border-w) solid var(--line);
  padding-top: 40px;
  padding-bottom: 0;
}
.pf-footer-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.pf-footer-big {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 15vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--fg);
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 20px;
  user-select: none;
}
html[data-variant="mono"] .pf-footer-big {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
}
html[data-variant="editorial"] .pf-footer-big {
  font-style: italic;
  color: var(--accent);
}
html[data-variant="techno"] .pf-footer-big {
  color: var(--accent);
  letter-spacing: -0.03em;
}

/* ============================================================================
   GITHUB — PRIVATE REPOS & MODAL
   ============================================================================ */

/* Dividers between private / public */
.pf-repos-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pf-repos-divider-public {
  margin-top: 48px;
}
.pf-repos-divider-label {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
}
.pf-repos-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.pf-repos-divider-sub {
  white-space: nowrap;
  color: var(--fg-soft);
  font-size: 10px;
}
.pf-repos-divider + .pf-repos {
  margin-top: 0;
}

/* Private repo card (button variant of pf-repo) */
button.pf-repo {
  width: 100%;
  text-align: left;
  background: none;
  font: inherit;
}
.pf-repo-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pf-private-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  background: var(--fg);
  color: var(--bg);
  flex-shrink: 0;
  text-transform: uppercase;
  line-height: 1.4;
}
html[data-variant="techno"] .pf-private-badge {
  background: var(--accent);
  color: var(--accent-fg);
}

/* Modal overlay */
.pf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pf-modal-panel {
  background: var(--card);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  animation: modalSlideUp 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: var(--border-w) solid var(--line-soft);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.pf-modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pf-modal-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.pf-modal-close {
  width: 36px;
  height: 36px;
  border: var(--border-w) solid var(--line);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}
.pf-modal-close:hover {
  border-color: var(--fg);
  color: var(--fg);
  background: var(--bg-alt);
}
.pf-modal-body {
  padding: 32px 28px 48px;
}
.pf-modal-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 5vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}
html[data-variant="editorial"] .pf-modal-title { font-style: italic; }
.pf-modal-screenshot {
  width: 100%;
  aspect-ratio: 16/9;
  border: var(--border-w) solid var(--line-soft);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--bg-alt);
}
.pf-modal-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-modal-screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pf-modal-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.pf-modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-modal-gallery {
  margin-top: 28px;
}
.pf-modal-screenshot-zoomable {
  cursor: zoom-in;
  position: relative;
}
.pf-modal-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: var(--border-w) solid var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity 0.2s;
}
.pf-modal-screenshot-zoomable:hover .pf-modal-zoom-hint {
  opacity: 1;
}

/* Lightbox */
.pf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.15s ease;
}
.pf-lightbox img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  display: block;
  user-select: none;
}
.pf-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s;
  z-index: 1;
}
.pf-lightbox-close:hover {
  border-color: #fff;
  color: #fff;
}
.pf-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s;
  z-index: 1;
}
.pf-lightbox-nav:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.pf-lightbox-prev { left: 20px; }
.pf-lightbox-next { right: 20px; }
.pf-lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.pf-modal-gallery-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
}
.pf-gallery-btn {
  width: 32px;
  height: 32px;
  border: var(--border-w) solid var(--line);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}
.pf-gallery-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pf-gallery-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  min-width: 40px;
  text-align: center;
}
.pf-gallery-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 4px;
}
.pf-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-soft);
  border: 0;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.pf-gallery-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.pf-gallery-dot:hover {
  background: var(--fg-muted);
}

@media (max-width: 600px) {
  .pf-modal-overlay { padding: 0; align-items: flex-end; }
  .pf-modal-panel { max-height: 92vh; border-bottom: 0; border-radius: 0; }
  .pf-modal-body { padding: 24px 20px 40px; }
  .pf-modal-header { padding: 16px 20px; }
  .pf-repos-divider-sub { display: none; }
}

/* Print */
@media print {
  .pf-header, .pf-scroll-indicator, .tweaks-panel, .pf-hero-ctas { display: none !important; }
  body { background: white !important; color: black !important; }
}
