@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --cloud: #f4f6f8;
  --white: #fff;
  --navy: #172b3b;
  --slate: #526474;
  --mist: #d9e1e7;
  --steel: #b4c8d9;
  --max-width: 1200px;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--cloud); color: var(--navy); font-family: Onest, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--steel); color: var(--navy); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #537c9c; outline-offset: 6px; border-radius: 3px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
p { text-wrap: pretty; }
.wrap { width: min(var(--max-width), calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 14px 22px; transform: translateY(-150%); background: var(--navy); color: var(--white); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 112px; }
.wordmark { font-size: 33px; font-weight: 600; letter-spacing: -2px; line-height: 1; padding-block: 10px; }
.wordmark span { color: #637c8e; }
.site-header nav { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.site-header nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; }
.site-header nav a::after { content: ""; position: absolute; inset: auto 0 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 700ms var(--ease-out); }
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-linkedin { margin-left: 16px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 62px; padding-top: 36px; padding-bottom: 48px; }
.hero-copy { padding-top: 28px; }
.hero h1 { container-type: inline-size; font-weight: 500; line-height: 1.08; }
.hero h1 span { display: block; font-size: min(64px, 10cqi); letter-spacing: -0.06em; }
.hero h1 .name-last { white-space: nowrap; }
.hero-description { max-width: 490px; margin-top: 32px; color: var(--slate); font-size: 17px; line-height: 1.7; }
.linkedin-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 56px; padding: 16px 23px; margin-top: 31px; background: var(--navy); color: var(--white); border: 1px solid var(--navy); border-radius: 3px; font-size: 14px; font-weight: 500; transition: background 500ms var(--ease-out), border-color 500ms var(--ease-out); }
.linkedin-button:hover { background: #2e4a60; border-color: #2e4a60; }
.linkedin-button .external-icon { margin-left: 10px; opacity: .7; }
.hero-more { position: relative; display: flex; width: fit-content; align-items: center; gap: 12px; margin-top: 22px; padding-block: 8px; color: var(--slate); font-size: 15px; transition: color 500ms var(--ease-out); }
.hero-more::after { content: ""; position: absolute; inset: auto 0 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 700ms var(--ease-out); }
.hero-more:hover { color: var(--navy); }
.hero-more:hover::after { transform: scaleX(1); }
.hero-more svg { transition: translate 600ms var(--ease-out); }
.hero-more:hover svg { translate: 3px 0; }
.external-icon, .profile-link-icon svg, .read-more svg { transition: translate 600ms var(--ease-out); }
a:hover .external-icon, .profile-link:hover .profile-link-icon svg { translate: 2px -2px; }
.read-more:hover svg { translate: 0 3px; }
.hero-portrait { width: 100%; max-width: 440px; justify-self: end; }
.hero-portrait picture { display: block; background: #c6c9c4; overflow: hidden; border-radius: 3px; }
.hero-portrait img { width: 100%; height: 568px; object-fit: cover; object-position: 50% 0; }
.hero-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 32px; margin-top: 40px; }
.hero-foot::after { content: ""; flex: 1; height: 1px; background: var(--mist); }
.read-more { display: inline-flex; align-items: center; gap: 20px; padding-block: 10px; color: var(--slate); font-size: 13px; transition: color 500ms var(--ease-out); }
.read-more:hover { color: var(--navy); }

.about-section { padding-block: 100px 104px; background: var(--white); }
.about-opening { display: grid; grid-template-columns: 1fr 1.22fr; gap: 90px; }
.about-opening h2 { font-size: clamp(36px, 3.5vw, 48px); letter-spacing: -0.055em; line-height: 1.15; }
.company-logo { display: block; width: 360px; max-width: 100%; margin-left: -26px; }
.company-logo img { width: 100%; height: auto; }
.about-description p { max-width: 590px; }
.text-link { color: var(--navy); text-decoration: underline; text-decoration-color: #a8b8c3; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--navy); }
.section-lead { font-size: 25px; letter-spacing: -0.025em; line-height: 1.5; }
.about-description p + p { margin-top: 23px; color: var(--slate); font-size: 16px; line-height: 1.8; }
.perspectives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; margin-top: 72px; }
.perspectives article, .private-list article { position: relative; padding-top: 26px; view-timeline: --rule; }
.perspectives article::before, .private-list article::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--mist); }
.perspectives h3 { margin-bottom: 18px; font-size: 21px; letter-spacing: -0.025em; }
.perspectives p { color: var(--slate); font-size: 15px; line-height: 1.8; }

.thinking-section, .mission-section { position: relative; isolation: isolate; padding-block: 96px; color: var(--white); background: var(--navy); }
.thinking-section::before, .mission-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: .5; pointer-events: none; }
.thinking-layout { display: grid; grid-template-columns: 1fr 1.22fr; align-items: center; gap: 90px; }
.thinking-portrait { display: block; max-width: 370px; overflow: hidden; border-radius: 3px; }
.thinking-portrait img { width: 100%; height: 480px; object-fit: cover; object-position: 50% 48%; }
.thinking-copy { max-width: 550px; }
.thinking-copy h2 { margin-bottom: 30px; font-size: clamp(40px, 4.2vw, 58px); letter-spacing: -0.055em; line-height: 1.1; }
.thinking-copy p { max-width: 510px; color: #c5d2dc; font-size: 15px; line-height: 1.8; }
.thinking-copy .thinking-lead { margin-bottom: 24px; color: var(--white); font-size: 22px; line-height: 1.5; letter-spacing: -0.02em; }
.thinking-copy p + p { margin-top: 18px; }
.thinking-copy .thinking-note { margin-top: 29px; padding-top: 24px; border-top: 1px solid #3d5262; color: var(--steel); }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--slate); font-size: 13px; font-weight: 500; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.bio-role { margin-top: 22px; font-size: 18px; letter-spacing: -0.015em; }
.bio-role span { margin-inline: 6px; color: var(--slate); }
.bio-portrait img { object-position: 50% 30%; }
.mission-section { padding-block: 120px; }
.mission-section .eyebrow { margin-bottom: 40px; color: var(--steel); }
.mission-statement { max-width: 1000px; font-size: clamp(30px, 3.7vw, 52px); font-weight: 500; line-height: 1.24; letter-spacing: -0.04em; }
.mission-statement em { padding-bottom: .06em; font-style: normal; background: linear-gradient(var(--steel), var(--steel)) no-repeat right bottom / 100% 1px; }
.private-section { padding-block: 104px; background: var(--white); }
.private-layout { display: grid; grid-template-columns: 1fr 1.22fr; align-items: center; gap: 90px; }
.private-portrait { display: block; max-width: 370px; overflow: hidden; border-radius: 3px; }
.private-portrait img { width: 100%; height: 480px; object-fit: cover; object-position: 50% 15%; }
.private-copy h2 { margin-bottom: 40px; font-size: clamp(36px, 3.5vw, 48px); letter-spacing: -0.055em; line-height: 1.15; }
.private-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.private-list article { padding-top: 22px; }
.private-list h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: -0.02em; }
.private-list p { color: var(--slate); font-size: 15px; line-height: 1.7; }
.private-coda { max-width: 520px; margin-top: 48px; font-size: 22px; line-height: 1.5; letter-spacing: -0.02em; }

.connection { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 95px 90px; }
.connection h2 { font-size: clamp(35px, 3.5vw, 48px); letter-spacing: -0.055em; line-height: 1.2; }
.profile-link { display: flex; align-items: center; gap: 32px; font-size: 19px; font-weight: 500; }
.profile-link-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #a8b8c3; border-radius: 50%; transition: background 500ms var(--ease-out), color 500ms var(--ease-out), border-color 500ms var(--ease-out); }
.profile-link:hover .profile-link-icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px 34px; border-top: 1px solid var(--mist); color: var(--slate); font-size: 13px; }
.site-footer a { display: inline-flex; align-items: center; gap: 12px; padding-block: 9px; }
.site-footer a:hover { color: var(--navy); }

@keyframes reveal-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes settle { from { scale: 1.1; } to { scale: 1; } }
@keyframes draw-rtl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes underline-rtl { from { background-size: 0 1px; } to { background-size: 100% 1px; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-out { to { clip-path: inset(0 100% 0 0); visibility: hidden; } }

/* Ekran powitalny „jam.”: raz na wizytę, tylko gdy skrypt w <head> doda klasę .intro */
.intro-screen { display: none; }
html.intro .intro-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--navy); animation: intro-out .9s 1.25s var(--ease-curtain) forwards; }
.intro-mark { position: relative; color: var(--white); font-size: clamp(56px, 9vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -0.06em; opacity: 0; animation: fade-in .7s .1s var(--ease-out) forwards; }
.intro-mark span { color: var(--steel); opacity: 0; animation: fade-in .5s .45s var(--ease-out) forwards; }
.intro-mark::after { content: ""; position: absolute; inset: auto 0 -18px; height: 1px; background: var(--steel); transform: scaleX(0); transform-origin: right; animation: draw-rtl .9s .35s var(--ease-curtain) forwards; }
html.intro .hero-portrait picture, html.intro .hero-portrait img { animation-delay: 1.5s; }
html.intro .hero-foot::after { animation-delay: 2s; }

/* Przejście między stronami: nowa strona odsłania się od prawej, nagłówek zostaje na miejscu */
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: reveal-rtl .8s var(--ease-curtain) both; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-portrait picture { animation: reveal-rtl 1.5s var(--ease-curtain) both; }
  .hero-portrait img { animation: settle 2.6s var(--ease-out) both; }
  .hero-foot::after { transform-origin: right; animation: draw-rtl 1.6s .5s var(--ease-curtain) both; }

  @supports (animation-timeline: view()) {
    .perspectives article::before, .private-list article::before { transform-origin: right; animation: draw-rtl linear both; animation-timeline: --rule; animation-range: entry 20% cover 30%; }
    .thinking-portrait, .private-portrait { animation: reveal-rtl var(--ease-curtain) both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .thinking-portrait img, .private-portrait img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .mission-statement em { animation: underline-rtl var(--ease-curtain) both; animation-timeline: view(); animation-range: entry 40% cover 40%; }
  }
}

@media (min-width: 1600px) {
  .site-header { min-height: 130px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
}

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 80px); }
  .hero { column-gap: 34px; }
  .hero-portrait img { height: 520px; }
  .hero-description { font-size: 16px; }
  .about-opening, .thinking-layout, .private-layout { gap: 50px; grid-template-columns: 1fr 1.35fr; }
  .perspectives { gap: 36px; }
  .thinking-portrait img, .private-portrait img { height: 440px; }
  .private-list { gap: 32px; }
}

@media (max-width: 850px) and (min-width: 721px) {
  .hero { column-gap: 26px; }
  .hero-description { font-size: 15px; }
  .hero-portrait img { height: 490px; }
  .hero-copy { padding-top: 14px; }
  .linkedin-button { padding-inline: 18px; gap: 10px; font-size: 12px; }
  .linkedin-button .external-icon { margin-left: 0; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 88px; }
  .wordmark { font-size: 30px; }
  .site-header nav { gap: 24px; font-size: 13px; }
  .site-header nav .nav-section { display: none; }
  .nav-linkedin { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 23px; padding-bottom: 36px; }
  .hero-copy { padding-top: 0; }
  .hero-description { max-width: 440px; margin-top: 25px; font-size: 16px; }
  .linkedin-button { margin-top: 24px; }
  .hero-portrait { max-width: none; margin-top: 38px; }
  .hero-portrait img { height: auto; aspect-ratio: 4 / 4.8; }
  .hero-foot { margin-top: 24px; }
  .about-section { padding-block: 64px; }
  .about-opening { grid-template-columns: 1fr; gap: 30px; }
  .about-opening h2 { font-size: 36px; }
  .company-logo { width: 300px; margin-left: -18px; }
  .section-lead { font-size: 23px; }
  .about-description p + p { margin-top: 19px; font-size: 15px; }
  .perspectives { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .perspectives article { padding-top: 22px; }
  .perspectives h3 { margin-bottom: 12px; }
  .perspectives p { max-width: 520px; }
  .thinking-section { padding-block: 64px; }
  .thinking-layout { grid-template-columns: 1fr; gap: 38px; }
  .thinking-copy { grid-row: 1; }
  .thinking-copy h2 { font-size: 43px; margin-bottom: 27px; }
  .thinking-copy .thinking-lead { font-size: 21px; }
  .thinking-portrait { max-width: none; }
  .thinking-portrait img { height: auto; aspect-ratio: 4 / 4.5; object-position: 50% 40%; }
  .eyebrow { margin-bottom: 20px; font-size: 12px; }
  .bio-role { margin-top: 16px; font-size: 16px; }
  .mission-section { padding-block: 72px; }
  .mission-section .eyebrow { margin-bottom: 28px; }
  .mission-statement { font-size: 30px; line-height: 1.3; }
  .private-section { padding-block: 64px; }
  .private-layout { grid-template-columns: 1fr; gap: 38px; }
  .private-copy { grid-row: 1; }
  .private-copy h2 { margin-bottom: 28px; font-size: 36px; }
  .private-list { grid-template-columns: 1fr; gap: 24px; }
  .private-coda { margin-top: 36px; font-size: 20px; }
  .private-portrait { max-width: none; }
  .private-portrait img { height: auto; aspect-ratio: 4 / 4.5; }
  .connection { flex-direction: column; align-items: start; gap: 31px; padding-block: 64px 54px; }
  .connection h2 { font-size: 36px; }
  .profile-link { gap: 24px; font-size: 17px; }
  .profile-link-icon { width: 48px; height: 48px; }
  .site-footer { flex-direction: column; align-items: start; gap: 9px; padding-block: 24px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 40px); }
  .site-header nav { gap: 17px; font-size: 12px; }
  .linkedin-button { padding-inline: 17px; gap: 10px; font-size: 12px; }
}

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