@font-face {
  font-family: "Site Helvetica";
  src: url("/assets/fonts/HelveticaNeue-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Site Franklin";
  src: url("/assets/fonts/FranklinGothicBookC.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
:root {
  --page-w: 1440px;
  --page-pad: 58px;
  --site-scale: 1;
  --name-h: 45px;
  --nav-h: 118px;
  --sticky-h: 148px;
  --black: #000;
  --white: #fff;
  --body-font: "Site Helvetica", Arial, sans-serif;
  --project-font: "Site Franklin", Arial, sans-serif;
  
}

* { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  overflow-anchor: none;
  overflow-x: hidden;
  background: #000;
}
body {
  margin: 0;
  width: var(--page-w);
  min-width: var(--page-w);
  zoom: var(--site-scale);

  background: #000;
  color: var(--black);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-anchor: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* Фиксированный desktop-макет 1440 px: никакой резины и никаких media queries. */
.site-shell,
.intro-inner {
  width: var(--page-w);
  margin-inline: auto;
}
.site-shell { background: #fff; }

/* Одноразовая заставка. После первого скролла исчезает до F5. */
.intro {
  overflow: hidden;
  height: auto;
}

.intro-image-wrap {
  position: relative;
  width: 1440px;
  background: #aaa;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.intro-image {
  width: 1440px;
  height: auto;
}
.intro-logo {
  position: absolute;
  right: 44px;
  bottom: 18px;
  width: 320px;
  height: auto;
}

/* Имя + меню — один закреплённый блок. Имя не исчезает вместе с hero. */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 1440px;
  background: #fff;
}
.name-strip {
  width: 1440px;
  height: var(--name-h);
  padding: 14px var(--page-pad) 0;
  background: #000;
  color: #fff;
  font-family: var(--project-font);
  font-size: 18px;
  line-height: 1;
}
.site-nav {
  width: 1440px;
  height: var(--nav-h);
  padding: 26px var(--page-pad) 22px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.nav-left {
  display: flex;
  gap: 40px;
}
.nav-link,
.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}
.nav-link {
  font-size: 42px;
  line-height: 1.05;
  white-space: nowrap;
  padding-bottom: 10px;
}
.nav-link::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: currentColor;
  transform-origin: left center;
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  animation: underline-redraw 330ms ease-out;
}
@keyframes underline-redraw {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

main { width: 1440px; }
.section {
  width: 1440px;
  scroll-margin-top: var(--sticky-h);
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.body-copy {
  font-size: 18px;
  line-height: 1.18;
}
.body-copy p { margin: 0 0 14px; }

.project-panel .body-copy {
  font-size: 16px;
  line-height: 1.18;
}

/* BIO: вся геометрия фиксирована. */
.bio-section {
  padding-top: 96px;
  padding-bottom: 34px;
}
.bio-grid {
  display: grid;
  grid-template-columns: 450px 814px;
  column-gap: 60px;
  align-items: start;
}
.bio-texts {
  display: grid;
  grid-template-columns: 377px 377px;
  column-gap: 80px;
  align-items: start;
  align-self: center;
}
.portrait-frame {
  margin: 0;
  width: 450px;
  height: 450px;
  border: 16px solid #000;
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-mark {
  width: 112px;
  margin: 34px auto 0;
}
.section-mark img { width: 112px; }

/* PORTFOLIO */
.portfolio-section {
  padding-top: 16px;
  padding-bottom: 40px;
}
.portfolio-intro {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.25;
}
.project {
  margin-left: calc(var(--page-pad) * -1);
  margin-right: calc(var(--page-pad) * -1);
}
/* Ровно 2 px пустого белого пространства между двумя гармошками. */
.project + .project { margin-top: 2px; }
.project-toggle {
  width: 1440px;
  min-height: 58px;
  padding: 10px var(--page-pad);
  border: 0;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  font-family: var(--project-font);
  font-size: 30px;
  font-weight: 400;
}
.project-toggle:hover,
.project-toggle:focus-visible { outline: none; }
.project-arrow {
  width: 20px;
  height: 32px;
  object-fit: contain;
  transform: rotate(0deg);
  transition: transform 220ms ease;
  flex: 0 0 auto;
}
.project-toggle[aria-expanded="true"] .project-arrow { transform: rotate(90deg); }

/* Закрыто = физически 0 px. Ни padding, ни контент не торчат. */
.project-panel {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: height 750ms cubic-bezier(.22, .61, .36, 1);
}
.project-panel.is-open { visibility: visible; }
.project-panel-inner { overflow: visible; }

.tandem-layout {
  display: grid;
  grid-template-columns: 897px 379px;
  column-gap: 48px;
  padding: 22px var(--page-pad) 20px;
  align-items: center;
}
.tandem-gallery {
  position: relative;
  width: 897px;
  display: grid;
  grid-template-columns: 857px 40px;
  align-items: stretch;
}
.tandem-image-wrap {
  position: relative;
  width: 857px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 2048 / 1228;
}
.tandem-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateX(0);
  will-change: transform;
  transition: transform 1400ms cubic-bezier(.22, .61, .36, 1);
}
.tandem-image.is-entering { transform: translateX(100%); }
.tandem-image.is-leaving { transform: translateX(-100%); }
.gallery-next {
  width: 40px;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-next img {
  width: 14px;
  height: 28px;
}
.gallery-next:hover img,
.gallery-next:focus-visible img { transform: translateX(2px); }
.gallery-next:focus-visible { outline: 1px solid #000; outline-offset: -2px; }
.project-copy { padding-top: 2px; }

.navigation-layout {
  display: grid;
  grid-template-columns: 330px 912px;
  column-gap: 82px;
  padding: 28px var(--page-pad) 22px;
  align-items: start;
}
.disk-button {
  width: 330px;
  min-height: 58px;
  padding: 10px 14px;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  font-size: 18px;
}
.disk-button img { width: 23px; height: 23px; }
.disk-button:hover,
.disk-button:focus-visible { background: #000; color: #fff; }
.disk-button:hover img,
.disk-button:focus-visible img { filter: invert(1); }
.portfolio-mark { margin-top: 34px; }

/* CONTACTS: фиксированная геометрия. Все три контакта начинаются с одной X-координаты. */
.contacts-section {
  padding-top: 62px;
  padding-bottom: 46px;
}
.contacts-grid {
  position: relative;
  width: 1324px;
  height: 560px;
}
.cat {
  position: absolute;
  left: 0;
  top: 72px;
  width: 430px;
  height: auto;
}
.contact-list {
  position: absolute;
  left: 742px;
  top: 42px;
  width: 520px;
  height: 470px;
}
.contact-link {
  gap: 10px;
  align-items: center;
  padding-bottom: 7px;
  margin-bottom: 28px;
  font-size: 18px;
}
.contact-link::after { height: 1px; }
.contact-link img { width: 18px; height: 18px; }
.phone-link {
  position: absolute;
  left: 0;
  top: 338px;
  width: fit-content;
  text-decoration: none;
  font-size: 17px;
}
