@font-face {
  font-family: 'Hepta Slab';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/hepta-slab-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poltawski Nowy';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/poltawski-nowy-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poltawski Nowy';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poltawski-nowy-italic-latin.woff2') format('woff2');
}

:root {
  --paper: #eef0ec;
  --paper-2: #f7f8f4;
  --water: #7f8f92;
  --water-dark: #5c6a6c;
  --fibre: #d8cdb8;
  --ink: #2f3436;
  --ink-deep: #1b2021;
  --display: 'Hepta Slab', Georgia, 'Times New Roman', serif;
  --body: 'Poltawski Nowy', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
}

p {
  margin: 0 0 1.1rem;
}

a {
  color: var(--ink);
}

/* header */

.masthead {
  border-bottom: 1px solid var(--fibre);
  background: var(--paper);
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 1.5px;
  background: var(--ink);
}

.brand-mark::before {
  left: -8px;
}

.brand-mark::after {
  right: -8px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.55rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #111617;
  border-bottom-color: var(--water);
}

.main-nav a.is-current {
  border-bottom-color: var(--ink);
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.035em;
  line-height: 1.3;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.8rem 1.35rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--ink-deep);
  color: #ffffff;
}

.main-nav a.btn {
  background: var(--ink);
  color: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 0.62rem 1.1rem;
  border-bottom: 1px solid var(--ink);
}

.main-nav a.btn:hover {
  background: var(--ink-deep);
  color: #ffffff;
  border-color: var(--ink-deep);
  border-bottom-color: var(--ink-deep);
}

/* hero */

.hero {
  padding: 3.2rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.82fr;
  gap: 3.4rem;
  align-items: end;
}

.hero-copy {
  padding-bottom: 2.6rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--water-dark);
}

.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.9rem, 6vw, 5.3rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 34ch;
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.hero-body {
  max-width: 46ch;
  color: #3d4749;
  margin: 0 0 1.9rem;
}

.hero-shot {
  margin: 0;
  max-width: 460px;
  justify-self: end;
  padding: 0.68rem;
  background: var(--paper-2);
  border: 1px solid var(--fibre);
  box-shadow: 0 30px 60px -38px rgba(47, 52, 54, 0.65);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.fibre-band {
  height: 26px;
  margin-top: 2.4rem;
  border-top: 1px solid var(--fibre);
  border-bottom: 1px solid var(--fibre);
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 52, 54, 0.2) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(127, 143, 146, 0.28) 0 1px, transparent 1px 23px);
  background-size: 7px 100%, 23px 100%;
}

.fibre-band--thin {
  height: 13px;
  margin-top: 0;
}

/* sections */

.section {
  padding: 3.5rem 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.95rem;
  margin-bottom: 1.5rem;
}

.sec-head--center {
  justify-content: center;
}

.sec-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.sec-num::before,
.sec-num::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--ink);
}

.sec-num::before {
  left: -10px;
}

.sec-num::after {
  right: -10px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

/* partners */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  gap: 1.5rem 2.6rem;
  justify-content: center;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 150px;
  padding: 0.55rem;
  background: var(--paper-2);
  border: 1px solid var(--fibre);
  transition: border-color 0.15s ease;
}

.partner-card:hover {
  border-color: var(--water);
}

.partner-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* quick profile */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--fibre);
}

.quick-card {
  padding-left: 1.4rem;
  border-left: 1px solid var(--fibre);
}

.quick-card:first-child {
  padding-left: 0;
  border-left: 0;
}

.qk {
  margin: 0;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--water-dark);
}

.qv {
  margin: 0.35rem 0 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.qn {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--water-dark);
}

/* about */

.about-body {
  max-width: 62ch;
  margin-inline: auto;
}

.about-body p {
  font-size: 1.04rem;
}

.about-body p:first-child::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.78;
}

/* career timeline */

.career-intro {
  max-width: 62ch;
  margin: 0 0 2rem;
  color: var(--water-dark);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 5px;
  width: 1px;
  background: var(--fibre);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.3rem;
  padding: 0 0 1.55rem 2.1rem;
  align-items: baseline;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.roller {
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.roller::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transform: translateY(-50%);
}

.t-year {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.timeline p {
  margin: 0;
}

/* gallery */

.gallery-note {
  max-width: 58ch;
  margin: -0.4rem 0 1.8rem;
  color: var(--water-dark);
  font-size: 0.94rem;
}

.plates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  max-width: 900px;
}

.plate {
  margin: 0;
  padding: 0.5rem;
  background: var(--paper-2);
  border: 1px solid var(--fibre);
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 26%;
}

.plate:nth-child(4) {
  grid-column: 2;
}

/* credit line */

.credit-band {
  padding: 1.15rem 0;
  background: var(--paper-2);
  border-top: 1px solid var(--fibre);
  border-bottom: 1px solid var(--fibre);
}

.credit-line p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--water-dark);
}

.credit-line a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* subpage head and prose */

.page-head {
  padding: 3.3rem 0 0;
}

.page-head .wrap {
  max-width: 1040px;
}

.page-head h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.standfirst {
  max-width: 60ch;
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #3d4749;
}

.prose {
  max-width: 64ch;
}

.prose h2 {
  margin: 2.7rem 0 0.9rem;
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

.prose h2:first-child {
  margin-top: 0;
}

.bio-section:first-child p:first-of-type::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  font-family: var(--display);
  font-size: 3.3rem;
  font-weight: 700;
  line-height: 0.78;
}

.block-title {
  margin: 3.4rem 0 1.3rem;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 700;
}

.timeline--wide {
  max-width: 860px;
}

.studio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-list li {
  padding: 0.42rem 0.8rem;
  background: var(--paper-2);
  border: 1px solid var(--fibre);
  font-size: 0.88rem;
}

/* filmography */

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

.count {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.count-n {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.count-k {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.count-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--water-dark);
}

.credit-list {
  max-width: 880px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fibre);
}

.credit-list li {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--fibre);
  align-items: baseline;
}

.cr-year {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--water-dark);
}

.cr-title {
  font-size: 0.99rem;
}

.cr-note {
  font-size: 0.8rem;
  text-align: right;
  color: var(--water-dark);
}

.tv-text {
  max-width: 760px;
  font-size: 0.96rem;
}

.note-block {
  max-width: 720px;
  margin-top: 2.6rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--water);
}

.note-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.note-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--water-dark);
}

/* faq */

.faq-list {
  max-width: 820px;
}

.faq-item {
  padding: 1.45rem 0;
  border-top: 1px solid var(--fibre);
}

.faq-q {
  margin: 0 0 0.55rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  font-weight: 600;
  line-height: 1.3;
}

.faq-item p {
  max-width: 68ch;
  margin: 0;
  color: #3d4749;
}

/* footer */

.site-footer {
  margin-top: 3.6rem;
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}

.fb-name {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--paper-2);
}

.fb-line {
  max-width: 32ch;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c7cfcc;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.language-nav a {
  padding-bottom: 2px;
  color: #dfe5e1;
  font-size: 0.84rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.language-nav a:hover {
  color: #ffffff;
  border-bottom-color: var(--fibre);
}

.language-nav a.is-current {
  color: #ffffff;
  border-bottom-color: var(--fibre);
}

.footer-right {
  margin: 0;
  font-size: 0.78rem;
  color: #c7cfcc;
  text-align: right;
}

.footer-simple {
  padding: 1.6rem 0;
}

.footer-simple .footer-right {
  text-align: left;
}

/* 404 */

.error-main {
  display: flex;
  align-items: center;
  min-height: 58vh;
  padding: 3rem 0;
}

.error-code {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--fibre);
}

.error-box h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

/* responsive */

@media (max-width: 1020px) {
  .partner-grid {
    grid-template-columns: repeat(2, 250px);
  }

  .hero-grid {
    gap: 2.4rem;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-shot {
    max-width: 100%;
    justify-self: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: left;
  }

  .language-nav {
    justify-content: flex-start;
  }

  .footer-right {
    text-align: left;
  }

  .quick-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-card {
    padding-left: 0;
    padding-top: 1.2rem;
    border-left: 0;
    border-top: 1px solid var(--fibre);
  }

  .quick-card:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .counts {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .masthead-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .main-nav {
    gap: 0.3rem 1.1rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

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

  .partner-card {
    width: 100%;
    height: auto;
    aspect-ratio: 250 / 150;
  }

  .plates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .plate:nth-child(4) {
    grid-column: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline p {
    padding-left: 0;
  }

  .credit-list li {
    grid-template-columns: 48px 1fr;
    gap: 0.8rem;
  }

  .cr-note {
    grid-column: 2;
    text-align: left;
  }

  .section {
    padding: 2.7rem 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .page-head {
    padding-top: 2.4rem;
  }
}

@media (max-width: 460px) {
  .plates {
    grid-template-columns: 1fr;
  }
}

/* subpage column */
.subpage .wrap {
  max-width: 1040px;
}
