@font-face {
  font-family: Inter;
  src: url("assets/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #102b43;
  --body: #3f5362;
  --muted: #4b626f;
  --paper: #fff;
  --navy: #092139;
  --blue: #26537c;
  --sea: #bcddff;
  --ice: #eaf3fd;
  --line: #cbd9e8;
  --focus-blue: #26609a;
  --button-light: #c1e1ff;
  --button-light-hover: #e4f1ff;
  --serif: "DM Serif Text", "Baskervville", Georgia, "Liberation Serif", serif;
  --edge: clamp(1.25rem, 5.8vw, 6.5rem);
  --content: 82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: 1.25rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.keep-together { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: .18rem solid var(--focus-blue); outline-offset: .28rem; }
.hero :focus-visible, .contact :focus-visible { outline-color: var(--sea); }
main:focus, section[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--sea); color: var(--navy); }
.wrap {
  margin-inline: auto;
  width: min(calc(100% - 2 * var(--edge)), var(--content));
}
.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  transform: translateY(-170%);
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--navy);
}
.skip:focus { transform: none; }
.masthead { position: relative; z-index: 5; background: var(--paper); }
.masthead-inner {
  min-height: 5.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; flex: none; }
.initials {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.1rem;
  height: 2.85rem;
  border-right: 1px solid var(--line);
  padding-right: .64rem;
  font: 500 calc(2.1rem + 1px)/.95 var(--serif);
  letter-spacing: -.19em;
  transform: translateY(-.02rem);
}
.initials span:first-child { align-self: center; transform: translateY(-.19rem); }
.initials span:last-child { transform: translate(-.04rem, .18rem); }
.brand-text { display: grid; gap: .18rem; line-height: 1.16; }
.brand-text strong { font-size: calc(1.13rem + 1px); font-weight: 610; letter-spacing: -.052em; }
.brand-text small { color: #466170; font-size: calc(.76rem + 1px); letter-spacing: .035em; }
.masthead nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.65vw, 2.7rem); }
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: calc(.9rem + 1px);
  line-height: 1.2;
  font-weight: 540;
  text-underline-offset: .32rem;
  white-space: nowrap;
}
.masthead nav a:not(.nav-contact, [aria-current="page"]):hover { color: var(--blue); text-decoration: underline; }
.masthead nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .38rem;
}
.nav-contact {
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: .6rem 1.65rem;
}
.nav-contact:hover { color: white; background: var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #08243b;
  color: #fff;
  min-height: clamp(32rem, 39.5vw, 39.5rem);
}
.hero-photo, .hero::after { position: absolute; inset: 0; }
.hero-photo { z-index: -2; opacity: 0; transition: opacity .5s ease; }
.hero-photo.is-current { opacity: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero::after {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5,22,41,.96) 0%, rgba(6,28,46,.85) 30%, rgba(5,29,49,.50) 48%, rgba(5,25,44,.10) 65%, transparent 83%);
}
.hero-inner { padding-block: clamp(2.8rem, 4.8vw, 5rem); }
.hero-panels { display: grid; align-items: end; }
.hero-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.hero-panel.is-current { visibility: visible; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .78rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 690;
  letter-spacing: .145em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow::before { content: ""; width: 1.9rem; height: 2px; background: currentColor; }
.light-rule { color: var(--sea); }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
.hero-title {
  margin-top: 1.35rem;
  font-size: clamp(4.45rem, 6.8vw, 7.1rem);
  line-height: .96;
  letter-spacing: -.048em;
}
.hero-title-long {
  max-width: min(58%, 48rem);
  font-size: clamp(3.45rem, 4.9vw, 5.45rem);
  line-height: 1.01;
}
.hero-title em, .contact h2 em { color: var(--sea); font-weight: 400; }
.hero-copy {
  max-width: min(52%, 37rem);
  margin-top: 1.48rem;
  color: #e5ecef;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.56;
}
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.75rem;
  margin-top: 1.65rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem 1.8rem;
}
.hero-controls {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-inline: .2rem .5rem;
  border: 1px solid rgb(216 234 255 / .52);
  border-radius: 2px;
  color: white;
  background: rgb(7 28 48 / .85);
}
.hero-controls button {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.hero-controls button:focus-visible { outline-offset: -3px; }
.hero-controls button:hover { background: rgb(193 225 255 / .14); }
.hero-selector::before { content: ""; width: 1.3rem; height: 2px; background: #8497a9; }
.hero-selector[aria-current="true"]::before { height: 4px; background: var(--button-light); }
.hero-playback span { width: .64rem; height: .85rem; border-inline: 3px solid currentColor; }
.hero-playback.is-paused span { width: 0; height: 0; border: 0; border-block: .42rem solid transparent; border-left: .66rem solid currentColor; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 3.05rem;
  padding: .77rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .93rem;
  line-height: 1.35;
  font-weight: 600;
  transition: background-color .17s, color .17s, border-color .17s;
}
.button-light, .contact-form-link { color: var(--navy); background: var(--button-light); }
.button-light:hover, .contact-form-link:hover { background: var(--button-light-hover); }
.button-dark { color: #fff; background: var(--navy); }
.button-dark:hover { background: var(--blue); }
.button-outline { border-color: currentColor; color: inherit; background: transparent; }
.button-outline:hover { color: var(--navy); background: var(--button-light); border-color: var(--button-light); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.5rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: .34rem;
  text-decoration-thickness: 1px;
  text-decoration-color: #829eaa;
  transition: text-decoration-color .17s, color .17s;
}
.text-link:hover { color: var(--blue); text-decoration-color: currentColor; }
.text-link-light { color: #fff; text-decoration-color: #92abb6; }
.text-link-light:hover { color: var(--sea); }

.credential-strip { background: var(--ice); border-bottom: 1px solid var(--line); }
.credentials {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.43fr) minmax(0, 1.25fr);
  padding-block: clamp(1.28rem, 2vw, 2.05rem);
}
.credentials > div { display: flex; flex-direction: column; gap: .25rem; justify-content: center; }
.credentials > div + div { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 4vw, 5rem); }
@media (min-width: 681px) {
  .credentials > div:not(:last-child) { padding-inline-end: clamp(1rem, 2.4vw, 2.2rem); }
}
.credentials .credential-label {
  font-size: .79rem;
  font-weight: 480;
  color: var(--muted);
  line-height: 1.4;
}
.credentials .credential-lead {
  order: -1;
  font: 400 clamp(1.65rem, 2.1vw, 2.18rem)/1.12 var(--serif);
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.section { padding-block: clamp(4.4rem, 7.3vw, 7.6rem); }
h2 { font-size: clamp(2.65rem, 4.25vw, 4.6rem); line-height: 1.05; letter-spacing: -.045em; }
.section-intro h2, .bio-copy h2, .publication-copy h2, .contact h2 { margin-top: 1.05rem; }
.services { display: grid; grid-template-columns: .83fr 1.17fr; align-items: start; gap: clamp(2.5rem, 6vw, 6.5rem); }
.section-intro > p:last-child, .bio-copy > p:not(.eyebrow):not(.bio-role), .publication-copy > p:not(.eyebrow) {
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.72;
}
.section-intro > p:last-child { margin-top: 1.2rem; max-width: 25rem; }
.service-list { border-top: 1px solid var(--line); }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.28rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.32;
  font-weight: 510;
  letter-spacing: -.041em;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary:hover { color: var(--blue); }
.service-list details[open] summary { color: var(--blue); }
.expand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.02rem;
  height: 2.02rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
}
.expand-mark::before, .expand-mark::after { content: ""; width: .7rem; height: 1.5px; background: currentColor; grid-area: 1 / 1; }
.expand-mark::after { transform: rotate(90deg); }
details[open] .expand-mark { background: var(--ice); border-color: var(--ice); }
details[open] .expand-mark::after { transform: none; }
.service-body { margin-top: -.42rem; padding: 0 clamp(1.35rem, 3.2vw, 3.3rem) 1.48rem 0; }
.service-body p { color: var(--body); font-size: 1rem; line-height: 1.65; }

.bio { background: var(--ice); }
.bio-inner { display: grid; grid-template-columns: minmax(0,.74fr) 1.26fr; gap: clamp(2.8rem, 8vw, 8.3rem); align-items: center; padding-block: clamp(3.6rem, 5.7vw, 6rem); }
.portrait-panel { display: grid; place-items: center; }
.portrait-panel picture { display: block; width: min(100%, 21.2rem); }
.portrait-panel img { width: 100%; }
.portrait-round {
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--sea);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.bio-copy { max-width: 39.5rem; }
.bio-role { color: var(--blue); font-size: .92rem; font-weight: 600; margin-top: .7rem; }
.bio-copy > p:not(.eyebrow):not(.bio-role) { margin-top: 1rem; }
.bio-links { display: grid; justify-items: start; margin-top: .75rem; }

.publication { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7.5vw, 8rem); align-items: center; }
.publication-copy h2 em { color: var(--blue); }
.publication-copy > p:not(.eyebrow) { max-width: 34.5rem; margin-top: .95rem; }
.button-format { font-size: .76rem; font-weight: 600; letter-spacing: .07em; padding-left: .7rem; border-left: 1px solid #8ba3af; }
.book-scene {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(21.8rem, 28.5vw, 28rem);
  background: var(--ice);
}
.book-scene::before {
  z-index: -1;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(208,228,248,.75), rgba(225,237,249,.16)), url("assets/farma-wiatrowa.webp") 68% 100% / auto 100% no-repeat, #eef5fe;
}
.book {
  position: relative;
  width: clamp(10rem, 14.7vw, 14.5rem);
  transform: perspective(850px) rotateY(-13deg) rotateZ(-6deg);
  border-radius: 1px 3px 3px 1px;
  border-right: 3px solid #f4f7f8;
  box-shadow: 2px 2px #b6c2c8, 4px 3px #d6e0e3, 6px 4px #95abb3, 12px 18px 22px -5px rgba(6,39,60,.33);
}
.book::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(2,16,27,.32), transparent 2%, rgba(255,255,255,.17) 2.8%, transparent 4.4%); }
.book img { width: 100%; height: auto; }

.contact { color: #fff; background: var(--navy); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(3rem, 7.5vw, 8rem);
  align-items: center;
  padding-block: clamp(3.8rem, 6.25vw, 6rem);
}
.contact h2 { font-size: clamp(3.05rem, 5.1vw, 5.3rem); line-height: 1.02; }
.contact-action { display: grid; gap: 1.65rem; max-width: 31rem; }
.contact-option { display: grid; justify-items: start; gap: .8rem; }
.contact-action p { color: #e0e8ec; font-size: 1.05rem; line-height: 1.65; }
.contact-methods { display: grid; justify-items: start; font-style: normal; }
.contact-methods a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-size: 1.15rem; text-decoration: underline; text-decoration-color: #809bb6; text-underline-offset: .28rem; }
.contact-methods a:hover { color: var(--button-light); text-decoration-color: currentColor; }
.contact-methods .contact-linkedin { font-size: .96rem; }
.linkedin-mark {
  width: 1.16rem;
  height: 1.16rem;
  color: #123452;
  background: var(--button-light);
  border-radius: 2px;
  display: inline-grid;
  place-content: center;
  font: 700 .8rem/1 Inter, sans-serif;
}
.footer { background: #071c30; color: #c6d4db; }
.footer-inner { display: flex; min-height: 4.15rem; align-items: center; justify-content: space-between; gap: 1.3rem; font-size: .83rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .3rem; }
.footer a:hover { color: #fff; text-decoration: underline; }

@media (min-width: 941px) and (max-width: 1140px) {
  .masthead-inner { min-width: min(55rem, calc(100% - 2.5rem)); column-gap: 1rem; }
  .masthead nav { gap: .75rem; }
}
@media (max-width: 960px) {
  .services { grid-template-columns: .8fr 1.2fr; gap: 2.4rem; }
  .hero { min-height: 31.5rem; }
  .hero-copy { max-width: min(56%, 30rem); }
  .bio-inner { gap: 2.8rem; }
  .credentials > div + div { padding-left: 1.55rem; }
}
@media (max-width: 940px) {
  .masthead-inner { min-height: 4.45rem; gap: .8rem; flex-wrap: wrap; }
  .brand { gap: .64rem; }
  .initials { width: 2.8rem; height: 2.55rem; font-size: calc(1.9rem + 1px); }
  .brand-text strong { font-size: calc(1.03rem + 1px); }
  .brand-text small { font-size: calc(.75rem + 1px); }
  .masthead nav { width: 100%; flex-wrap: wrap; gap: .25rem 1.25rem; padding-bottom: .7rem; }
  .has-menu .masthead nav { display: none; }
  .has-menu .masthead nav.is-open {
    display: grid;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .7rem var(--edge) 1.05rem;
    box-shadow: 0 10px 20px -15px #062540;
    background: white;
  }
  .has-menu .masthead nav a { padding: .65rem .25rem; }
  .has-menu .masthead nav .nav-contact { justify-content: flex-start; border: 0; background: none; color: var(--blue); }
  .menu-toggle { display: inline-flex; align-items: center; gap: .52rem; padding: .55rem 0 .55rem .5rem; min-height: 2.75rem; font-size: calc(.92rem + 1px); font-weight: 580; }
  .menu-symbol { position: relative; width: 1.22rem; height: .64rem; border-block: 1.5px solid currentColor; }
  .menu-toggle[aria-expanded="true"] .menu-symbol { border: 0; }
  .menu-toggle[aria-expanded="true"] .menu-symbol::before,
  .menu-toggle[aria-expanded="true"] .menu-symbol::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transform: rotate(38deg); }
  .menu-toggle[aria-expanded="true"] .menu-symbol::after { transform: rotate(-38deg); }
}
@media (max-width: 760px) {
  :root { --edge: clamp(1.25rem, 5.5vw, 2.5rem); }
  .services, .bio-inner, .publication, .contact-inner { grid-template-columns: 1fr; }
  .services { gap: 1.8rem; }
  .section { padding-block: 3.6rem; }
  .section-intro > p:last-child { margin-top: .85rem; max-width: 36rem; }
  .service-list summary { font-size: 1.12rem; padding-block: 1rem; }
  .bio-inner { grid-template-columns: minmax(8rem,.48fr) 1fr; align-items: start; gap: 1.5rem; }
  .bio-copy h2 { font-size: 2.7rem; }
  .publication { gap: 1.85rem; }
  .book-scene { min-height: 20rem; }
  .book { width: 10.4rem; }
  .contact-inner { gap: 1.3rem; }
  .contact-action { max-width: 36rem; }
}
@media (max-width: 680px) {
  .hero { min-height: auto; align-items: end; }
  .hero-photo { height: 75%; }
  .hero-photo img { object-position: center 33%; }
  .hero-photo-atrium {
    height: clamp(12.5rem, 62vw, 24rem);
    mask-image: linear-gradient(to bottom, #000 62%, transparent);
  }
  .hero-photo-atrium img { object-position: center bottom; }
  .hero::after {
    background: linear-gradient(0deg,#08243b 8%,rgba(8,36,59,.98) 29%,rgba(6,28,45,.72) 62%,rgba(6,28,45,.04) 90%),linear-gradient(90deg,rgba(6,26,45,.45),transparent 88%);
  }
  .hero-inner { padding-block: clamp(7.8rem, 37vw, 14rem) 2.55rem; }
  .hero-title { font-size: clamp(3.45rem, 11.5vw, 5rem); line-height: .98; margin-top: 1rem; }
  .hero-title-long { max-width: 100%; font-size: clamp(2.55rem, 8.3vw, 3.85rem); line-height: 1.04; }
  .hero-copy { max-width: 27rem; margin-top: 1.12rem; font-size: 1rem; line-height: 1.55; }
  .hero-bottom { margin-top: 1.3rem; }
  .hero-actions { gap: .5rem 1.15rem; }
  .hero-actions .button { padding-inline: 1.22rem; }
  .hero-actions .text-link { font-size: .88rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .105em; }
  .credentials { grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr); padding-block: 1.15rem; }
  .credentials > div { padding-right: .5rem; justify-content: start; }
  .credentials > div + div { padding-left: .72rem; }
  .credentials > div:last-child { grid-column: 1 / -1; margin-top: .8rem; padding: .8rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .credentials .credential-lead { font-size: clamp(1.25rem, 4.4vw, 1.7rem); }
  .credentials .credential-label { font-size: .8rem; line-height: 1.35; }
  .bio-inner { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 3.1rem; }
  .portrait-panel { place-items: start; }
  .portrait-panel picture { width: 9.6rem; }
  .bio-copy h2 { margin-top: .8rem; }
  .contact h2 { font-size: clamp(2.8rem, 9.5vw, 4.1rem); }
  .contact-inner { padding-block: 3.2rem; }
}
@media (max-width: 540px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .credentials { grid-template-columns: 1fr; }
  .credentials > div + div, .credentials > div:last-child {
    grid-column: auto;
    margin-top: .7rem;
    padding: .7rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 360px) {
  .masthead-inner { width: calc(100% - 1.5rem); column-gap: .35rem; }
  .brand { gap: .4rem; }
  .menu-toggle { padding-left: 0; }
  .hero-title { font-size: 3.04rem; }
  .hero-title-long { font-size: 2.45rem; }
  .hero-inner { padding-top: 6.5rem; }
  .hero .eyebrow { gap: .48rem; }
  .hero .eyebrow::before { width: 1rem; }
  .hero-actions { gap: .45rem .88rem; }
  .hero-actions .button { padding-inline: .85rem; }
  .footer-inner { flex-wrap: wrap; gap: .15rem 1rem; padding-block: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
