:root {
  color-scheme: light;
  --background: #fbfbfc;
  --foreground: #121216;
  --muted: #66666d;
  --muted-2: #85858d;
  --line: #e8e8eb;
  --surface: #f5f5f7;
  --brand: #655fe8;
  --brand-hover: #5049da;
  --hero-ink: #08080c;
  --hero-muted: #b8b7c4;
  --page-width: 1240px;
  --page-pad: clamp(22px, 5.9vw, 86px);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html.dark {
  color-scheme: dark;
  --background: #101014;
  --foreground: #f3f3f5;
  --muted: #b4b4bd;
  --muted-2: #85858f;
  --line: #2b2b32;
  --surface: #18181e;
  --brand: #8c85ff;
  --brand-hover: #a39eff;
  --hero-ink: #050507;
  --hero-muted: #b8b7c4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-size: 14px; line-height: 1.7; transition: background-color 180ms ease, color 180ms ease; }
body, button, a { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { color: #fff; background: var(--brand); }

.portfolio-page { min-height: 100vh; overflow: clip; }
.section-wrap { width: min(100% - 2 * var(--page-pad), var(--page-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 14px; color: #fff; background: var(--hero-ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 30; top: 0; height: 72px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(16px); }
.header-inner { width: min(100% - 2 * var(--page-pad), var(--page-width)); height: 100%; margin-inline: auto; display: flex; align-items: center; }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; min-width: 190px; font-size: 18px; font-weight: 750; letter-spacing: -1px; }
.wordmark i { color: var(--brand); font-size: 17px; font-style: normal; font-weight: 400; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.15vw, 31px); margin-left: auto; }
.main-nav a { position: relative; padding-block: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; transition: color 160ms ease; }
.main-nav a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; background: var(--brand); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--foreground); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.theme-toggle, .mobile-menu-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-left: 1px solid var(--line); background: transparent; margin-left: 22px; color: var(--foreground); transition: color 160ms ease; }
.theme-toggle:hover { color: var(--brand); }
.mobile-menu-toggle { display: none; }

.hero { min-height: min(780px, calc(100svh - 72px)); padding-top: clamp(24px, 3.1vw, 43px); display: flex; flex-direction: column; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .025em; }
.availability { display: inline-flex; align-items: center; gap: 9px; }
.availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.location-line { display: inline-flex; align-items: center; gap: 5px; }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(310px, .86fr); align-items: center; gap: clamp(38px, 6.1vw, 88px); padding-block: clamp(42px, 6vw, 78px) 55px; }
.hero-copy { max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .11em; }
.eyebrow span { display: inline-block; width: 20px; height: 1px; background: var(--brand); }
.hero h1 { margin: 0; font-size: clamp(43px, 5.15vw, 70px); font-weight: 540; letter-spacing: -.068em; line-height: 1.12; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-description { max-width: 530px; margin: 22px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.88; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.button-primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 17px; border: 1px solid var(--brand); border-radius: 3px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 600; transition: background 170ms ease, border-color 170ms ease, transform 170ms ease; }
.button-primary:hover { border-color: var(--brand-hover); background: var(--brand-hover); transform: translateY(-2px); }
.button-text { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 550; transition: color 160ms ease; }
.button-text:hover { color: var(--brand); }
.button-text svg, .social-links svg:last-child { transition: transform 160ms ease; }
.button-text:hover svg, .social-links a:hover svg:last-child { transform: translate(2px, -2px); }
.hero-visual { position: relative; min-height: 344px; height: min(43vw, 420px); overflow: hidden; color: #f5f4fa; background: var(--hero-ink); isolation: isolate; }
.hero-visual::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgb(7 7 12 / 38%) 0%, transparent 30%, transparent 66%, rgb(7 7 12 / 70%) 100%); content: ""; pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .9; }
.visual-tag, .visual-coordinates, .visual-caption { position: absolute; z-index: 2; }
.visual-tag { top: 19px; left: 20px; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .12em; }
.visual-coordinates { top: 45%; right: 15px; writing-mode: vertical-rl; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .1em; }
.visual-caption { right: 21px; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 8px; }
.visual-caption span { color: #c8c4fa; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .13em; }
.visual-caption strong { font-size: 14px; font-weight: 450; }
.visual-corner { position: absolute; z-index: 2; width: 11px; height: 11px; border-color: rgb(255 255 255 / 80%); border-style: solid; }
.visual-corner-top { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.visual-corner-bottom { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 70px; border-bottom: 1px solid var(--line); }
.scroll-prompt { display: inline-flex; align-items: center; gap: 12px; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .13em; }
.scroll-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.scroll-prompt:hover .scroll-icon { color: var(--brand); border-color: var(--brand); transform: translateY(2px); }
.social-links { display: flex; align-items: center; gap: 22px; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; transition: color 160ms ease; }
.social-links a:hover { color: var(--brand); }

.content-section { padding-top: clamp(80px, 10vw, 140px); }
.section-label { display: flex; align-items: center; gap: 13px; margin-bottom: 36px; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .13em; }
.section-number { color: var(--brand); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.section-heading-row h2, .about-heading h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); font-weight: 520; letter-spacing: -.055em; line-height: 1.16; }
.section-heading-row > p { max-width: 330px; margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(46px, 10vw, 140px); align-items: start; }
.about-heading h2 { font-size: clamp(38px, 4.5vw, 58px); }
.mini-signature { display: flex; align-items: baseline; gap: 2px; margin-top: 30px; font-size: 26px; font-weight: 700; letter-spacing: -.08em; }
.mini-signature i { color: var(--brand); font-style: normal; }
.person-name { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.person-role { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.about-copy { padding-top: 5px; }
.about-copy > p { margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.source-note { color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 8px; }
.benefit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 69px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit-item { display: flex; gap: 17px; padding: 24px 18px 25px 0; }
.benefit-item + .benefit-item { padding-left: 24px; border-left: 1px solid var(--line); }
.mono-number { flex: 0 0 auto; color: var(--brand); font-family: "JetBrains Mono", monospace; font-size: 9px; }
.benefit-item h3 { margin: -4px 0 5px; font-size: 14px; font-weight: 560; }
.benefit-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.projects-section { padding-top: clamp(88px, 11vw, 154px); }
.project-list { border-top: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: minmax(220px, .76fr) minmax(0, 1.24fr); gap: clamp(28px, 5vw, 68px); padding: 24px 0; border-bottom: 1px solid var(--line); }
.project-image-wrap { position: relative; min-height: 198px; overflow: hidden; background: var(--surface); }
.project-image-wrap img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; transition: transform 380ms cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-image-wrap img { transform: scale(1.035); }
.project-domain { position: absolute; bottom: 10px; left: 10px; padding: 3px 7px; color: #fff; background: rgb(10 10 14 / 73%); font-family: "JetBrains Mono", monospace; font-size: 8px; }
.project-detail { display: flex; flex-direction: column; justify-content: center; padding-block: 3px; }
.project-meta { display: flex; justify-content: space-between; margin-bottom: 11px; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .1em; }
.project-meta span:last-child { color: var(--brand); }
.project-title-line { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.project-title-line h3 { margin: 0; font-size: clamp(20px, 2vw, 25px); font-weight: 540; letter-spacing: -.04em; line-height: 1.35; }
.project-arrow { flex: 0 0 auto; margin-top: 3px; color: var(--muted-2); transition: color 160ms ease, transform 160ms ease; }
.project-card:hover .project-arrow { color: var(--brand); transform: translate(3px, -3px); }
.project-description { max-width: 610px; margin: 10px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.4; }
.section-footnote { display: flex; align-items: center; gap: 13px; margin-top: 21px; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .12em; }
.footnote-line { width: 22px; height: 1px; background: var(--brand); }

.experience-section { padding-top: clamp(88px, 11vw, 154px); }
.timeline-list, .education-list { border-top: 1px solid var(--line); }
.timeline-item, .education-item { display: grid; grid-template-columns: minmax(180px, .5fr) minmax(0, 1fr); gap: clamp(30px, 8vw, 106px); padding: 25px 0 30px; border-bottom: 1px solid var(--line); }
.timeline-date { margin: 2px 0 0; color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .02em; }
.timeline-item h3, .education-item h3 { margin: 0; font-size: 18px; font-weight: 540; letter-spacing: -.02em; }
.timeline-org { display: inline-block; margin-top: 3px; color: var(--brand); font-size: 11px; }
.timeline-item div > p { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.education-section { padding-top: clamp(88px, 11vw, 154px); }
.education-heading { margin-bottom: 36px; }
.education-item { padding-block: 23px; }

.skills-section { padding-top: clamp(88px, 11vw, 154px); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer-card { min-height: 228px; padding: 22px 25px 25px 0; }
.offer-card + .offer-card { padding-left: 25px; border-left: 1px solid var(--line); }
.offer-card h3 { margin: 14px 0 16px; font-size: 16px; font-weight: 560; }
.offer-card ul { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.offer-card li { color: var(--muted); font-size: 11px; }

.contact-section { padding-top: clamp(88px, 11vw, 154px); }
.contact-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(42px, 9vw, 125px); padding: clamp(30px, 5vw, 62px); color: #f4f3f8; background: #0d0d12; }
.contact-main { max-width: 500px; }
.contact-kicker { color: #aaa5ff; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .15em; }
.contact-main h2 { margin: 12px 0 12px; font-size: clamp(36px, 4.3vw, 55px); font-weight: 520; letter-spacing: -.06em; line-height: 1.15; }
.contact-main > p { max-width: 440px; margin: 0 0 25px; color: #b7b6bf; font-size: 12px; line-height: 1.9; }
.contact-cta { color: #fff; }
.contact-details { display: flex; flex-direction: column; justify-content: center; gap: 21px; }
.contact-details > div:not(.social-links) { display: flex; flex-direction: column; gap: 4px; }
.contact-details > div > span { color: #aaa5ff; font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: .14em; }
.contact-details > div > a { display: inline-flex; align-items: center; gap: 7px; align-self: start; color: #f4f3f8; font-size: 12px; }
.contact-details > div > a:hover { color: #aaa5ff; }
.contact-details > div > p { max-width: 280px; margin: 0; color: #b7b6bf; font-size: 11px; line-height: 1.8; }
.social-links-footer { gap: 20px; padding-top: 4px; }
.social-links-footer a { color: #b7b6bf; }

.site-footer { display: flex; align-items: center; gap: 24px; min-height: 93px; color: var(--muted-2); font-size: 10px; }
.footer-mark { color: var(--foreground); font-size: 17px; font-weight: 750; letter-spacing: -.08em; }
.footer-mark span { color: var(--brand); }
.site-footer > p { margin: 0; }
.site-footer > span { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 8px; }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; transition: color 160ms ease; }
.back-to-top:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (min-width: 1450px) {
  .hero { min-height: 780px; }
}
@media (max-width: 980px) {
  :root { --page-pad: 34px; }
  .wordmark { min-width: 125px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 10px; }
  .theme-toggle { margin-left: 12px; }
  .hero-grid { grid-template-columns: 1.06fr .94fr; gap: 36px; }
  .hero h1 { font-size: clamp(43px, 5.3vw, 58px); }
  .hero-visual { min-height: 320px; }
  .project-card { grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); gap: 30px; }
}
@media (max-width: 760px) {
  :root { --page-pad: 23px; }
  html { scroll-padding-top: 72px; }
  .site-header { height: 64px; }
  .header-inner { position: relative; }
  .wordmark { min-width: 0; margin-right: auto; }
  .mobile-menu-toggle { display: grid; width: 40px; height: 40px; margin-left: 0; border: 0; }
  .theme-toggle { width: 40px; height: 40px; margin-left: 2px; border-left: 1px solid var(--line); }
  .main-nav { position: absolute; top: 63px; right: calc(-1 * var(--page-pad)); left: calc(-1 * var(--page-pad)); display: none; align-items: stretch; gap: 0; padding: 7px var(--page-pad) 17px; border-bottom: 1px solid var(--line); background: var(--background); }
  .main-nav-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .hero { min-height: initial; padding-top: 21px; }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: 7px; font-size: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 41px 30px; }
  .hero-copy { max-width: 580px; }
  .eyebrow { margin-bottom: 17px; font-size: 8px; }
  .hero h1 { font-size: clamp(42px, 9.2vw, 64px); }
  .hero-description { max-width: 560px; margin-top: 17px; font-size: 13px; }
  .hero-visual { min-height: 265px; height: min(67vw, 400px); }
  .hero-bottom { min-height: 59px; }
  .social-links { gap: 12px; }
  .social-links a { gap: 4px; font-size: 9px; }
  .social-links a svg:first-child { width: 12px; }
  .scroll-prompt { gap: 8px; font-size: 7px; }
  .scroll-icon { width: 24px; height: 24px; }
  .content-section, .contact-section { padding-top: 80px; }
  .section-label { margin-bottom: 25px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 29px; }
  .section-heading-row h2, .about-heading h2 { font-size: clamp(34px, 8vw, 46px); }
  .section-heading-row > p { max-width: 470px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-heading h2 { font-size: clamp(38px, 9vw, 52px); }
  .mini-signature { margin-top: 22px; }
  .benefit-list { grid-template-columns: 1fr; margin-top: 38px; }
  .benefit-item { padding: 17px 0; }
  .benefit-item + .benefit-item { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .project-card { grid-template-columns: 1fr; gap: 16px; padding-block: 18px 22px; }
  .project-image-wrap { min-height: 188px; aspect-ratio: 1.72; }
  .project-description { margin-top: 8px; }
  .timeline-item, .education-item { grid-template-columns: 1fr; gap: 8px; padding-block: 19px 23px; }
  .timeline-item h3, .education-item h3 { font-size: 17px; }
  .education-section { padding-top: 80px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: auto; padding: 19px 0 23px; }
  .offer-card + .offer-card { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .offer-card h3 { margin: 8px 0 11px; }
  .contact-panel { grid-template-columns: 1fr; gap: 37px; padding: 28px 23px; }
  .contact-main h2 { font-size: clamp(38px, 9vw, 50px); }
  .contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .contact-details .social-links-footer { grid-column: 1 / -1; }
  .site-footer { flex-wrap: wrap; gap: 12px 18px; padding-block: 22px; }
  .site-footer > p { flex: 1 1 calc(100% - 50px); }
  .site-footer > span { margin-left: 0; }
  .back-to-top { margin-left: auto; }
}
@media (max-width: 390px) {
  :root { --page-pad: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 13px; padding-block: 12px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-details .social-links-footer { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Dopasowanie do fontów i skali oryginału oraz jego późniejszych poprawek. */
html:not(.dark) { color-scheme: light; }
html.dark { color-scheme: dark; }
body, button, a { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-size: inherit; }
body { font-size: 16px; }
h1, h2, h3, .project-title-line h3 { font-family: "Space Grotesk", "Helvetica Neue", sans-serif; }
.hero h1 { font-size: clamp(48px, 5.65vw, 78px); font-weight: 500; line-height: 1.08; }
.section-heading-row h2, .about-heading h2 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 500; }
.contact-main h2 { font-size: clamp(42px, 4.8vw, 62px); font-family: "Space Grotesk", sans-serif; }
.hero-meta, .eyebrow, .section-label, .mono-number, .project-meta, .project-domain, .section-footnote, .source-note, .timeline-date, .site-footer > span, .scroll-prompt { font-family: "JetBrains Mono", monospace; }
.hero-meta { font-size: 10px; }
.eyebrow, .section-label { font-size: 10px; }
.main-nav a { font-size: 12px; }
.hero-description, .about-copy > p, .section-heading-row > p, .timeline-item div > p, .project-description { font-size: 15px; }
.button-primary, .button-text { font-size: 13px; }
.benefit-item h3, .benefit-item p, .offer-card li { font-size: 14px; }
.timeline-item h3, .education-item h3 { font-size: 20px; }
.project-meta { font-size: 10px; }
.tag-list span { font-size: 11px; }
.contact-main > p { font-size: 15px; }
.contact-details > div > a { font-size: 14px; }
.contact-details > div > p { font-size: 13px; }
.site-footer { font-size: 12px; }
.hero-keyword { display: inline-block; animation: keyword-appear 260ms ease-out both; }
@keyframes keyword-appear { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-grid .project-card { display: flex; min-width: 0; flex-direction: column; gap: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); background: var(--background); transition: border-color 180ms ease, background-color 180ms ease; }
.project-grid .project-card:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.project-grid .project-image-wrap { min-height: 0; aspect-ratio: 356 / 208; }
.project-grid .project-detail { flex: 1; padding: 17px 18px 19px; }
.project-grid .project-meta { gap: 8px; font-size: 9px; }
.project-grid .project-title-line h3 { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.32; }
.project-grid .project-description { margin: 10px 0 14px; font-size: 13px; line-height: 1.75; }
.project-grid .tag-list { margin-top: auto; }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(46px, 5.8vw, 66px); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(46px, 10vw, 70px); }
  .hero-description, .about-copy > p, .section-heading-row > p, .timeline-item div > p { font-size: 15px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-grid .project-detail { padding: 14px; }
  .project-grid .project-description { font-size: 13px; }
}
@media (max-width: 540px) {
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-grid .project-detail { padding: 17px; }
  .project-grid .project-title-line h3 { font-size: 22px; }
  .project-grid .project-description { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-keyword { animation: none; }
}


/* Uporządkowane karty oferty, wykształcenie i panel kontaktowy zgodny z motywem. */
.offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; }
.offer-grid .offer-card { display: flex; min-height: 245px; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--surface); transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.offer-grid .offer-card + .offer-card { padding-left: 24px; border-left: 1px solid var(--line); }
.offer-grid .offer-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.offer-card-heading { display: flex; align-items: center; justify-content: space-between; }
.offer-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 10px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.offer-card .mono-number { color: var(--muted-2); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.offer-grid .offer-card h3 { margin: 19px 0 13px; font-size: 20px; line-height: 1.25; }
.offer-grid .offer-card ul { gap: 7px; }
.offer-grid .offer-card li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.offer-bullet { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--brand); opacity: .78; }

.education-detail { display: flex; align-items: center; gap: 15px; }
.education-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line)); border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.education-detail > div { min-width: 0; }
.education-detail .timeline-org { margin-top: 5px; }

.contact-panel { color: var(--foreground); background: var(--surface); border: 1px solid var(--line); transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
html.dark .contact-panel { color: #f4f3f8; background: #0d0d12; border-color: transparent; }
html:not(.dark) .contact-kicker, html:not(.dark) .contact-details > div > span { color: var(--brand); }
html:not(.dark) .contact-main > p, html:not(.dark) .contact-details > div > p, html:not(.dark) .social-links-footer a { color: var(--muted); }
html:not(.dark) .contact-details > div > a { color: var(--foreground); }
html:not(.dark) .contact-details > div > a:hover { color: var(--brand); }

@media (max-width: 980px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid .offer-card:last-child { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 760px) {
  .offer-grid { grid-template-columns: 1fr; gap: 12px; }
  .offer-grid .offer-card { min-height: 0; padding: 22px; }
  .offer-grid .offer-card + .offer-card { padding-left: 22px; }
  .offer-grid .offer-card:last-child { grid-column: auto; }
  .education-detail { gap: 12px; }
}

.hero-keyword.is-changing { animation: keyword-appear 260ms ease-out both; }
@media (prefers-reduced-motion: reduce) { .hero-keyword, .hero-keyword.is-changing { animation: none !important; } }
