:root{
  --bg:#f4f1ea;
  --paper:#fbfaf6;
  --ink:#111;
  --muted:#6b665e;
  --line:rgba(0,0,0,.14);
  --soft:rgba(0,0,0,.05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Arial,sans-serif;font-size:15px;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.site-header{position:fixed;z-index:30;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:26px 42px;color:var(--ink);mix-blend-mode:multiply}
.logo{font-weight:600;letter-spacing:.01em}
.nav{display:flex;gap:34px;font-size:12px;text-transform:none;align-items:center}
.nav a{position:relative;opacity:.8}.nav a:hover,.nav a.active{opacity:1}.nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:-9px;height:1px;background:var(--ink)}
.page{min-height:100vh;padding:104px 42px 48px}.wide{max-width:1320px;margin:0 auto}.narrow{max-width:980px;margin:0 auto}
.hero{height:100vh;padding:0;display:grid;grid-template-columns:1fr;background:#111;overflow:hidden;position:relative;color:#fff}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.54),rgba(0,0,0,.18),rgba(0,0,0,.05))}.hero img{width:100%;height:100%;object-fit:cover;opacity:.83}.hero-content{position:absolute;z-index:2;left:56px;bottom:80px;max-width:560px}.hero-title{font-size:70px;line-height:.98;margin:0 0 28px;font-weight:500;letter-spacing:-.045em}.hero-text{max-width:360px;font-size:15px;color:rgba(255,255,255,.82)}.scroll-mark{position:absolute;z-index:2;left:56px;bottom:32px;font-size:36px;font-weight:200;color:#fff;opacity:.8}.hero .site-header{color:#fff;mix-blend-mode:normal}
h1{font-size:44px;line-height:1.04;font-weight:500;letter-spacing:-.035em;margin:0 0 46px}.page-title-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:44px;border-bottom:1px solid transparent}.small-label{font-size:12px;color:var(--muted)}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 28px}.project-card:hover img{transform:scale(1.025)}.project-card figure{margin:0;overflow:hidden;background:#ddd}.project-card img{aspect-ratio:1.18/1;object-fit:cover;transition:transform .6s ease}.project-card h2{font-size:18px;font-weight:500;margin:12px 0 2px}.project-card p{margin:0;color:var(--muted);font-size:12px}.project-number{font-variant-numeric:tabular-nums;margin-right:6px;color:var(--muted)}
.project-page{display:grid;grid-template-columns:330px 1fr;gap:80px}.back{display:inline-block;margin-bottom:48px;color:var(--muted);font-size:13px}.project-info{position:sticky;top:105px;align-self:start}.project-info h1{margin-bottom:16px}.meta{color:var(--muted);font-size:13px;margin-bottom:40px}.project-info p{color:#34312d;max-width:310px}.project-images{display:grid;grid-template-columns:1fr 1fr;gap:20px}.project-images img:first-child{grid-column:1/-1;aspect-ratio:1.9/1}.project-images img{width:100%;aspect-ratio:1.1/1;object-fit:cover;background:#ddd}
.about-layout{display:grid;grid-template-columns:300px 1fr;gap:70px;align-items:start}.portrait{aspect-ratio:.72/1;object-fit:cover;background:#ddd}.statement{font-size:18px;line-height:1.8;max-width:760px}.statement p{margin:0 0 30px}.cv-grid{display:grid;grid-template-columns:1.1fr 1fr 1.35fr .9fr;gap:34px}.cv-col{border-left:1px solid var(--line);padding-left:22px}.cv-col:first-child{border-left:0;padding-left:0}.cv-col h2{font-size:14px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 22px}.cv-item{margin:0 0 18px;color:#333;font-size:13px}.cv-item strong{display:block;color:#000;font-weight:600;margin-bottom:4px}.contact-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px}.contact-card h1{margin-bottom:64px}.contact-list{font-size:20px;line-height:2.2}.contact-image{align-self:stretch;min-height:520px;overflow:hidden}.contact-image img{height:100%;width:100%;object-fit:cover}
.footer{padding:34px 42px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.mobile-note{display:none}
@media(max-width:900px){.site-header{position:static;padding:22px;display:block}.nav{margin-top:14px;gap:16px;flex-wrap:wrap}.page{padding:42px 22px}.hero{height:92vh}.hero-content{left:24px;right:24px;bottom:72px}.hero-title{font-size:48px}.scroll-mark{left:24px}.project-grid{grid-template-columns:1fr}.project-page,.about-layout,.contact-page{grid-template-columns:1fr;gap:34px}.project-info{position:static}.project-images{grid-template-columns:1fr}.cv-grid{grid-template-columns:1fr}.cv-col{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:20px}.contact-image{min-height:300px}.footer{padding:24px;display:block}.mobile-note{display:block;color:var(--muted);font-size:12px;margin-top:14px}}

/* Step 1: титульная страница с авторской фотографией без рамки */
.hero{background:#111;}
.hero img{filter:none;opacity:.88;object-position:center center;}
.hero:after{background:linear-gradient(90deg,rgba(0,0,0,.42),rgba(0,0,0,.14),rgba(0,0,0,.03));}
.hero-header{justify-content:flex-end;}
.hero-header .logo-empty{display:none;}
.hero .nav{margin-left:auto;}
.hero .nav a{text-transform:uppercase;letter-spacing:.04em;}

/* Fix 02: привести титульную страницу к визуальному макету */
.hero{min-height:100vh;height:100vh;background:#111;}
.hero img{width:100%;height:100%;object-fit:cover;object-position:center bottom;filter:none;opacity:.88;}
.hero:after{background:linear-gradient(90deg,rgba(0,0,0,.46),rgba(0,0,0,.16) 44%,rgba(0,0,0,.03));}
.hero-title{font-family:"Cormorant Garamond", Georgia, "Times New Roman", serif;font-weight:500;font-size:clamp(76px, 7.8vw, 132px);line-height:.86;letter-spacing:-.045em;margin:0 0 42px;}
.hero-text{font-family:"Cormorant Garamond", Georgia, "Times New Roman", serif;font-size:clamp(20px, 1.42vw, 28px);line-height:1.45;max-width:520px;color:rgba(255,255,255,.9);}
.hero-content{left:clamp(42px, 4vw, 86px);bottom:clamp(118px, 12vh, 172px);max-width:650px;}
.hero .nav{gap:46px;font-family:Inter, Arial, sans-serif;font-size:12px;font-weight:600;letter-spacing:.06em;}
.scroll-mark{display:block;text-decoration:none;left:clamp(42px, 4vw, 86px);bottom:clamp(52px, 6vh, 78px);width:40px;height:48px;line-height:42px;text-align:left;font-family:Georgia,"Times New Roman",serif;font-size:48px;font-weight:300;color:#fff;opacity:.9;cursor:pointer;transition:transform .2s ease, opacity .2s ease;}
.scroll-mark:hover{transform:translateY(4px);opacity:1}
.footer{display:none;}
@media(max-width:900px){.hero img{object-position:center bottom;}.hero-content{left:24px;right:24px;bottom:110px;}.hero-title{font-size:58px;line-height:.9;}.hero-text{font-size:20px;max-width:330px;}.scroll-mark{left:24px;bottom:48px;}}

/* Fix 03: 4K hero composition — лошадь больше не обрезается снизу.
   Основная фотография показывается целиком, а фон под ней заполняет экран. */
.hero{
  background-image:
    linear-gradient(90deg,rgba(0,0,0,.46),rgba(0,0,0,.16) 44%,rgba(0,0,0,.03)),
    url("assets/hero-horse.jpg");
  background-size:cover;
  background-position:center center;
}
.hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  filter:none;
  opacity:.94;
}
.hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,.08);
}
.hero:after{
  z-index:1;
  background:linear-gradient(90deg,rgba(0,0,0,.50),rgba(0,0,0,.18) 44%,rgba(0,0,0,.04));
}
.hero-header{z-index:3;}
.hero-content,.scroll-mark{z-index:3;}

/* Step 04: мягкий переход между страницами через белый экран */
html::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:9999;
  pointer-events:none;
  background:#fff;
  opacity:1;
  transition:opacity .62s cubic-bezier(.22,.61,.36,1);
}
html.is-loaded::before{
  opacity:0;
}
html.is-leaving::before{
  opacity:1;
}
body{
  transition:filter .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
}
html.is-leaving body{
  filter:blur(3px);
  transform:scale(1.006);
}
@media (prefers-reduced-motion: reduce){
  html::before, body{transition:none!important;}
  html.is-leaving body{filter:none;transform:none;}
}

/* Polish 05: editorial typography and calmer inner pages */
:root{
  --font-serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:Inter, Arial, sans-serif;
}
body{
  font-family:var(--font-sans);
  background:var(--bg);
  text-rendering:optimizeLegibility;
}
.site-header{
  padding:28px clamp(22px,4vw,56px);
}
.logo{
  font-family:var(--font-serif);
  font-size:18px;
  font-weight:500;
}
.nav{
  gap:clamp(18px,3vw,42px);
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.page{
  padding:clamp(86px,10vw,130px) clamp(22px,4vw,56px) 72px;
}
h1{
  font-family:var(--font-serif);
  font-size:clamp(48px,6vw,86px);
  line-height:.92;
  font-weight:500;
  letter-spacing:0;
}
.page-title-row{
  margin-bottom:clamp(36px,5vw,72px);
}
.small-label,.meta,.back,.footer{
  letter-spacing:.02em;
}
.project-grid{
  gap:clamp(34px,5vw,70px) clamp(24px,3vw,44px);
}
.project-card figure{
  background:#e2ded5;
}
.project-card h2{
  margin-top:16px;
  font-size:19px;
}
.project-card p{
  font-size:13px;
}
.project-card-placeholder{
  display:block;
  width:100%;
  aspect-ratio:1.18/1;
  background:linear-gradient(135deg,#e7e2d8,#f4f1ea);
}
.project-page{
  grid-template-columns:minmax(260px,340px) minmax(0,1fr);
  gap:clamp(48px,7vw,108px);
}
.project-page--text{
  display:block;
}
.project-page--text .project-info{
  position:static;
  max-width:680px;
}
.project-page--text .project-info p{
  max-width:none;
}
.project-story-page .back{
  margin-bottom:42px;
}
.project-story-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(160px,220px);
  gap:clamp(28px,5vw,72px);
  align-items:end;
  margin-bottom:36px;
}
.project-story-header h1{
  margin-bottom:0;
}
.project-description{
  width:100%;
  max-width:none;
  margin-bottom:clamp(52px,7vw,94px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(28px,5vw,72px);
  border-top:1px solid var(--line);
  padding-top:30px;
}
.project-description p{
  margin:0;
  color:#34312d;
  line-height:1.85;
}
.project-info p{
  line-height:1.75;
}
.project-images{
  gap:24px;
}
.project-figure{
  margin:0;
}
.project-figure--wide{
  grid-column:1/-1;
}
.project-caption{
  margin-top:14px;
  max-width:620px;
  color:#4d4740;
  font-family:var(--font-serif);
  font-size:clamp(18px,1.45vw,24px);
  line-height:1.48;
}
.project-images--natural{
  align-items:start;
}
.project-images--natural .project-figure img{
  width:100%;
}
.project-images--natural img,
.project-images--natural img:first-child{
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
}
img[src*="assets/projects/01-odinochestvo-posle/"]{
  filter:none;
}
.about-layout{
  grid-template-columns:minmax(260px,360px) minmax(0,760px);
  gap:clamp(46px,7vw,96px);
}
.portrait{
  width:100%;
  filter:grayscale(100%);
  background:#ded9cf;
}
.statement{
  font-family:var(--font-serif);
  font-size:clamp(22px,2vw,30px);
  line-height:1.55;
}
.statement .profile-text{
  margin-top:44px;
  padding-top:34px;
  border-top:1px solid var(--line);
  font-family:var(--font-sans);
  font-size:15px;
  line-height:1.85;
  color:#37342f;
}
.cv-grid{
  grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);
  gap:clamp(34px,6vw,88px);
  max-width:1120px;
}
.cv-col{
  border-left:0;
  padding-left:0;
}
.cv-col h2{
  margin:0 0 18px;
  padding-top:28px;
  border-top:1px solid var(--line);
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
}
.cv-col h2:first-child{
  padding-top:0;
  border-top:0;
}
.cv-item{
  max-width:620px;
  margin-bottom:22px;
  font-size:14px;
  line-height:1.7;
}
.contact-page{
  grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);
}
.contact-page-simple{
  grid-template-columns:minmax(0,860px);
  align-items:center;
}
.contact-list{
  font-family:var(--font-serif);
  font-size:clamp(26px,3vw,42px);
  line-height:1.75;
}
.contact-list a{
  overflow-wrap:anywhere;
}
@media (min-aspect-ratio: 16/9){
  .hero img{
    width:min(100%,calc(100vh * 1.5));
    left:50%;
    transform:translateX(-50%);
  }
}
@media(max-width:900px){
  .site-header{
    position:static;
    padding:24px 22px 10px;
    mix-blend-mode:normal;
  }
  .hero-header{
    position:absolute;
    padding:22px;
  }
  .hero .nav{
    gap:18px;
  }
  .page{
    padding-top:44px;
  }
  h1{
    font-size:52px;
  }
  .page-title-row{
    display:block;
  }
  .small-label{
    display:block;
    margin-top:-24px;
  }
  .cv-grid{
    grid-template-columns:1fr;
  }
  .cv-col h2:first-child{
    padding-top:24px;
    border-top:1px solid var(--line);
  }
  .cv-col:first-child h2:first-child{
    padding-top:0;
    border-top:0;
  }
  .contact-page{
    min-height:auto;
  }
  .project-story-header,
  .project-description{
    grid-template-columns:1fr;
  }
  .project-story-header .meta{
    margin-bottom:0;
  }
}

/* About page refinements */
.about-layout .portrait{
  filter:none;
}
.about-layout .statement{
  font-family:"Avenir Next", Avenir, Inter, Arial, sans-serif;
  font-size:clamp(16px,1.05vw,19px);
  line-height:1.95;
  font-weight:300;
}
.about-layout .statement p{
  text-align:justify;
  text-align-last:left;
  hyphens:auto;
}
.about-layout .statement .profile-text{
  margin:0;
  padding:0;
  border-top:0;
  font-family:inherit;
  font-size:inherit;
  line-height:inherit;
  font-weight:inherit;
  color:inherit;
}
.about-layout .statement .profile-text p{
  font:inherit;
  color:inherit;
}

/* Contacts page from DesignMaket */
.contact-maket-page{
  width:100%;
  max-width:none;
  min-height:100vh;
  padding:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:0;
}
.contact-maket-card{
  width:min(100%,1320px);
  margin:0 auto;
  padding:clamp(128px,15vh,190px) clamp(42px,4vw,56px) clamp(70px,10vh,130px);
}
.contact-maket-card h1{
  margin:0 0 52px;
  font-family:var(--font-sans);
  font-size:clamp(34px,2.7vw,52px);
  line-height:1.1;
  font-weight:400;
  letter-spacing:0;
}
.contact-maket-card .contact-list{
  font-family:var(--font-sans);
  font-size:clamp(18px,1.15vw,22px);
  line-height:2.05;
  font-weight:400;
}
.contact-maket-image{
  margin:0;
  width:100%;
  height:clamp(220px,34vh,380px);
  overflow:hidden;
  background:#ddd;
}
.contact-maket-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 60%;
  filter:grayscale(100%);
}
@media(max-width:900px){
  .contact-maket-page{
    min-height:auto;
  }
  .contact-maket-card{
    padding:54px 22px 76px;
  }
  .contact-maket-card h1{
    margin-bottom:34px;
  }
  .contact-maket-card .contact-list{
    font-size:18px;
    line-height:1.95;
  }
  .contact-maket-image{
    height:260px;
  }
}

/* Inner page header shield: prevents text from scrolling through navigation */
.site-header{
  background:rgba(244,241,234,.96);
  border-bottom:1px solid rgba(0,0,0,.06);
  backdrop-filter:blur(8px);
  mix-blend-mode:normal;
}
.hero-header{
  background:transparent;
  border-bottom:0;
  backdrop-filter:none;
}
@media(max-width:900px){
  .site-header{
    background:var(--bg);
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  .hero-header{
    background:transparent;
    border-bottom:0;
  }
}

/* Oдиночество после: PDF dramaturgy layout */
.odinochestvo-body{
  background:#fff;
  overflow-x:hidden;
}
.odinochestvo-body .site-header{
  background:rgba(255,255,255,.94);
}
.odinochestvo-page{
  --op-page-width:min(1120px,calc(100vw - 44px));
  padding:116px 22px 40px;
  background:#fff;
  color:#111;
}
.odinochestvo-back{
  display:block;
  width:var(--op-page-width);
  margin:0 auto 18px;
}
.op-spread{
  width:var(--op-page-width);
  margin:0 auto clamp(30px,3.4vw,48px);
  padding:clamp(10px,1.6vw,22px) clamp(34px,5vw,72px);
  display:grid;
  align-items:center;
  justify-items:center;
  background:#fff;
}
.op-spread img{
  width:100%;
  height:auto;
  filter:none;
}
.op-figure{
  margin:0;
}
.op-caption,
.op-intro-text,
.op-text-side,
.op-statement{
  max-width:100%;
  font-family:var(--font-sans);
  font-size:clamp(11px,.88vw,13px);
  line-height:1.62;
  font-weight:300;
  letter-spacing:0;
  color:#222;
  overflow-wrap:break-word;
}
.op-caption{
  max-width:720px;
  margin:14px 0 0;
}
.op-caption--under{
  text-align:center;
}
.op-caption--top{
  margin:0 0 34px;
  text-align:center;
}
.op-intro-text{
  width:min(100%,980px);
  justify-self:start;
  align-self:start;
}
.op-intro-text p{
  margin:0 0 8px;
}
.op-spread--intro{
  grid-template-rows:auto 1fr auto;
  gap:16px;
}
.op-figure--book{
  width:min(430px,54vw);
}
.op-spread--wide-image{
  align-content:center;
}
.op-figure--wide{
  width:min(680px,76vw);
}
.op-spread--portrait{
  align-content:center;
  gap:18px;
}
.op-figure--statue{
  width:min(360px,48vw);
}
.op-pair{
  display:grid;
  align-items:center;
  justify-content:center;
}
.op-pair--screens{
  grid-template-columns:repeat(2,minmax(0,330px));
  gap:30px;
}
.op-pair--scenario{
  grid-template-columns:minmax(0,420px) minmax(0,300px);
  gap:28px;
  align-items:center;
}
.op-figure--kiss{
  width:100%;
}
.op-figure--screen-small{
  width:min(300px,100%);
}
.op-spread--side-text{
  grid-template-columns:minmax(0,560px) minmax(220px,310px);
  gap:64px;
}
.op-figure--sand{
  width:100%;
}
.op-text-side{
  width:100%;
  margin:0;
}
.op-spread--silence{
  align-content:center;
  gap:12px;
}
.op-figure--bed{
  width:min(560px,70vw);
}
.op-spread--statement{
  align-content:center;
  gap:18px;
}
.op-figure--body-landscape{
  width:min(430px,56vw);
}
.op-statement{
  width:min(760px,100%);
  margin:0;
}
.op-statement p{
  margin:0 0 10px;
}
.op-author{
  margin-top:12px;
}
.op-spread--yanina{
  align-content:center;
  gap:24px;
}
.op-pair--portraits{
  grid-template-columns:repeat(2,minmax(0,190px));
  gap:28px;
}
.op-statement--wide{
  width:min(920px,100%);
}
.op-spread--final{
  align-content:center;
  margin-bottom:24px;
}
.op-figure--final{
  width:min(470px,62vw);
}
@media(max-width:900px){
  .odinochestvo-body .site-header{
    background:#fff;
  }
  .odinochestvo-page{
    --op-page-width:100%;
    padding:34px 18px 24px;
  }
  .odinochestvo-back{
    width:auto;
    margin-bottom:26px;
  }
  .op-spread{
    width:calc(100vw - 36px);
    max-width:calc(100vw - 36px);
    margin-bottom:34px;
    padding:0;
    display:block;
  }
  .op-intro-text,
  .op-caption,
  .op-text-side,
  .op-statement{
    width:100%;
    max-width:330px;
    font-size:13px;
    line-height:1.7;
  }
  .op-figure,
  .op-figure--book,
  .op-figure--wide,
  .op-figure--statue,
  .op-figure--bed,
  .op-figure--body-landscape,
  .op-figure--final{
    width:100%;
  }
  .op-spread--intro .op-figure{
    margin-top:28px;
  }
  .op-caption{
    max-width:300px;
    margin-top:16px;
    text-align:left;
  }
  .op-caption--top{
    margin-bottom:18px;
  }
  .op-pair,
  .op-pair--screens,
  .op-pair--scenario,
  .op-pair--portraits{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
  }
  .op-spread--side-text{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
  }
  .op-statement{
    margin-top:16px;
  }
}
