:root {
  --ink: #2d211c;
  --ink-soft: #443129;
  --ink-deep: #1c1411;
  --paper: #f7efe5;
  --paper-strong: #fffaf4;
  --sand: #ead7c3;
  --sand-deep: #c59a74;
  --teal: #8d6a50;
  --teal-soft: rgba(141, 106, 80, 0.14);
  --text: #271f1b;
  --muted: #6b5a4d;
  --line: rgba(45, 33, 28, 0.1);
  --line-strong: rgba(45, 33, 28, 0.18);
  --shadow: 0 24px 70px rgba(37, 24, 18, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

main [id] {
  scroll-margin-top: 8.5rem;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--ink) 0, var(--ink) 52rem, var(--paper) 52rem, var(--paper) 100%);
  min-height: 100vh;
  position: relative;
}

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

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

.page-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.32;
}

.page-glow-one {
  width: 24rem;
  height: 24rem;
  right: -6rem;
  top: 6rem;
  background: rgba(197, 154, 116, 0.38);
  border-radius: 50%;
}

.page-glow-two {
  width: 30rem;
  height: 18rem;
  left: -8rem;
  top: 18rem;
  background: rgba(115, 84, 63, 0.18);
  transform: rotate(-18deg);
  border-radius: 38px;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 33, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}

.brand {
  font-family: "Syne", sans-serif;
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(244, 239, 232, 0.72);
  font-size: 0.86rem;
}

main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.section {
  margin-top: 2.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 1.35rem 2rem;
  align-items: start;
}

.hero-marquee {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0 0.25rem;
}

.hero-marquee h1 {
  width: 100%;
}

.hero-name {
  margin: 0;
  color: rgba(255, 246, 238, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: rgba(210, 178, 134, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 100%;
  color: #f7f4ee;
  font-size: clamp(2.45rem, 4.8vw, 4.25rem);
}

h2 {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.hero-copy {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(60, 43, 35, 0.98), rgba(34, 25, 21, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.28);
}

.hero-text,
.hero-note p,
.stat-label,
.logo-type,
.vision-panel > p,
.vision-card p,
.timeline-card li,
.card-list li,
.card-stack p,
.badge-body,
.community-copy,
.skill-block p,
.contact-text {
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
}

.hero-text {
  color: rgba(244, 239, 232, 0.78);
}

.hero-positioning {
  margin: 0;
  color: rgba(255, 244, 232, 0.92);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 600;
}

.hero-note p {
  color: var(--ink);
}

.hero-text strong {
  color: #fff9f3;
}

.hero-note strong {
  color: var(--ink-deep);
}

.timeline-card li strong,
.card-list li strong,
.card-stack p strong,
.badge-body strong,
.community-copy strong,
.contact-text strong,
.vision-panel > p strong {
  color: var(--text);
}

.vision-card p strong {
  color: #fff8f1;
}

.hero-note,
.panel,
.stat-card {
  border-radius: var(--radius-lg);
}

.hero-note {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.hero-note-title,
.rail-title,
.vision-card-title,
.skill-heading,
.community-title {
  margin: 0 0 0.35rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-note-title {
  color: white;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.button {
  min-height: 3.3rem;
  padding: 0 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink-deep);
  background: linear-gradient(135deg, var(--sand-deep) 0%, #f0d9b5 100%);
  box-shadow: 0 16px 30px rgba(210, 178, 134, 0.18);
}

.button-secondary {
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-points li {
  padding: 0.85rem 0.95rem;
  background: rgba(197, 154, 116, 0.12);
  border: 1px solid rgba(197, 154, 116, 0.22);
  border-radius: 16px;
  color: #f4efe8;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
}

.hero-stage {
  position: relative;
  min-height: 40rem;
  padding: 2.2rem 1.2rem 1rem 0;
}

.portrait-frame {
  position: absolute;
  right: 0;
  top: 0;
  width: min(100%, 33rem);
  aspect-ratio: 0.82;
  padding: 1rem;
  background: linear-gradient(145deg, var(--paper-strong) 0%, #eadbcc 100%);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.portrait-ring {
  position: absolute;
  width: 9rem;
  height: 9rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(197, 154, 116, 0.9), rgba(69, 48, 37, 0.2));
  top: -1rem;
  left: -1rem;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.highlight-card {
  position: absolute;
  max-width: 14.5rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 250, 244, 0.96);
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

.highlight-card-top {
  left: 0;
  top: 3rem;
}

.highlight-card-main {
  left: 1rem;
  bottom: 4.8rem;
}

.highlight-card-side {
  right: 0;
  bottom: 1rem;
}

.highlight-number,
.stat-value {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.highlight-number {
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 0.95;
  margin-bottom: 0.35rem;
}

.highlight-card-main .highlight-number {
  font-size: 1.65rem;
  line-height: 1.05;
}

.highlight-label {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -1rem;
}

.stat-card {
  padding: 1.55rem;
  background: var(--paper-strong);
  border: 1px solid rgba(16, 24, 39, 0.08);
  box-shadow: var(--shadow);
}

.stat-value {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 3rem;
  line-height: 0.95;
}

.stat-label {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin-top: 0.2rem;
  max-width: 100%;
}

.split-rail,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rail-panel,
.vision-panel,
.support-panel,
.card-stack,
.community-panel,
.skill-panel,
.contact-panel {
  padding: 1.6rem;
}

.panel {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(16, 24, 39, 0.08);
  box-shadow: var(--shadow);
}

.rail-panel {
  position: relative;
  overflow: hidden;
}

.rail-panel::before,
.vision-panel::before,
.support-panel::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--sand-deep) 100%);
}

.rail-title {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.logo-grid {
  display: grid;
  gap: 0.85rem;
}

.org-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.org-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.language-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logo-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
}

.logo-mark-image img {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  object-fit: contain;
}

.logo-mark-official {
  background: rgba(255, 250, 244, 0.96);
  box-shadow: inset 0 0 0 1px rgba(45, 33, 28, 0.08);
}

.logo-mark-official img {
  width: 1.9rem;
  height: 1.9rem;
}

.logo-mark-cern img {
  width: 1.82rem;
  height: 1.82rem;
}

.logo-mark-gdansk {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 16px;
}

.logo-mark-gdansk img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  object-position: center top;
}

.logo-mark-mit img {
  width: 1.95rem;
  height: 1.55rem;
}

.logo-mark-tmobile img {
  width: 1.82rem;
  height: 1.82rem;
  border-radius: 10px;
}

.logo-name,
.logo-type,
.community-years,
.community-title,
.badge-title,
.badge-meta,
.timeline-role,
.timeline-company,
.timeline-date,
.card-title,
.card-subtitle,
.card-meta {
  margin: 0;
}

.logo-name,
.timeline-role,
.card-title,
.badge-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-type,
.timeline-date,
.card-meta,
.badge-meta,
.community-years {
  color: var(--muted);
  font-size: 0.94rem;
}

.vision-panel {
  position: relative;
  overflow: hidden;
  padding-left: 2rem;
}

.support-panel {
  position: relative;
  overflow: hidden;
  padding-left: 2rem;
}

.vision-panel > p {
  max-width: 100%;
  width: 100%;
}

.support-intro {
  margin: 0 0 1.2rem;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.support-grid {
  margin-top: 0.25rem;
}

.support-card {
  background: rgba(255, 253, 248, 0.9);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.4rem;
}

.vision-card {
  padding: 1.15rem;
  background: var(--ink);
  color: white;
  border-radius: 22px;
}

.vision-card-title {
  color: #f8f4ed;
}

.vision-card p {
  color: rgba(244, 239, 232, 0.74);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--sand-deep));
  border-radius: 999px;
}

.timeline-card {
  position: relative;
  margin-left: 2.6rem;
  padding: 1.45rem 1.5rem;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 1.45rem;
  width: 1rem;
  height: 1rem;
  background: var(--ink);
  border: 4px solid var(--paper);
  border-radius: 999px;
}

.timeline-meta {
  margin-bottom: 0.95rem;
}

.timeline-company,
.card-subtitle {
  margin-top: 0.25rem;
  color: var(--teal);
  font-weight: 700;
}

.timeline-card ul {
  margin: 0;
  padding-left: 1.05rem;
}

.timeline-card li + li {
  margin-top: 0.35rem;
}

.card-stack {
  display: grid;
  gap: 0.9rem;
}

.card-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.italic {
  font-style: italic;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.badge-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(245, 239, 230, 0.96));
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.badge-card:nth-child(3n + 1) {
  border-top: 5px solid var(--ink);
}

.badge-card:nth-child(3n + 2) {
  border-top: 5px solid var(--teal);
}

.badge-card:nth-child(3n) {
  border-top: 5px solid var(--sand-deep);
}

.badge-grid-recognition .badge-card-spotlight {
  background: linear-gradient(180deg, rgba(255, 253, 248, 1), rgba(241, 232, 222, 0.98));
  box-shadow: 0 28px 62px rgba(37, 24, 18, 0.14);
}

.badge-body {
  color: var(--muted);
}

.community-panel {
  display: grid;
  gap: 0.9rem;
}

.community-item {
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.community-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.community-copy {
  margin-top: 0.45rem;
}

.skill-panel {
  display: grid;
  gap: 1.2rem;
}

.skill-heading {
  margin-bottom: 0.1rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.chip-group span {
  padding: 0.68rem 0.88rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.passion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.passion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.92rem;
  border-radius: 999px;
  background: rgba(45, 33, 28, 0.06);
  border: 1px solid rgba(45, 33, 28, 0.1);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.1;
}

.passion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  font-size: 0.95rem;
  line-height: 1;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
  padding-left: 2rem;
}

.contact-copy {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-links {
  display: grid;
  gap: 0.8rem;
}

.contact-links a {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(45, 33, 28, 0.05);
  border: 1px solid rgba(45, 33, 28, 0.1);
  color: var(--ink);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 1080px) {
  body {
    background:
      linear-gradient(180deg, var(--ink) 0, var(--ink) 64rem, var(--paper) 64rem, var(--paper) 100%);
  }

  .hero,
  .stats,
  .split-rail,
  .vision-grid,
  .two-column,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .org-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage {
    min-height: 36rem;
  }

  .portrait-frame {
    position: relative;
    width: min(100%, 32rem);
    margin: 0 auto;
  }

  .highlight-card-top {
    top: 1rem;
  }

  .highlight-card-main {
    left: 0.4rem;
    bottom: 4.2rem;
  }

  .highlight-card-side {
    right: 0.4rem;
    bottom: 0.6rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 1rem 1.1rem;
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .site-nav {
    gap: 0.9rem;
  }

  main {
    padding-top: 9.4rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(2.4rem, 11vw, 3.7rem);
  }

  h2 {
    max-width: 100%;
  }

  .hero-copy {
    padding: 1.35rem;
  }

  .hero-stage {
    min-height: 33rem;
    padding-right: 0;
  }

  .portrait-frame {
    width: 100%;
  }

  .highlight-card {
    max-width: 8.9rem;
    padding: 0.62rem 0.68rem;
    border-left-width: 3px;
    border-radius: 14px;
  }

  .highlight-number {
    font-size: 1.55rem;
    margin-bottom: 0.18rem;
  }

  .highlight-card-main .highlight-number {
    font-size: 1.05rem;
    line-height: 1;
  }

  .highlight-label {
    font-size: 0.69rem;
    line-height: 1.28;
  }

  .highlight-card-top {
    top: 0.45rem;
    left: 0.2rem;
  }

  .highlight-card-main {
    left: 0.2rem;
    bottom: 3.15rem;
  }

  .highlight-card-side {
    right: 0.2rem;
    bottom: 0.25rem;
  }

  .org-grid,
  .language-grid,
  .org-grid-wide {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0.8rem;
  }

  .timeline-card {
    margin-left: 2rem;
    padding: 1.25rem;
  }

  .timeline-card::before {
    left: -1.62rem;
  }

  .vision-panel,
  .support-panel,
  .contact-panel {
    padding-left: 1.5rem;
  }
}

@media (min-width: 960px) {
  .badge-grid-recognition .badge-card-spotlight {
    grid-column: span 2;
  }
}
