:root {
  --bg: #edf1e6;
  --ink: #1a1815;
  --gray: #575247;
  --olive: #65652c;
  --line: #dde2d1;
  --panel: #f6f8f0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Libertinus Sans', 'Iowan Old Style', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.76;
  font-weight: 400;
}

img { max-width: 100%; }

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.wrap {
  width: min(880px, 100% - 64px);
  margin: 0 auto;
}

.comb { color: var(--gray); display: block; }
.comb .cap { stroke: var(--olive); }

/* Header */

.site-head { padding-top: 22px; }

.head-row {
  display: flex;
  align-items: baseline;
  gap: 26px;
}

.brand {
  font-family: 'Slabo 13px', Georgia, serif;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: flex-end;
}

.main-nav a {
  font-family: 'Libertinus Sans', Georgia, serif;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}

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

.main-nav a.btn {
  color: var(--bg);
  background: var(--olive);
  border: 0;
  padding: 10px 16px 11px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav a.btn:hover {
  color: var(--bg);
  background: var(--ink);
  border: 0;
}

.head-rule {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-top: 16px;
}

.head-rule .comb {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* Hero */

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 0 0;
  text-align: center;
}

.kicker {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero-photo {
  display: block;
  width: 620px;
  max-width: 100%;
  height: clamp(520px, 66vh, 930px);
  margin: 16px auto 0;
  object-fit: cover;
  object-position: 50% 10%;
  background: var(--panel);
}

.hero-rule {
  width: 620px;
  max-width: 100%;
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero-title {
  margin: 24px 0 0;
  font-family: 'Slabo 13px', Georgia, serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.10;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero-title span { display: block; }

.hero-mark {
  position: absolute;
  right: -40px;
  top: calc(100% + 20px);
  height: 20px;
}

.hero-lead {
  max-width: 34ch;
  margin: 18px auto 0;
  font-size: 16.5px;
  line-height: 1.76;
}

.hero-cta { margin-top: 22px; }

.btn {
  display: inline-block;
  background: var(--olive);
  color: var(--bg);
  padding: 14px 26px 15px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-active {
  margin: 40px 0 0;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Section headings */

.sec-head {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
}

.sec-num { color: var(--olive); }

/* Partners */

.partners { padding-top: 38px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 412px);
  column-gap: 56px;
  row-gap: 36px;
  margin-top: 32px;
  justify-content: center;
}

.partner-card {
  display: block;
  width: 412px;
  text-decoration: none;
  color: var(--ink);
}

.partner-num {
  display: block;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.partner-card:first-child .partner-num { color: var(--olive); }

.partner-logo {
  display: block;
  width: 84px;
  height: 50px;
  margin-top: 8px;
  object-fit: contain;
  background: var(--panel);
}

.partner-name {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.partner-card:hover .partner-name { color: var(--olive); }

/* Quick profile */

.profile {
  margin-top: 62px;
  padding-top: 0;
}

.profile-rows { margin-top: 26px; }

.profile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.profile-row:last-child { border-bottom: 1px solid var(--line); }

.profile-cell {
  position: relative;
  padding: 17px 20px 18px;
  border-left: 1px solid var(--line);
}

.profile-cell:first-child { border-left: 0; }

.profile-value {
  font-family: 'Slabo 13px', Georgia, serif;
  font-size: 15px;
  line-height: 1.3;
}

.profile-label {
  margin-left: 8px;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.profile-cell .comb {
  position: absolute;
  right: 4px;
  bottom: 4px;
}

/* About */

.about {
  position: relative;
  max-width: 560px;
  margin: 62px auto 0;
}

.about h2 {
  margin: 0 0 12px;
  font-family: 'Slabo 13px', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.about p {
  max-width: 52ch;
  margin: 0 0 18px;
}

.about > .comb {
  position: absolute;
  right: -64px;
  top: 54px;
}

.record {
  border: 1px solid var(--line);
  padding: 20px;
  margin-top: 26px;
}

.record-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.record-row + .record-row { margin-top: 6px; }

.record-key {
  text-transform: uppercase;
  color: var(--gray);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding-top: 2px;
}

.notes {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray);
}

.notes p { margin: 0 0 6px; max-width: 74ch; }

/* Career timeline */

.career { margin-top: 62px; }

.career .sec-head { text-align: left; }

.tl { max-width: 620px; margin-top: 24px; }

.tl-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  font-size: 13px;
  line-height: 32px;
  min-height: 32px;
}

.tl-year { color: var(--ink); }
.tl-year.hl { color: var(--olive); }

.tl-gap { position: relative; height: 28px; }

.tl-gap .comb {
  position: absolute;
  right: 0;
  top: 4px;
}

/* Gallery */

.gallery { margin-top: 62px; }

.gallery .sec-head { text-align: left; }

.gal-grid {
  display: grid;
  grid-template-columns: 420px 360px;
  column-gap: 32px;
  align-items: start;
  margin-top: 26px;
}

.gal-col-right { padding-top: 60px; }

.gal-item {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  padding: 0;
  margin: 0 0 24px;
  background: var(--panel);
}

.gal-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 1px;
  height: 5px;
  background: var(--olive);
}

.gal-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gal-item.w300 { width: 300px; }

/* Social */

.social { max-width: 620px; margin: 62px auto 0; }

.social-rows { margin-top: 22px; }

.social-row {
  display: grid;
  grid-template-columns: 130px 1fr 100px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.social-row:last-child { border-bottom: 1px solid var(--line); }

.social-platform {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.social-handle { font-size: 12px; letter-spacing: 0.02em; }

.social-status {
  font-size: 11px;
  color: var(--gray);
  text-align: right;
}

a.social-row:hover .social-handle { color: var(--olive); }

.social-db {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 12px;
}

.social-db a { text-decoration: none; border-bottom: 1px solid var(--line); }
.social-db a:hover { color: var(--olive); border-bottom-color: var(--olive); }

/* Footer */

.footer { margin-top: 74px; padding-bottom: 40px; }

.footer-rule {
  position: relative;
  width: 120px;
  height: 1px;
  background: var(--line);
  margin-bottom: 34px;
}

.footer-rule .comb {
  position: absolute;
  left: 108px;
  bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 44px;
  align-items: center;
}

.footer-brand {
  font-family: 'Slabo 13px', Georgia, serif;
  font-size: 15px;
  line-height: 1.3;
}

.footer-desc {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--gray);
}

.lang {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-align: center;
}

.lang a {
  color: var(--gray);
  text-decoration: none;
  padding: 0 2px;
}

.lang a:hover { color: var(--olive); }

.lang .cur { color: var(--ink); }

.footer-copy {
  font-size: 11px;
  line-height: 1.5;
  color: var(--gray);
  text-align: right;
  white-space: nowrap;
}

.footer-assets {
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray);
}

.footer-assets p { margin: 0; }

/* Subpages */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 56px;
}

.page h1 {
  margin: 14px 0 0;
  font-family: 'Slabo 13px', Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

.page-lead {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 17.5px;
  line-height: 1.7;
}

.page section {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page h2 {
  margin: 0 0 12px;
  font-family: 'Slabo 13px', Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.25;
}

.page h3 {
  margin: 22px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.page p { margin: 0 0 15px; max-width: 64ch; }

.page p:last-child { margin-bottom: 0; }

.fact-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin: 4px 0 0;
  font-size: 13.5px;
}

.fact-list dt,
.fact-list dd {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 12px;
}

.film-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.55;
}

.film-table th {
  padding: 0 14px 8px 0;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.film-table td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.film-table .c-date { white-space: nowrap; width: 108px; }
.film-table .c-studio { width: 190px; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0 20px;
}

.faq-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.faq-item p { margin: 0; max-width: 66ch; }

.page .comb-line {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

/* 404 */

.notfound {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 84px;
}

.notfound h1 {
  font-family: 'Slabo 13px', Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.12;
  margin: 12px 0 0;
}

.notfound p { max-width: 46ch; }

/* Responsive */

@media (max-width: 1024px) {
  .hero-photo { width: 520px; height: 780px; }
  .hero-rule { width: 520px; }
  .hero-title { font-size: 46px; }
  .about > .comb { right: -34px; }
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
  .partner-card { width: 100%; }
  .gal-grid { grid-template-columns: 1fr; max-width: 520px; }
  .gal-col-right { padding-top: 0; }
  .gal-item { width: 100% !important; }
  .gal-item.w300 { width: 300px !important; }
  .social { max-width: 100%; }
  .footer-grid { gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, 560px); }
  .site-head { padding-top: 16px; }
  .head-row { flex-wrap: wrap; gap: 10px 16px; }
  .main-nav {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 6px 16px;
  }
  .main-nav a { font-size: 12px; }
  .main-nav a.btn { margin-top: 6px; }
  .hero { padding-top: 22px; }
  .hero-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    margin-top: 14px;
  }
  .hero-rule { width: 100%; }
  .hero-title { font-size: 40px; }
  .hero-mark { right: 0; top: calc(100% + 14px); }
  .hero-lead { margin-top: 14px; }
  .hero-active { margin-top: 30px; }
  .partners { padding-top: 40px; }
  .partner-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .profile { margin-top: 48px; }
  .profile-row { grid-template-columns: 1fr; }
  .profile-cell { border-left: 0; border-top: 1px solid var(--line); }
  .profile-cell:first-child { border-top: 0; }
  .profile-cell .comb { display: none; }
  .about { margin-top: 48px; }
  .about > .comb { display: none; }
  .about h2 { font-size: 26px; }
  .record { padding: 16px; }
  .record-row { grid-template-columns: 1fr; gap: 0; }
  .record-row + .record-row { margin-top: 10px; }
  .career, .gallery, .social { margin-top: 48px; }
  .tl-row { grid-template-columns: 48px 1fr; }
  .gal-item { margin-bottom: 20px; }
  .social-row {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding: 12px 0;
  }
  .social-platform { grid-column: 1; }
  .social-handle { grid-column: 1; }
  .social-status { grid-column: 2; grid-row: 1 / span 2; }
  .footer { margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .lang { text-align: left; }
  .footer-copy { text-align: left; white-space: normal; }
  .page { padding-top: 38px; }
  .page h1 { font-size: 36px; }
  .page-lead { font-size: 16.5px; }
  .fact-list { grid-template-columns: 1fr; }
  .fact-list dt { padding-bottom: 0; border-top: 0; }
  .fact-list dd { padding-top: 2px; }
  .film-table { font-size: 12.5px; }
  .film-table thead { display: none; }
  .film-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .film-table td { display: block; border: 0; padding: 0; }
  .film-table .c-date {
    width: auto;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 3px;
  }
  .film-table .c-studio { width: auto; color: var(--gray); }
  .gal-item.w300 { width: min(300px, 100%) !important; }
  .notfound { padding-top: 56px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  filter: none;
  opacity: 1;
}
